Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Developer
Posts: 14
Registered: ‎05-14-2014
My Device: Blackberry Z10
My Carrier: Mobile Developer

Trouble : Headless App after device reboot

Excuse me, i want to ask headless auto start after device reboot. I have tried in 2 conditions :

1. plug my device to laptop and after restart device, headless is running

2. i don't plug my device to laptop, and after restart, headless is NOT running

 

can you help me with this trouble?

Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Trouble : Headless App after device reboot

[ Edited ]

Just to confirm are you saying that when you restart your device while unplugged from your laptop the headless part doesn't start?

 

That's strange, I've just tried it on my Z10, OS 10.2.1.2102 while connected to the laptop (Windows 8.1) and while not and it worked fine.

 

It's hard to see how the connection to the laptop would affect the reboot.

 

Can you post your device and OS version, also Windows or Mac may be relevant what's your dev environment?


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.
New Developer
Posts: 14
Registered: ‎05-14-2014
My Device: Blackberry Z10
My Carrier: Mobile Developer

Re: Trouble : Headless App after device reboot

Yes, that's right... when I restart my device while unplugged from my laptop the headless part doesn't start... but if I restart my device while plug to my laptop the headless part running well...

 

I used mac os and Blackberry Z10 to develop...

Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Trouble : Headless App after device reboot

What version of the OS are you currently running and what version have you built your app to?

If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.
New Developer
Posts: 14
Registered: ‎05-14-2014
My Device: Blackberry Z10
My Carrier: Mobile Developer

Re: Trouble : Headless App after device reboot

My Blackberry Z10 use OS 10.2.1.2102 and my momentics SDK 10.2 ...

 

This is the way that i tried :

1. download HeadlessService and HeadlessSeviceUI sample code from blackberry

2. Import to momentics

3. And then run (inject) to my device

4. After that (while device still plug with the laptop), i'm restarting my device, and after that headless is still running

5. After that i was unplug my device from laptop, and reboot again, after that the headless is never running again 

Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Trouble : Headless App after device reboot

Are you building a debug or release build?

Try a Release build.

This one is strange, hopefully someone from BlackBerry will pick it up and suggest something as I'm stumped.

If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.
New Developer
Posts: 14
Registered: ‎05-14-2014
My Device: Blackberry Z10
My Carrier: Mobile Developer

Re: Trouble : Headless App after device reboot

I was built in debug ... 

 

Excuse me, i want to ask if i want to release built, should i sign the app first? I'm sorry, i was still newbie

Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Trouble : Headless App after device reboot

Just try a release build first, then later you can try a signed export build.

If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.
New Developer
Posts: 14
Registered: ‎05-14-2014
My Device: Blackberry Z10
My Carrier: Mobile Developer

Re: Trouble : Headless App after device reboot

Can i just choose Device-Release as build configurations without export my app ?

 

i'm sorry i want to ask,,

 

from cascades tutorial, 

1. headless part must clean first, after that choose build

2. headless UI clean first too, after that choose build ...

 

when i want to Device-Release, should i do that to Headless part and UI ?

Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Trouble : Headless App after device reboot

Yes and yes, clean and do a fresh build, never hurts. Smiley Happy

If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.