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
Developer
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
My Carrier: Airtel
Accepted Solution

when I tried to Run the Android Application with Run as Android app on the Simulator or Emulator.I am seeing following Logcat errors

 

Iam  working for BB 10  

 

Need to port to BB  from android  

 

 

 

Please fix these issues.

 

 

11-05 14:56:47.049: E/AndroidRuntime(1626): FATAL EXCEPTION: main
11-05 14:56:47.049: E/AndroidRuntime(1626): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.tru/com.yupptv.android.yupptv.MainActivity}: java.lang.UnsupportedOperationException: Device does not have package com.google.android.gsf
11-05 14:56:47.049: E/AndroidRuntime(1626): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180)
11-05 14:56:47.049: E/AndroidRuntime(1626): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
11-05 14:56:47.049: E/AndroidRuntime(1626): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
11-05 14:56:47.049: E/AndroidRuntime(1626): at android.os.Handler.dispatchMessage(Handler.java:99)
11-05 14:56:47.049: E/AndroidRuntime(1626): at android.os.Looper.loop(Looper.java:137)
11-05 14:56:47.049: E/AndroidRuntime(1626): at android.app.ActivityThread.main(ActivityThread.java:5039)
11-05 14:56:47.049: E/AndroidRuntime(1626): at java.lang.reflect.Method.invokeNative(Native Method)
11-05 14:56:47.049: E/AndroidRuntime(1626): at java.lang.reflect.Method.invoke(Method.java:511)
11-05 14:56:47.049: E/AndroidRuntime(1626): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
11-05 14:56:47.049: E/AndroidRuntime(1626): at dalvik.system.NativeStart.main(Native Method)
11-05 14:56:47.049: E/AndroidRuntime(1626): Caused by: java.lang.UnsupportedOperationException: Device does not have package com.google.android.gsf
11-05 14:56:47.049: E/AndroidRuntime(1626): at com.google.android.gcm.GCMRegistrar.checkDevice(GCMRegistrar.java:98)
11-05 14:56:47.049: E/AndroidRuntime(1626): at com.yupptv.android.yupptv.BaseActivity.onCreate(BaseActivity.java:189)
11-05 14:56:47.049: E/AndroidRuntime(1626): at com.yupptv.android.yupptv.MainActivity.onCreate(MainActivity.java:68)
11-05 14:56:47.049: E/AndroidRuntime(1626): at android.app.Activity.performCreate(Activity.java:5104)
11-05 14:56:47.049: E/AndroidRuntime(1626): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
11-05 14:56:47.049: E/AndroidRuntime(1626): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
11-05 14:56:47.049: E/AndroidRuntime(1626): ... 11 more

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

Re: when I tried to Run the ported Android Application with Run as BlackBerry android Launch I am seeing following Logcat errors

[ Edited ]

