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

Android™ Development

Reply
Highlighted
Developer
Posts: 91
Registered: ‎04-05-2013
My Device: Simulator - developer
My Carrier: No provider
Accepted Solution

Application launch fails with new 2.0 blackberry tools

Usign the new tools, we are now deploying the application for testing through blackberry-adbproxy. The application is installed correctly, but ADT gets an error code and reports a failure, so the application is not launched. This effectively prevents us from using the built-in debugger.

 

The sequence of events is (my comments in blue, ):

 

1. Start the "Run" (or "Debug") procedure in eclipse

 

Eclipse console output:

[2014-04-03 11:28:57 - ScanWritrPro] ------------------------------
[2014-04-03 11:28:57 - ScanWritrPro] Android Launch!
[2014-04-03 11:28:57 - ScanWritrPro] adb is running normally.
[2014-04-03 11:28:57 - ScanWritrPro] Performing com.vanaia.scanwritr.ScanWritrMain activity launch
[2014-04-03 11:29:06 - ScanWritrPro] Uploading ScanWritrPro.apk onto device 'localhost:60902'
[2014-04-03 11:29:17 - ScanWritrPro] Installing ScanWritrPro.apk...

 

blackberry-abdproxy output:

[169.254.0.1]: packaging APK

...  a bunch of "minimal required OS version" messages ...

[169.254.0.1]: APK successfully packaged

[169.254.0.1]: deploying: C:\Users\Rok~.NTA\AppData\Local\Temp\adbbridge8927858788252629205.bar

Info: Sending request: INSTALL

 

Then it gets interesting, Eclipse console reports and error, blackberry-adbproxy keeps on running

 

Eclipse console:

[2014-04-03 11:29:22 - ScanWritrPro] Failed to install ScanWritrPro.apk on device 'localhost:60902!
[2014-04-03 11:29:22 - ScanWritrPro] (null)
[2014-04-03 11:29:27 - ScanWritrPro] Failed to install ScanWritrPro.apk on device 'localhost:60902': null
[2014-04-03 11:29:27 - ScanWritrPro] com.android.ddmlib.InstallException
[2014-04-03 11:29:27 - ScanWritrPro] Launch canceled!

 

After this error, blackberry-adbproxy reports installation progress and outcome

 

Info: Action: Install

Info: File size: 12489864

Info: Installing ...

Info: Processing 12489864 bytes

Info: Progress 0%...

Info: Progress 50%...

Info: Progress 50%...

Info: Progress 100%...

actual_dname::com.vanaia.scanwritr.pro.testEELrYZBdebMYM41G9NFHYk

actual_id::testEELrYZBdebMYM41G9NFHYk

actual_version::1.0.2.0

result::success

 

At this point, the app is installed on the device, but is not started.

 

Is this a known issue? Is there a known workaround?

 

Cordially,

Rok Ružič

 

 

 

 

Retired
Posts: 264
Registered: ‎01-08-2013
My Device: BlackBerry 10 Dev Alpha B
My Carrier: Bell

Re: Application launch fails with new 2.0 blackberry tools

Hey Rok,

 

Is this fairly reproducible? I haven't been able to get it to happen on my setup.

Justin Jasmann | Android Application Development Consultant
Developer Relations
developer.blackberry.com
Developer
Posts: 91
Registered: ‎04-05-2013
My Device: Simulator - developer
My Carrier: No provider

Re: Application launch fails with new 2.0 blackberry tools

It went away with the whole new package - new ADT bundle along with 2.0.2 tools made it go away. I experienced this problem with 2.0.1 version of tools on the old ADT bundle, released in october 2013.