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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
My Carrier: Airtel
Accepted Solution

Any Android and BlackBerry Develoer there to help me port a Android app to BlackBerry 10 mobiles

When I run a   Android  application on Eclipse using   Emulator whose API  level 17 and platform 4.2.2  and          

 

Target   Name    Android 4.2.2  or  Google API's.

 

 

Iam seeing the follwoing logcat errors

 

 

11-07 10:40:36.590: D/dalvikvm(829): WAIT_FOR_CONCURRENT_GC blocked 1ms
11-07 10:40:37.458: D/dalvikvm(829): GC_FOR_ALLOC freed 29K, 6% free 2439K/2588K, paused 263ms, total 265ms
11-07 10:40:37.568: I/dalvikvm-heap(829): Grow heap (frag case) to 6.009MB for 3686416-byte allocation
11-07 10:40:37.628: D/dalvikvm(829): GC_FOR_ALLOC freed <1K, 3% free 6038K/6192K, paused 56ms, total 56ms
11-07 10:40:37.720: D/dalvikvm(829): GC_CONCURRENT freed <1K, 3% free 6038K/6192K, paused 5ms+8ms, total 92ms
11-07 10:40:38.238: D/dalvikvm(829): GC_FOR_ALLOC freed <1K, 3% free 6037K/6192K, paused 35ms, total 35ms
11-07 10:40:38.388: I/dalvikvm-heap(829): Grow heap (frag case) to 20.071MB for 14745616-byte allocation
11-07 10:40:38.538: D/dalvikvm(829): GC_CONCURRENT freed 0K, 1% free 20437K/20596K, paused 7ms+8ms, total 101ms
11-07 10:40:39.008: D/dalvikvm(829): GC_FOR_ALLOC freed 3600K, 19% free 16838K/20596K, paused 38ms, total 39ms
11-07 10:40:39.018: I/dalvikvm-heap(829): Grow heap (frag case) to 18.900MB for 2457616-byte allocation
11-07 10:40:39.128: D/dalvikvm(829): GC_CONCURRENT freed <1K, 7% free 19238K/20596K, paused 25ms+18ms, total 108ms
11-07 10:40:39.509: D/dalvikvm(829): GC_FOR_ALLOC freed <1K, 7% free 19238K/20596K, paused 40ms, total 40ms
11-07 10:40:39.558: I/dalvikvm-heap(829): Grow heap (frag case) to 23.065MB for 4367376-byte allocation
11-07 10:40:39.688: D/dalvikvm(829): GC_CONCURRENT freed 0K, 6% free 23503K/24864K, paused 21ms+18ms, total 126ms
11-07 10:40:40.028: D/gralloc_goldfish(829): Emulator without GPU emulation detected.
11-07 10:40:43.058: D/dalvikvm(829): GC_FOR_ALLOC freed 2408K, 15% free 21235K/24864K, paused 94ms, total 100ms
11-07 10:40:45.027: W/dalvikvm(829): Unable to resolve superclass of Lcom/yupptv/android/yupptv/BaseActivity; (170)
11-07 10:40:45.047: W/dalvikvm(829): Link of class 'Lcom/yupptv/android/yupptv/BaseActivity;' failed
11-07 10:40:45.047: W/dalvikvm(829): Unable to resolve superclass of Lcom/yupptv/android/yupptv/MainActivity; (1083)
11-07 10:40:45.047: W/dalvikvm(829): Link of class 'Lcom/yupptv/android/yupptv/MainActivity;' failed
11-07 10:40:45.087: E/dalvikvm(829): Could not find class 'com.yupptv.android.yupptv.MainActivity', referenced from method com.yupptv.android.yupptv.HomeActivity$5.onItemClick
11-07 10:40:45.087: W/dalvikvm(829): VFY: unable to resolve const-class 1175 (Lcom/yupptv/android/yupptv/MainActivitySmiley Wink in Lcom/yupptv/android/yupptv/HomeActivity$5;
11-07 10:40:45.097: D/dalvikvm(829): VFY: replacing opcode 0x1c at 0x0004
11-07 10:40:45.327: D/dalvikvm(829): GC_CONCURRENT freed 318K, 8% free 22884K/24852K, paused 72ms+130ms, total 430ms
11-07 10:40:46.927: E/ActivityThread(829): Failed to find provider info for com.google.plus.platform
11-07 10:40:47.087: I/Choreographer(829): Skipped 352 frames! The application may be doing too much work on its main thread.
11-07 10:40:47.757: I/Choreographer(829): Skipped 70 frames! The application may be doing too much work on its main thread.
11-07 10:40:47.807: D/dalvikvm(829): DexOpt: --- BEGIN 'ads-715893166.jar' (bootstrap=0) ---
11-07 10:40:49.147: D/dalvikvm(829): DexOpt: --- END 'ads-715893166.jar' (success) ---
11-07 10:40:49.147: D/dalvikvm(829): DEX prep '/data/data/com.tru/cache/ads-715893166.jar': unzip in 15ms, rewrite 1346ms
11-07 10:40:49.487: I/Choreographer(829): Skipped 172 frames! The application may be doing too much work on its main thread.
11-07 10:40:50.017: I/Choreographer(829): Skipped 42 frames! The application may be doing too much work on its main thread.
11-07 10:40:50.197: I/Ads(829): adRequestUrlHtml: <html><head><script src="http://media.admob.com/sdk-core-v40.js"></script><script>AFMA_getSdkConstants();AFMA_buildAdURL({"pr...
11-07 10:41:01.128: I/Choreographer(829): Skipped 40 frames! The application may be doing too much work on its main thread.
11-07 10:41:02.008: I/Choreographer(829): Skipped 57 frames! The application may be doing too much work on its main thread.
11-07 10:41:03.588: I/Ads(829): Received ad url: <url: "http://googleads.g.doubleclick.net:80/mads/gma?preqs=0&session_id=4953464312592069322&seq_num=1&u_w=... type: "admob" afmaNotifyDt: "null" activationOverlayUrl: "null" useWebViewLoadUrl: "false">
11-07 10:41:03.658: I/Ads(829): Ad url modified to http://googleads.g.doubleclick.net:80/mads/gma?preqs=0&session_id=4953464312592069322&seq_num=1&u_w=...
11-07 10:41:03.658: I/Ads(829): Request scenario: Online server request.
11-07 10:41:03.678: I/Choreographer(829): Skipped 36 frames! The application may be doing too much work on its main thread.
11-07 10:41:08.937: D/webviewglue(829): nativeDestroy view: 0x2a2cac98
11-07 10:41:09.138: I/Ads(829): onReceiveAd()
11-07 10:41:09.138: I/Choreographer(829): Skipped 44 frames! The application may be doing too much work on its main thread.
11-07 10:41:10.028: D/TilesManager(829): Starting TG #0, 0x2a32a888
11-07 10:41:10.318: I/Choreographer(829): Skipped 64 frames! The application may be doing too much work on its main thread.
11-07 10:41:10.967: I/Choreographer(829): Skipped 31 frames! The application may be doing too much work on its main thread.
11-07 10:41:17.157: D/dalvikvm(829): GC_CONCURRENT freed 1301K, 6% free 23558K/24964K, paused 91ms+119ms, total 376ms
11-07 10:41:17.447: D/webviewglue(829): nativeDestroy view: 0x2a2c5f58
11-07 10:41:33.449: D/AndroidRuntime(829): Shutting down VM
11-07 10:41:33.449: W/dalvikvm(829): threadid=1: thread exiting with uncaught exception (group=0x40a71930)
11-07 10:41:33.498: E/AndroidRuntime(829): FATAL EXCEPTION: main
11-07 10:41:33.498: E/AndroidRuntime(829): java.lang.NoClassDefFoundError: com.yupptv.android.yupptv.MainActivity
11-07 10:41:33.498: E/AndroidRuntime(829): at com.yupptv.android.yupptv.HomeActivity$5.onItemClick(HomeActivity.java:230)
11-07 10:41:33.498: E/AndroidRuntime(829): at android.widget.AdapterView.performItemClick(AdapterView.java:298)
11-07 10:41:33.498: E/AndroidRuntime(829): at android.widget.AbsListView.performItemClick(AbsListView.java:1100)
11-07 10:41:33.498: E/AndroidRuntime(829): at android.widget.AbsListView$PerformClick.run(AbsListView.java:2749)
11-07 10:41:33.498: E/AndroidRuntime(829): at android.widget.AbsListView$1.run(AbsListView.java:3423)
11-07 10:41:33.498: E/AndroidRuntime(829): at android.os.Handler.handleCallback(Handler.java:725)
11-07 10:41:33.498: E/AndroidRuntime(829): at android.os.Handler.dispatchMessage(Handler.java:92)
11-07 10:41:33.498: E/AndroidRuntime(829): at android.os.Looper.loop(Looper.java:137)
11-07 10:41:33.498: E/AndroidRuntime(829): at android.app.ActivityThread.main(ActivityThread.java:5041)
11-07 10:41:33.498: E/AndroidRuntime(829): at java.lang.reflect.Method.invokeNative(Native Method)
11-07 10:41:33.498: E/AndroidRuntime(829): at java.lang.reflect.Method.invoke(Method.java:511)
11-07 10:41:33.498: E/AndroidRuntime(829): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
11-07 10:41:33.498: E/AndroidRuntime(829): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
11-07 10:41:33.498: E/AndroidRuntime(829): at dalvik.system.NativeStart.main(Native Method)

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

Re: Any Android and BlackBerry Develoer there to help me port a Android app to BlackBerry 10 mobiles

Hey srk2012,

 

From the trace that you posted, it looks like you are referencing a class that the classloader cannot find.

 

java.lang.NoClassDefFoundError: com.yupptv.android.yupptv.MainActivity

 

Are you sure it's within your application?

 

    Justin

Justin Jasmann | Android Application Development Consultant
Developer Relations
developer.blackberry.com
Developer
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
My Carrier: Airtel

Re: Any Android and BlackBerry Develoer there to help me port a Android app to BlackBerry 10 mobiles

[ Edited ]

Now my problem got fixed after updating software of BlackBerry Q5

 

 

Please go to my other Video Query of Live TV ,VOD and Video based App

 

 

http://supportforums.blackberry.com/t5/Android-Runtime-Development/After-porting-my-android-app-to-B...

 

 

 

Thanks

Contributor
Posts: 18
Registered: ‎11-07-2013
My Device: developer
My Carrier: developer

Re: Any Android and BlackBerry Develoer there to help me port a Android app to BlackBerry 10 mobiles

Can u please give me startup to port android app to bb 10 app..   i m a fresher in poritng..  Thanks in advance.. Smiley Very Happy

Developer
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
My Carrier: Airtel

Re: Any Android and BlackBerry Develoer there to help me port a Android app to BlackBerry 10 mobiles

Go to developer.blackberry.com

 

search for Android/Runtime developement.

 

 

Download all the tools .

 

 

Follow the instructions carefully.