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™ Runtime Development

Reply
Developer
srk2012
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520

Re: I have ported a working Android based live TV Application into BlackBerry App . When I run the app on BB10 simulator.iam seeing the following error

Iam  \waiting for your reply

 

 

 

 

Thanks

Please use plain text.
Trusted Contributor
imre_m
Posts: 160
Registered: ‎11-17-2010
My Device: PlayBook, Z10, Q10

Re: I have ported a working Android based live TV Application into BlackBerry App . When I run the app on BB10 simulator.iam seeing the following error

Hi,

 

I believe I've already answered what to search: you have a reference for the Holo Theme. That is set for your splash activity. You need to change that style to something else.

 

As I see from the manifest, you may have included for your project the Sherlock Theme which has a backport of Holo for Gingerbread.

Thus you should update the style of the splash activity to use one of the Sherlock Theme's styles, maybe "Theme.Sherlock.Light.DarkActionBar".

 

On BB OS10.2 it works, since Jelly Bean supports the Holo Theme.

--
If you find this post useful please Like it.
If it solves your problem please mark as solution.
Please use plain text.
Developer
srk2012
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520

Re: I have ported a working Android based live TV Application into BlackBerry App . When I run the app on BB10 simulator.iam seeing the following error

please guide me the changes needed to be done to  get my app work on both 10.1 and 10.2 simulator

 

will the   changing of theme to "Sherlock.Light.DarkActionBar"   works for both ?

 

 

 

Thanks

 

 

 

Please use plain text.
Trusted Contributor
imre_m
Posts: 160
Registered: ‎11-17-2010
My Device: PlayBook, Z10, Q10

Re: I have ported a working Android based live TV Application into BlackBerry App . When I run the app on BB10 simulator.iam seeing the following error

Yes, that should work for both.
--
If you find this post useful please Like it.
If it solves your problem please mark as solution.
Please use plain text.
Developer
srk2012
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520

Re: I have ported a working Android based live TV Application into BlackBerry App . When I run the app on BB10 simulator.iam seeing the following error