11-06 14:06:58.702: I/ProcessState(42533059): received buffer 28b00000, size 1040384 from binder
11-06 14:06:59.333: D/dalvikvm(42533059): GC_EXTERNAL_ALLOC freed 81K, 16% free 1901K/2243K, external 2866K/3297K, paused 55ms
11-06 14:06:59.525: D/dalvikvm(42533059): GC_EXTERNAL_ALLOC freed 1K, 16% free 1900K/2243K, external 6466K/8074K, paused 44ms
11-06 14:07:00.003: D/dalvikvm(42533059): GC_EXTERNAL_ALLOC freed <1K, 16% free 1901K/2243K, external 19666K/20866K, paused 30ms
11-06 14:07:04.198: I/dalvikvm(42533059): Failed resolving Lcom/yupptv/android/yupptv/BaseActivity; interface 12 'Landroid/app/ActionBar$OnNavigationListener;'
11-06 14:07:04.201: W/dalvikvm(42533059): Link of class 'Lcom/yupptv/android/yupptv/BaseActivity;' failed
11-06 14:07:04.207: W/dalvikvm(42533059): Unable to resolve superclass of Lcom/yupptv/android/yupptv/MainActivity; (1614)
11-06 14:07:04.211: W/dalvikvm(42533059): Link of class 'Lcom/yupptv/android/yupptv/MainActivity;' failed
11-06 14:07:04.214: E/dalvikvm(42533059): Could not find class 'com.yupptv.android.yupptv.MainActivity', referenced from method com.yupptv.android.yupptv.HomeActivity$5.onItemClick
11-06 14:07:04.219: W/dalvikvm(42533059): VFY: unable to resolve const-class 1706 (Lcom/yupptv/android/yupptv/MainActivitySmiley Wink in Lcom/yupptv/android/yupptv/HomeActivity$5;
11-06 14:07:04.231: D/dalvikvm(42533059): VFY: replacing opcode 0x1c at 0x0004
11-06 14:07:04.233: D/dalvikvm(42533059): VFY: dead code 0x0006-0013 in Lcom/yupptv/android/yupptv/HomeActivity$5;.onItemClick (Landroid/widget/AdapterView;Landroid/view/View;IJ)V
11-06 14:07:06.205: D/dalvikvm(42533059): GC_CONCURRENT freed 1177K, 37% free 2566K/4039K, external 22679K/23634K, paused 13ms+4ms
11-06 14:07:07.306: E/ActivityThread(42533059): Failed to find provider info for com.google.plus.platform
11-06 14:07:07.406: I/Ads(42533059): To get test ads on this device, call adRequest.addTestDevice("84DD8B9420B398E7FB80E5D5BEA297F0");
11-06 14:07:08.624: D/dalvikvm(42533059): DexOpt: --- BEGIN 'ads-773742099.jar' (bootstrap=0) ---
11-06 14:07:08.987: I/dalvikvm(42533059): Total arena pages for JIT: 11
11-06 14:07:10.543: D/dalvikvm(42533059): DexOpt: --- END 'ads-773742099.jar' (success) ---
11-06 14:07:10.543: D/dalvikvm(42533059): DEX prep '/data/data/com.tru/cache/ads-773742099.jar': unzip in 14ms, rewrite 1919ms
11-06 14:07:11.104: D/dalvikvm(42533059): GC_CONCURRENT freed 1608K, 9% free 4481K/4871K, external 22679K/23634K, paused 34ms+5ms
11-06 14:07:11.128: D/webviewglue(42533059): nativeDestroy view: 7cd25088
11-06 14:07:11.656: I/Ads(42533059): adRequestUrlHtml: <html><head><script src="http://media.admob.com/sdk-core-v40.js"></script><script>AFMA_getSdkConstants();AFMA_buildAdURL({"pr...
11-06 14:07:16.223: D/dalvikvm(42533059): GC_CONCURRENT freed 2682K, 42% free 3926K/6727K, external 4014K/18414K, paused 11ms+6ms
11-06 14:07:18.028: W/webcore(42533059): Can't get the viewWidth after the first layout
11-06 14:07:18.126: I/Ads(42533059): Received ad url: <url: "http://pubads.g.doubleclick.net:80/gampad/ads?u_sd=2&seq_num=1&u_w=360&msid=com.tru&js=afma-sdk-a-v6... type: "xfp" afmaNotifyDt: "null" activationOverlayUrl: "null" useWebViewLoadUrl: "false">
11-06 14:07:18.182: I/Ads(42533059): Ad url modified to http://pubads.g.doubleclick.net:80/gampad/ads?u_sd=2&seq_num=1&u_w=360&msid=com.tru&js=afma-sdk-a-v6...
11-06 14:07:18.184: I/Ads(42533059): Request scenario: Online server request.
11-06 14:07:19.250: W/Ads(42533059): adSize was expected to be null in AdLoader.
11-06 14:07:21.531: W/webcore(42533059): Can't get the viewWidth after the first layout
11-06 14:07:22.881: D/webviewglue(42533059): nativeDestroy view: 7cd24e80
11-06 14:07:22.892: I/Ads(42533059): onReceiveAd()
11-06 14:07:22.901: E/Ads(42533059): Not enough space to show ad! Wants: <640, 100>, Has: <720, 0>
11-06 14:07:22.927: E/Ads(42533059): Not enough space to show ad! Wants: <640, 100>, Has: <720, 0>
11-06 14:07:42.805: D/AndroidRuntime(42533059): Shutting down VM
11-06 14:07:42.807: W/dalvikvm(42533059): threadid=1: thread exiting with uncaught exception (group=7980c568)
11-06 14:07:42.828: E/AndroidRuntime(42533059): FATAL EXCEPTION: main
11-06 14:07:42.828: E/AndroidRuntime(42533059): java.lang.NoClassDefFoundError: com.yupptv.android.yupptv.MainActivity
11-06 14:07:42.828: E/AndroidRuntime(42533059): at com.yupptv.android.yupptv.HomeActivity$5.onItemClick(HomeActivity.java:230)
11-06 14:07:42.828: E/AndroidRuntime(42533059): at android.widget.AdapterView.performItemClick(AdapterView.java:284)
11-06 14:07:42.828: E/AndroidRuntime(42533059): at android.widget.ListView.performItemClick(ListView.java:3513)
11-06 14:07:42.828: E/AndroidRuntime(42533059): at android.widget.AbsListView$PerformClick.run(AbsListView.java:1812)
11-06 14:07:42.828: E/AndroidRuntime(42533059): at android.os.Handler.handleCallback(Handler.java:587)
11-06 14:07:42.828: E/AndroidRuntime(42533059): at android.os.Handler.dispatchMessage(Handler.java:92)
11-06 14:07:42.828: E/AndroidRuntime(42533059): at android.os.Looper.loop(Looper.java:123)
11-06 14:07:42.828: E/AndroidRuntime(42533059): at android.app.ActivityThread.main(ActivityThread.java:3687)
11-06 14:07:42.828: E/AndroidRuntime(42533059): at java.lang.reflect.Method.invokeNative(Native Method)
11-06 14:07:42.828: E/AndroidRuntime(42533059): at java.lang.reflect.Method.invoke(Method.java:507)
11-06 14:07:42.828: E/AndroidRuntime(42533059): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
11-06 14:07:42.828: E/AndroidRuntime(42533059): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
11-06 14:07:42.828: E/AndroidRuntime(42533059): at dalvik.system.NativeStart.main(Native Method)
11-06 14:12:42.963: I/Process(42533059): Sending signal. PID: 42533059 SIG: 9

Retired
Posts: 140
Registered: ‎04-19-2013
My Device: BlackBerry Z10

Re: when I tried to Run the ported Android Application with Run as BlackBerry android Launch I am seeing following Logcat errors

It's true, we don't have gsf (google services framework), which is not part of the open source android project.

 

It's not something we "can just fix".

New Contributor
Posts: 9
Registered: ‎07-31-2013
My Device: developer
My Carrier: none

Re: when I tried to Run the ported Android Application with Run as BlackBerry android Launch I am seeing following Logcat errors

Hi, I can get Latitude and Longitude in android, however after porting to Z10(10.2), it is not working. Would you tell me how to get them?

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

Re: when I tried to Run the ported Android Application with Run as BlackBerry android Launch I am seeing following Logcat errors

My problem got fixed after software update of BlackBerry Q5

 

Now App is not playing Video i.e  Only  Audio is Audible

 

 

Please reply to m video query  posted

 

 

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