09-27 13:46:27.890: W/System.err(1180213384): 	at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.processAuthHeader(HttpURLConnectionImpl.java:1153)
09-27 13:46:27.900: W/System.err(1180213384): 	at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.processResponseHeaders(HttpURLConnectionImpl.java:1095)
09-27 13:46:27.919: W/System.err(1180213384): 	at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.retrieveResponse(HttpURLConnectionImpl.java:1048)
09-27 13:46:27.930: W/System.err(1180213384): 	at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:726)
09-27 13:46:27.992: W/System.err(1180213384): 	at twitter4j.internal.http.HttpResponseImpl.<init>(HttpResponseImpl.java:34)
09-27 13:46:29.002: W/System.err(1180213384): 	at twitter4j.internal.http.HttpClientImpl.request(HttpClientImpl.java:156)
09-27 13:46:29.036: W/System.err(1180213384): 	... 13 more
09-27 13:46:29.727: D/dalvikvm(1180213384): GC_CONCURRENT freed 1717K, 39% free 2972K/4807K, external 22679K/23634K, paused 22ms+4ms
09-27 13:46:31.875: D/dalvikvm(1180213384): GC_CONCURRENT freed 1807K, 40% free 3216K/5319K, external 22679K/23634K, paused 5ms+1ms
09-27 13:46:32.307: E/ActivityThread(1180213384): Failed to find provider info for com.google.plus.platform
09-27 13:46:32.505: I/Ads(1180213384): To get test ads on this device, call adRequest.addTestDevice("D5F65343E85F5344C08F1BB13ACD144F");
09-27 13:46:33.566: D/dalvikvm(1180213384): DexOpt: --- BEGIN 'ads491769310.jar' (bootstrap=0) ---
09-27 13:46:42.045: D/dalvikvm(1180213384): DexOpt: --- END 'ads491769310.jar' (success) ---
09-27 13:46:42.047: D/dalvikvm(1180213384): DEX prep '/data/data/com.tru/cache/ads491769310.jar': unzip in 52ms, rewrite 8485ms
09-27 13:46:42.783: I/Ads(1180213384): adRequestUrlHtml: <html><head><script src="http://media.admob.com/sdk-core-v40.js"></script><script>AFMA_getSdkConstants();AFMA_buildAdURL({"pr...
09-27 13:46:46.802: W/webcore(1180213384): Can't get the viewWidth after the first layout
09-27 13:46:46.952: I/Ads(1180213384): 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">
09-27 13:46:47.285: I/Ads(1180213384): 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...
09-27 13:46:47.296: I/Ads(1180213384): Request scenario: Online server request.
09-27 13:46:48.134: W/Ads(1180213384): adSize was expected to be null in AdLoader.
09-27 13:46:48.429: W/webcore(1180213384): Can't get the viewWidth after the first layout
09-27 13:46:49.659: D/webviewglue(1180213384): nativeDestroy view: 910b210
09-27 13:46:49.685: I/Ads(1180213384): onReceiveAd()
09-27 13:46:49.710: E/Ads(1180213384): Not enough space to show ad! Wants: <640, 100>, Has: <720, 0>
09-27 13:46:49.716: E/Ads(1180213384): Not enough space to show ad! Wants: <640, 100>, Has: <720, 0>
09-27 13:46:50.218: D/AndroidRuntime(1180213384): Shutting down VM
09-27 13:46:50.225: W/dalvikvm(1180213384): threadid=1: thread exiting with uncaught exception (group=980c568)
09-27 13:46:50.314: E/AndroidRuntime(1180213384): FATAL EXCEPTION: main
09-27 13:46:50.314: E/AndroidRuntime(1180213384): java.lang.NoClassDefFoundError: com.yupptv.android.yupptv.MainActivity
09-27 13:46:50.314: E/AndroidRuntime(1180213384): 	at com.yupptv.android.yupptv.HomeActivity$5.onItemClick(HomeActivity.java:230)
09-27 13:46:50.314: E/AndroidRuntime(1180213384): 	at android.widget.AdapterView.performItemClick(AdapterView.java:284)
09-27 13:46:50.314: E/AndroidRuntime(1180213384): 	at android.widget.ListView.performItemClick(ListView.java:3513)
09-27 13:46:50.314: E/AndroidRuntime(1180213384): 	at android.widget.AbsListView$PerformClick.run(AbsListView.java:1812)
09-27 13:46:50.314: E/AndroidRuntime(1180213384): 	at android.os.Handler.handleCallback(Handler.java:587)
09-27 13:46:50.314: E/AndroidRuntime(1180213384): 	at android.os.Handler.dispatchMessage(Handler.java:92)
09-27 13:46:50.314: E/AndroidRuntime(1180213384): 	at android.os.Looper.loop(Looper.java:123)
09-27 13:46:50.314: E/AndroidRuntime(1180213384): 	at android.app.ActivityThread.main(ActivityThread.java:3687)
09-27 13:46:50.314: E/AndroidRuntime(1180213384): 	at java.lang.reflect.Method.invokeNative(Native Method)
09-27 13:46:50.314: E/AndroidRuntime(1180213384): 	at java.lang.reflect.Method.invoke(Method.java:507)
09-27 13:46:50.314: E/AndroidRuntime(1180213384): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
09-27 13:46:50.314: E/AndroidRuntime(1180213384): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
09-27 13:46:50.314: E/AndroidRuntime(1180213384): 	at dalvik.system.NativeStart.main(Native Method)

 Logcat errors after changing the theme as said in manifest.xml

 

 

 

Please use plain text.
Developer
srk2012
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520

Re: I have ported a working Android based live TV Application into BlackBerry App . When I run the app on BB10 simulator.iam seeing the following error

After changing the theme name also  It is not working on the Bb 10.1 simulator Please check at your side again

 

what changes to be done still?

 

 

Or will th app work on all\  the  BlackBerry 10 smartphones

 

 

 

Thanks

 

 

 

Please use plain text.
Trusted Contributor
imre_m
Posts: 160
Registered: ‎11-17-2010
My Device: PlayBook, Z10, Q10

Re: I have ported a working Android based live TV Application into BlackBerry App . When I run the app on BB10 simulator.iam seeing the following error

I am afraid I cannot check at my side since it's not my app and I don't have the source.
I don't see your resources, as an Android developer you should be able to pick by yourself an alternate Theme which is available in your project.

As about the latest log: it seems complicated, I think you are using some ad framework, but I am not familiar with that one. You should check what third party libraries your project is using, respectively if those are compatible with the BB10.1 Android Runtime.
--
If you find this post useful please Like it.
If it solves your problem please mark as solution.
Please use plain text.
Developer
srk2012
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520

Re: I have ported a working Android based live TV Application into BlackBerry App . When I run the app on BB10 simulator.iam seeing the following error

How to check whether those  third part libraries adn ADS are compatible or not?

 

I can give you the third party libraries

 

 

android-support-v4

 

andrid.jar

 

gcm.jar

 

GoogleAdsMobAdsSdk-6.4.1.jar

 

 

Android 4.2.2

 

Android Dependencies

 

Android Private libraries

 

 

Thanks

 

 

Can u please check my system on tem viewer so that you can come to know detailly.

 

 

 

Please use plain text.
Developer
srk2012
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520

Re: I have ported a working Android based live TV Application into BlackBerry App . When I run the app on BB10 simulator.iam seeing the following error

Waiting for the reply from your side.

 

Even after changing theme name It is not working on 10.1 simulator.

 

Need to test on the device only it seems to know perfectly.

 

 

 

Thanks

Please use plain text.
Trusted Contributor
imre_m
Posts: 160
Registered: ‎11-17-2010
My Device: PlayBook, Z10, Q10

Re: I have ported a working Android based live TV Application into BlackBerry App . When I run the app on BB10 simulator.iam seeing the following error

Hey,

 

gcm.jar - looks like you are using google cloud services. I am not sure if it's fully supported on BB, as it requires a number of Google APIs which might be available on BB OS 10.2 but not on 10.1.

 

The ads services you are using is also causing problems, either coming from the google ads sdk, or admob - with these I do not have experience.

 

Nonetheless, you still have there Android 4.2.2 instead of 2.3.3.

 

Frankly, I think you should be happy that it works on 10.2, as I don't see any way to do the porting job get done on a forum.

--
If you find this post useful please Like it.
If it solves your problem please mark as solution.
Please use plain text.