[Completed] I need help to solve this bug - XDA Assist

I need help to solve a bug with the old games on android 4.0+.
the problem appear when i making a multitouch action while I run the game, then the game gives me force close. I noticed in the logcat and this is the error:
01-03 16:48:15.726 E/AndroidRuntime( 4860): FATAL EXCEPTION: main
01-03 16:48:15.726 E/AndroidRuntime( 4860): java.lang.IllegalArgumentException: pointerIndex out of range
01-03 16:48:15.726 E/AndroidRuntime( 4860): at android.view.MotionEvent.nativeGetAxisValue(Native Method)
01-03 16:48:15.726 E/AndroidRuntime( 4860): at android.view.MotionEvent.getX(MotionEvent.java:197 4)
01-03 16:48:15.726 E/AndroidRuntime( 4860): at com.gameloft.android.TBFV.GloftGMHP.ML.GameGLSurfa ceView.onTouchEvent(GameGLSurfaceView.java:285)
01-03 16:48:15.726 E/AndroidRuntime( 4860): at android.view.View.dispatchTouchEvent(View.java:554 1).
I would like to know if someone knows the way to fix this either modifying the app or modifying the system.
thanks for your attention and I hope answers

Hi,
Try posting your question here:
Questions and Answers
or
Android Q&A, Help & Troubleshooting
The experts there may be able to help.
Good luck!
=============

Related

[BUG ALERT!!] Missing Method Breaking ROMs: android.view.ScaleGestureDetector.onTouch

UPDATE: htcclay has a fix that works included in FastClean v1.2. Yay! I'm looking forward to seeing it filter back into FastTest.
**********************************************************************************************************
There is minor issue remaining. The maps in Wifi Tracker and My Tracks do not draw completely. This bug also exists in SuperD, but you do not see it in Cyanogen Mod v4.2.14.1, so it isn't the apps. You also do not see it in GMaps 4.0 on any of these ROMs, All maps are good. So it probably isn't the 10MB RAM hack either.
The same chunk in both remains "grid". Details and screenshots in this thread. Post #157.
***********************************************************************************************************
I've renamed the thread as Cal-El put it to me quite reasonably that the title I was using (which included the words "infecting like a virus") would frighten some people. I accept I was wrong in using words that could be misunderstood. Particularly as some here do not have English as their first language.
I'm sorry I caused some people confusion. I hope the new title is a better fit.
The Bug Details
This missing method bug is infecting more and more ROMs, perhaps as dev's copy each other's code.
ROMs known (by me) to be affected so far are:
FastTest (v2.4 to 2.6.1 - have not tested prior) - Verified personally and notified the dev providing logcat.
Complete Eclair v1.1 - Verified personally and notified the dev providing logcat.
Open Eclair v1.1.5 (Issue 147 New and still open) UPDATE: The bug is NOT seen in OE v1.2.1.
KingKlick AOSP2.1 v1.6.1 (post #2678)
SYMPTOM: The missing method is: android.view.ScaleGestureDetector.onTouchEvent
Can we please fix it and stop it spreading? It break apps like My Track, Wifi Tracker and CoPilot has also begun crashing but I haven't verified that one personally.
This is the error - same in all instances. It looks like Android's gesture support has been partially broken, though may just be a symptom of some other problem.
I/dalvikvm( 517): Could not find method
android.view.ScaleGestureDetector.onTouchEvent, referenced from method
com.google.android.maps.MapView.onTouchEvent
W/dalvikvm( 517): VFY: unable to resolve virtual method 231:
Landroid/view/ScaleGestureDetector;.onTouchEvent (Landroid/view/MotionEventZ
D/dalvikvm( 517): VFY: replacing opcode 0x6e at 0x001e
D/dalvikvm( 517): Making a copy of
Lcom/google/android/maps/MapView;.onTouchEvent code (96 bytes)
E/dalvikvm( 517): Could not find class
'android.view.ScaleGestureDetector', referenced from method
com.google.android.maps.MapView.setup
W/dalvikvm( 517): VFY: unable to resolve new-instance 84
(Landroid/view/ScaleGestureDetector in Lcom/google/android/maps/MapView;
D/dalvikvm( 517): VFY: replacing opcode 0x22 at 0x0065
D/dalvikvm( 517): Making a copy of Lcom/google/android/maps/MapView;.setup
code (272 bytes)
D/AndroidRuntime( 517): Shutting down VM
i can verify this is an issue on King's 1.6.1
here's the logcat when launching MyMaps Editor
HTML:
I/ActivityManager( 2730): Starting activity: Intent { act=android.intent.action.
MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.google.androi
d.apps.mymaps/.MyMapsMain bnds=[3,338][77,417] }
I/ActivityManager( 2730): Start proc com.google.android.apps.mymaps for activity
com.google.android.apps.mymaps/.MyMapsMain: pid=3700 uid=10085 gids={3003, 1015
}
I/ActivityManager( 2730): Process com.android.settings (pid 3683) has died.
D/dalvikvm( 2714): GC freed 308 objects / 11736 bytes in 194ms
V/RenderScript_jni( 2855): surfaceDestroyed
V/RenderScript( 2855): setSurface 0 0 0x0
D/dalvikvm( 2714): GC freed 57 objects / 2624 bytes in 477ms
D/dalvikvm( 2714): GC freed 2 objects / 48 bytes in 229ms
I/dalvikvm( 3700): Could not find method android.view.ScaleGestureDetector.onTou
chEvent, referenced from method com.google.android.maps.MapView.onTouchEvent
W/dalvikvm( 3700): VFY: unable to resolve virtual method 231: Landroid/view/Scal
eGestureDetector;.onTouchEvent (Landroid/view/MotionEvent;)Z
D/dalvikvm( 3700): VFY: replacing opcode 0x6e at 0x001e
D/dalvikvm( 3700): Making a copy of Lcom/google/android/maps/MapView;.onTouchEve
nt code (96 bytes)
E/dalvikvm( 3700): Could not find class 'android.view.ScaleGestureDetector', ref
erenced from method com.google.android.maps.MapView.setup
W/dalvikvm( 3700): VFY: unable to resolve new-instance 84 (Landroid/view/ScaleGe
stureDetector;) in Lcom/google/android/maps/MapView;
D/dalvikvm( 3700): VFY: replacing opcode 0x22 at 0x0065
D/dalvikvm( 3700): Making a copy of Lcom/google/android/maps/MapView;.setup code
(272 bytes)
D/dalvikvm( 3700): GC freed 7520 objects / 432488 bytes in 99ms
D/AndroidRuntime( 3700): Shutting down VM
W/dalvikvm( 3700): threadid=3: thread exiting with uncaught exception (group=0x4
001e180)
E/AndroidRuntime( 3700): Uncaught handler: thread main exiting due to uncaught e
xception
E/AndroidRuntime( 3700): java.lang.RuntimeException: Unable to start activity Co
mponentInfo{com.google.android.apps.mymaps/com.google.android.apps.mymaps.MyMaps
Main}: android.view.InflateException: Binary XML file line #8: Error inflating c
lass com.google.android.maps.MapView
E/AndroidRuntime( 3700): at android.app.ActivityThread.performLaunchActiv
ity(ActivityThread.java:2496)
E/AndroidRuntime( 3700): at android.app.ActivityThread.handleLaunchActivi
ty(ActivityThread.java:2512)
E/AndroidRuntime( 3700): at android.app.ActivityThread.access$2200(Activi
tyThread.java:119)
E/AndroidRuntime( 3700): at android.app.ActivityThread$H.handleMessage(Ac
tivityThread.java:1863)
E/AndroidRuntime( 3700): at android.os.Handler.dispatchMessage(Handler.ja
va:99)
E/AndroidRuntime( 3700): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 3700): at android.app.ActivityThread.main(ActivityThrea
d.java:4363)
E/AndroidRuntime( 3700): at java.lang.reflect.Method.invokeNative(Native
Method)
E/AndroidRuntime( 3700): at java.lang.reflect.Method.invoke(Method.java:5
21)
E/AndroidRuntime( 3700): at com.android.internal.os.ZygoteInit$MethodAndA
rgsCaller.run(ZygoteInit.java:860)
E/AndroidRuntime( 3700): at com.android.internal.os.ZygoteInit.main(Zygot
eInit.java:618)
E/AndroidRuntime( 3700): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 3700): Caused by: android.view.InflateException: Binary XML fi
le line #8: Error inflating class com.google.android.maps.MapView
E/AndroidRuntime( 3700): at android.view.LayoutInflater.createView(Layout
Inflater.java:513)
E/AndroidRuntime( 3700): at android.view.LayoutInflater.createViewFromTag
(LayoutInflater.java:565)
E/AndroidRuntime( 3700): at android.view.LayoutInflater.rInflate(LayoutIn
flater.java:618)
E/AndroidRuntime( 3700): at android.view.LayoutInflater.inflate(LayoutInf
later.java:407)
E/AndroidRuntime( 3700): at android.view.LayoutInflater.inflate(LayoutInf
later.java:320)
E/AndroidRuntime( 3700): at android.view.LayoutInflater.inflate(LayoutInf
later.java:276)
E/AndroidRuntime( 3700): at com.android.internal.policy.impl.PhoneWindow.
setContentView(PhoneWindow.java:198)
E/AndroidRuntime( 3700): at android.app.Activity.setContentView(Activity.
java:1622)
E/AndroidRuntime( 3700): at com.google.android.apps.mymaps.MyMapsMain.onC
reate(MyMapsMain.java:124)
E/AndroidRuntime( 3700): at android.app.Instrumentation.callActivityOnCre
ate(Instrumentation.java:1047)
E/AndroidRuntime( 3700): at android.app.ActivityThread.performLaunchActiv
ity(ActivityThread.java:2459)
E/AndroidRuntime( 3700): ... 11 more
E/AndroidRuntime( 3700): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 3700): at com.google.android.maps.MapView.<init>(MapVie
w.java:238)
E/AndroidRuntime( 3700): at java.lang.reflect.Constructor.constructNative
(Native Method)
E/AndroidRuntime( 3700): at java.lang.reflect.Constructor.newInstance(Con
structor.java:446)
E/AndroidRuntime( 3700): at android.view.LayoutInflater.createView(Layout
Inflater.java:500)
E/AndroidRuntime( 3700): ... 21 more
E/AndroidRuntime( 3700): Caused by: java.lang.NoClassDefFoundError: android.view
.ScaleGestureDetector
E/AndroidRuntime( 3700): at com.google.android.maps.MapView.setup(MapView
.java:368)
E/AndroidRuntime( 3700): at com.google.android.maps.MapActivity.setupMapV
iew(MapActivity.java:187)
E/AndroidRuntime( 3700): at com.google.android.maps.MapView.<init>(MapVie
w.java:280)
E/AndroidRuntime( 3700): at com.google.android.maps.MapView.<init>(MapVie
w.java:255)
E/AndroidRuntime( 3700): ... 25 more
I/Process ( 2730): Sending signal. PID: 3700 SIG: 3
I/dalvikvm( 3700): threadid=7: reacting to signal 3
I/dalvikvm( 3700): Wrote stack trace to '/data/anr/traces.txt'
W/ActivityManager( 2730): Launch timeout has expired, giving up wake lock!
W/ActivityManager( 2730): Activity idle timeout for HistoryRecord{4403e008 com.g
oogle.android.apps.mymaps/.MyMapsMain}
ya know I noticed something with CoPilot on Sunday Morning, just plain old wouldnt work! i was kinda pissed. I think i was using OpenEclair sunday morning
How bad is this?? Is this something that can be fixed, or our we screwed?
nicknowsky said:
ya know I noticed something with CoPilot on Sunday Morning, just plain old wouldnt work! i was kinda pissed. I think i was using OpenEclair sunday morning
How bad is this?? Is this something that can be fixed, or our we screwed?
Click to expand...
Click to collapse
If this is that bad then someone should warn the developers about this.
Although i dont use any of the Forementioned apps =/
Looking at the error (specifically the mention of "com.google.android.maps.MapView.setup"), this is possibly related to OpenEclair http://code.google.com/p/openeclair/issues/detail?id=24Issue 24. It was a case of the wrong version of /system/framework/com.google.android.maps.jar file being shipped with earlier OpenEclair versions that should've been resolved in 1.2.1. Try the solution from this post and see if it fixes it for you.
If they really were "developers". Whats the point in copying someone else's BAD code. If they have done it, why do you need to do it as well and clutter this world with irrelevant ****.
Bavilo said:
If they really were "developers". Whats the point in copying someone else's BAD code. If they have done it, why do you need to do it as well and clutter this world with irrelevant ****.
Click to expand...
Click to collapse
Just let them be, it will be moved or locked as usual if a mod thinks this is also irrelevant. When I heard virus I thought they meant a real virus was in the ROMs.
oh man i dont want a virus on my g1.....does norton make a antivirus for it? lol.
hope this code thing gets looked at tho
surely the "like a virus" bit should have made it apparent that it wasnt actually a virus...but it was spreading through 'direct contact' so to speak...
The dude should really change that so as to not scare anyone lol
Chahk said:
Looking at the error (specifically the mention of "com.google.android.maps.MapView.setup"), this is possibly related to OpenEclair http://code.google.com/p/openeclair/issues/detail?id=24Issue 24. It was a case of the wrong version of /system/framework/com.google.android.maps.jar file being shipped with earlier OpenEclair versions that should've been resolved in 1.2.1. Try the solution from this post and see if it fixes it for you.
Click to expand...
Click to collapse
thanks for this. i can verify that pushing this jar file fixed MyMaps Editor.
edit: also fixed My Tracks and OpenTable. Thanks again.
Macrophage001 said:
The dude should really change that so as to not scare anyone lol
Click to expand...
Click to collapse
Someone in another thread actually was scared. He was asking if it could infect other system processes.
Macrophage001 said:
The dude should really change that so as to not scare anyone lol
Click to expand...
Click to collapse
i mean really! we already have the whole " does video work on this 2.1" rage and now we'll have "is that virus in this ROM" rage
kathi17 said:
Someone in another thread actually was scared. He was asking if it could infect other system processes.
Click to expand...
Click to collapse
lol see what i mean
thanks for the find. the king 1.6.1 is lagging the crap out of my fone ..
kathi17 said:
Someone in another thread actually was scared. He was asking if it could infect other system processes.
Click to expand...
Click to collapse
LOL! not to infect!... more likely to "affect"
How were you guys never concerned about viruses before?
I always scan the files before I put them on my phone anyway.
Chahk said:
Looking at the error (specifically the mention of "com.google.android.maps.MapView.setup"), this is possibly related to OpenEclair http://code.google.com/p/openeclair/issues/detail?id=24Issue 24. It was a case of the wrong version of /system/framework/com.google.android.maps.jar file being shipped with earlier OpenEclair versions that should've been resolved in 1.2.1. Try the solution from this post and see if it fixes it for you.
Click to expand...
Click to collapse
Well, this actually worked for me as well... thank you!
josevtome said:
Well, this actually worked for me as well... thank you!
Click to expand...
Click to collapse
Thank Shafty, not me
Chahk said:
Thank Shafty, not me
Click to expand...
Click to collapse
hehehe right!... well you got the credit for the reference!

[Request] QuadraPop Game from Xperia X10

Hi,
Can someone extract the Quadra Pop game from Xperia X10 and make it work on the Nexus One? Would really appreciate it.
Thanks
- Vidit
I tried simply using the .apk as-is, it installed fine but I got this stacktrace when I tried to run it.
Code:
D/Quadrapop( 4179): Stop loading animation
I/CustomTrace( 4179): setSoftKeys
I/trace ( 4179): initLanguageMenu
D/AlarmManagerService( 143): Kernel timezone updated to 300 minutes west of GMT
D/SystemClock( 218): Setting time of day to sec=1271318340
D/Quadrapop( 4179): cleanup animation frame
D/AndroidRuntime( 4179): Shutting down VM
W/dalvikvm( 4179): threadid=3: thread exiting with uncaught exception (group=0x4001b188)
E/AndroidRuntime( 4179): Uncaught handler: thread main exiting due to uncaught exception
E/AndroidRuntime( 4179): java.lang.IllegalThreadStateException: Thread already started.
E/AndroidRuntime( 4179): at java.lang.Thread.start(Thread.java:1322)
E/AndroidRuntime( 4179): at com.reaxion.android.quadrapop_new.QuadrapopView.surfaceCreated(QuadrapopView.java:290)
E/AndroidRuntime( 4179): at android.view.SurfaceView.updateWindow(SurfaceView.java:454)
E/AndroidRuntime( 4179): at android.view.SurfaceView.setVisibility(SurfaceView.java:197)
E/AndroidRuntime( 4179): at com.reaxion.android.quadrapop_new.Quadrapop$LoaderThread.cleanupAnimation(Quadrapop.java:460)
E/AndroidRuntime( 4179): at com.reaxion.android.quadrapop_new.Quadrapop$LoaderThread.access$500(Quadrapop.java:376)
E/AndroidRuntime( 4179): at com.reaxion.android.quadrapop_new.Quadrapop$LoaderThread$3.run(Quadrapop.java:406)
E/AndroidRuntime( 4179): at android.os.Handler.handleCallback(Handler.java:587)
E/AndroidRuntime( 4179): at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime( 4179): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 4179): at android.app.ActivityThread.main(ActivityThread.java:4363)
E/AndroidRuntime( 4179): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 4179): at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 4179): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
E/AndroidRuntime( 4179): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
E/AndroidRuntime( 4179): at dalvik.system.NativeStart.main(Native Method)
I/Process ( 143): Sending signal. PID: 4179 SIG: 3
I/dalvikvm( 4179): threadid=7: reacting to signal 3
What's the solution for this?
Sony says the 2.1 version will be out in Sept....thats one possible solution.
hi!
any news on this? I want to install it on my HTC DHD
I want it bad too!

Spare parts app force closes.

All of a sudden, spare parts force closes! How can I get it working again?
-------------------------------------
Sent via the XDA Tapatalk App
Have you tried uninstall and reinstall?
I did. I might try uninstall and reboot before reinstall.
EDIT: no good. Sigh...
-------------------------------------
Sent via the XDA Tapatalk App
Punnisher_42 said:
I did. I might try uninstall and reboot before reinstall.
EDIT: no good. Sigh...
-------------------------------------
Sent via the XDA Tapatalk App
Click to expand...
Click to collapse
Maybe the best way is to post a copy of the logcat when this happens. This happened to me as well and I tried uninstall/reinstall, but then it stopped happening so I cannot reproduce it anymore.
For logcat you will have to install the Android SDK and run ddms.bat with the phone connected to the PC via USB. Make sure that the phone as USB Debugging enabled (Settings->Applications->Development->USB Debugging), the use Device->Run Logcat on the ddms main window.
Another way that I found to inspect the logcat is via Android System Info app (free from Android Market).
j4mm3r said:
Maybe the best way is to post a copy of the logcat when this happens. This happened to me as well and I tried uninstall/reinstall, but then it stopped happening so I cannot reproduce it anymore.
For logcat you will have to install the Android SDK and run ddms.bat with the phone connected to the PC via USB. Make sure that the phone as USB Debugging enabled (Settings->Applications->Development->USB Debugging), the use Device->Run Logcat on the ddms main window.
Another way that I found to inspect the logcat is via Android System Info app (free from Android Market).
Click to expand...
Click to collapse
logcat comes up with the following when i click on spare parts:
I/WindowManager( 960): onOrientationChanged, rotation changed to 0
E/dun_service( 1776): Unable to open external port /dev/ttyHSUSB0 : No such device
W/InputManagerService( 960): Window already focused, ignoring focus gain of: [email protected]
E/dun_service( 1779): Unable to open external port /dev/ttyHSUSB0 : No such device
E/dun_service( 1781): Unable to open external port /dev/ttyHSUSB0 : No such device
I/ActivityManager( 960): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.androidapps.spare_parts/.SpareParts }
I/ActivityManager( 960): Start proc com.androidapps.spare_parts for activity com.androidapps.spare_parts/.SpareParts: pid=1784 uid=10100 gids={3003, 1015}
D/ddm-heap( 1784): Got feature list request
W/System.err( 1784): android.provider.Settings$SettingNotFoundException: always_finish_activities
W/System.err( 1784): at android.provider.Settings$System.getInt(Settings.java:631)
W/System.err( 1784): at com.androidapps.spare_parts.SpareParts.readAlwaysFinishesPreference(SpareParts.java:354)
W/System.err( 1784): at com.androidapps.spare_parts.SpareParts.onResume(SpareParts.java:451)
W/System.err( 1784): at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1225)
W/System.err( 1784): at android.app.Activity.performResume(Activity.java:3560)
W/System.err( 1784): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2838)
W/System.err( 1784): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2866)
W/System.err( 1784): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2420)
W/System.err( 1784): at android.app.ActivityThread.access$2100(ActivityThread.java:116)
W/System.err( 1784): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
W/System.err( 1784): at android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err( 1784): at android.os.Looper.loop(Looper.java:123)
W/System.err( 1784): at android.app.ActivityThread.main(ActivityThread.java:4203)
W/System.err( 1784): at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err( 1784): at java.lang.reflect.Method.invoke(Method.java:521)
W/System.err( 1784): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:799)
W/System.err( 1784): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557)
W/System.err( 1784): at dalvik.system.NativeStart.main(Native Method)
W/dalvikvm( 1784): threadid=3: thread exiting with uncaught exception (group=0x2aadda10)
E/AndroidRuntime( 1784): Uncaught handler: thread main exiting due to uncaught exception
E/AndroidRuntime( 1784): java.lang.RuntimeException: Unable to resume activity {com.androidapps.spare_parts/com.androidapps.spare_parts.SpareParts}: java.lang.ArrayIndexOutOfBoundsException
E/AndroidRuntime( 1784): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2851)
E/AndroidRuntime( 1784): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2866)
E/AndroidRuntime( 1784): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2420)
E/AndroidRuntime( 1784): at android.app.ActivityThread.access$2100(ActivityThread.java:116)
E/AndroidRuntime( 1784): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
E/AndroidRuntime( 1784): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 1784): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 1784): at android.app.ActivityThread.main(ActivityThread.java:4203)
E/AndroidRuntime( 1784): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 1784): at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 1784): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:799)
E/AndroidRuntime( 1784): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557)
E/AndroidRuntime( 1784): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 1784): Caused by: java.lang.ArrayIndexOutOfBoundsException
E/AndroidRuntime( 1784): at android.preference.ListPreference.setValueIndex(ListPreference.java:136)
E/AndroidRuntime( 1784): at com.androidapps.spare_parts.SpareParts.readWifiSleepPolicyPreference(SpareParts.java:344)
E/AndroidRuntime( 1784): at com.androidapps.spare_parts.SpareParts.onResume(SpareParts.java:453)
E/AndroidRuntime( 1784): at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1225)
E/AndroidRuntime( 1784): at android.app.Activity.performResume(Activity.java:3560)
E/AndroidRuntime( 1784): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2838)
E/AndroidRuntime( 1784): ... 12 more
E/http ( 1784): Cannot get NetworkInfo, act as Wifi.
Click to expand...
Click to collapse
Punnisher_42 said:
logcat comes up with the following when i click on spare parts:
Click to expand...
Click to collapse
Hmm, clearly looks like the application craps out when initializing its settings. Usually an uninstall/reinstall should clear out any corrupted settings and let the app start again with defaults, but clearly this is not the case.
By the way, try this:
Uninstall spare parts and use Any Cut or something similar to create a short cut to the activity called Battery History (Settings - BatteryHistory), launch it and you will find that it gives you access to the same Battery History information as you would have got from Spare Parts (Spare Parts probably uses the same thing). After that reinstall Spare Parts and see if it can start.
I'm also trying to figure out some kind of manual way of clearing out application data on the internal storage. Maybe some of the devs can help and give some hints?
/j4mm3r
No joy j4mm3r. But at least I now can access the battery history which was basically the only reason I needed spate parts.
-------------------------------------
Sent via the XDA Tapatalk App

[APP][3.0+] Ultimate Randomizer

Ultimate Ranomizer
market://play.google.com/store/apps/details?id=com.w2e.activities
A simple randomizer that gets your needed randoms done. This randomizer will help you through your hard times thinking where to eat, what to do, what color of shirt to wear and many more.
Currently having:
-Random list that you make
-Random Letter
-Random Number (with range)
-Random Dice Roll
-Random Color
-Random Coin Flip
-Random Image
-Random Password
I will add more features soon!
Should you have concerns and suggestion or found a bug in the app? Just send me an email or do the feedbacks in the app itself. I am willing to develop this further to what it is now.
Nice app! It crashes on random image only. Using N4
Here's the link: https://play.google.com/store/apps/details?id=com.w2e.activities
Bug! Force close by clicking on 'Image' (Nexus 5, AOSPAL 4.4.2 with ART).
Got some logcat for you:
Code:
I/ActivityManager(20562): Timeline: Activity_windows_visible id: ActivityRecord{
6616ea48 u0 com.w2e.activities/.UltimateRandomizer t97} time:33137435
I/ActivityManager( 927): Timeline: Activity_launch_request id:com.w2e.activitie
s time:33142468
I/ActivityManager(20562): START u0 {cmp=com.w2e.activities/.Image} from pid 927
D/audio_hw_primary(20266): select_devices: out_snd_device(2: speaker) in_snd_dev
ice(0: )
E/DatabaseUtils(32196): Writing exception to parcel
E/DatabaseUtils(32196): java.lang.SecurityException: Permission Denial: reading
com.android.providers.media.MediaProvider uri content://media/external/images/me
dia from pid=927, uid=10181 requires android.permission.READ_EXTERNAL_STORAGE, o
r grantUriPermission()
E/DatabaseUtils(32196): at android.content.ContentProvider.enforceReadPe
rmissionInner(ContentProvider.java:467)
E/DatabaseUtils(32196): at android.content.ContentProvider$Transport.enf
orceReadPermission(ContentProvider.java:394)
E/DatabaseUtils(32196): at android.content.ContentProvider$Transport.que
ry(ContentProvider.java:194)
E/DatabaseUtils(32196): at android.content.ContentProviderNative.onTrans
act(ContentProviderNative.java:112)
E/DatabaseUtils(32196): at android.os.Binder.execTransact(Binder.java:40
4)
D/AndroidRuntime( 927): Shutting down VM
E/AndroidRuntime( 927): FATAL EXCEPTION: main
E/AndroidRuntime( 927): Process: com.w2e.activities, PID: 927
E/AndroidRuntime( 927): java.lang.RuntimeException: Unable to start activity Co
mponentInfo{com.w2e.activities/com.w2e.activities.Image}: java.lang.SecurityExce
ption: Permission Denial: reading com.android.providers.media.MediaProvider uri
content://media/external/images/media from pid=927, uid=10181 requires android.p
ermission.READ_EXTERNAL_STORAGE, or grantUriPermission()
E/AndroidRuntime( 927): at android.app.ActivityThread.performLaunchActiv
ity(ActivityThread.java:2195)
E/AndroidRuntime( 927): at android.app.ActivityThread.handleLaunchActivi
ty(ActivityThread.java:2245)
E/AndroidRuntime( 927): at android.app.ActivityThread.access$800(Activit
yThread.java:135)
E/AndroidRuntime( 927): at android.app.ActivityThread$H.handleMessage(Ac
tivityThread.java:1196)
E/AndroidRuntime( 927): at android.os.Handler.dispatchMessage(Handler.ja
va:102)
E/AndroidRuntime( 927): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime( 927): at android.app.ActivityThread.main(ActivityThrea
d.java:5017)
E/AndroidRuntime( 927): at java.lang.reflect.Method.invoke(Native Method
)
E/AndroidRuntime( 927): at com.android.internal.os.ZygoteInit$MethodAndA
rgsCaller.run(ZygoteInit.java:779)
E/AndroidRuntime( 927): at com.android.internal.os.ZygoteInit.main(Zygot
eInit.java:595)
E/AndroidRuntime( 927): Caused by: java.lang.SecurityException: Permission Deni
al: reading com.android.providers.media.MediaProvider uri content://media/extern
al/images/media from pid=927, uid=10181 requires android.permission.READ_EXTERNA
L_STORAGE, or grantUriPermission()
E/AndroidRuntime( 927): at android.os.Parcel.readException(Parcel.java:1
465)
E/AndroidRuntime( 927): at android.database.DatabaseUtils.readExceptionF
romParcel(DatabaseUtils.java:185)
E/AndroidRuntime( 927): at android.database.DatabaseUtils.readExceptionF
romParcel(DatabaseUtils.java:137)
E/AndroidRuntime( 927): at android.content.ContentProviderProxy.query(Co
ntentProviderNative.java:420)
E/AndroidRuntime( 927): at android.content.ContentResolver.query(Content
Resolver.java:461)
E/AndroidRuntime( 927): at android.content.ContentResolver.query(Content
Resolver.java:404)
E/AndroidRuntime( 927): at android.app.Activity.managedQuery(Activity.ja
va:1799)
E/AndroidRuntime( 927): at com.w2e.activities.Image.onCreate(Image.java:
51)
E/AndroidRuntime( 927): at android.app.Activity.performCreate(Activity.j
ava:5241)
E/AndroidRuntime( 927): at android.app.Instrumentation.callActivityOnCre
ate(Instrumentation.java:1087)
E/AndroidRuntime( 927): at android.app.ActivityThread.performLaunchActiv
ity(ActivityThread.java:2159)
E/AndroidRuntime( 927): ... 9 more
W/ActivityManager(20562): Force finishing activity com.w2e.activities/.Image
W/ActivityManager(20562): Force finishing activity com.w2e.activities/.Ultimat
eRandomizer
W/ActivityManager(20562): Activity pause timeout for ActivityRecord{658110e0 u0
com.w2e.activities/.Image t97 f}
I/ActivityManager(22353): Timeline: Activity_idle id: [email protected]
8c960 time:33143091
I/ActivityManager(20562): Timeline: Activity_windows_visible id: ActivityRecord{
65f8c490 u0 com.anddoes.launcher/.Launcher t1} time:33143350
W/ActivityManager(20562): Activity destroy timeout for ActivityRecord{6616ea48 u
0 com.w2e.activities/.UltimateRandomizer t97 f}
W/ActivityManager(20562): Activity destroy timeout for ActivityRecord{658110e0 u
0 com.w2e.activities/.Image t97 f}
The app is awesome! The colour works for me. (Xperia Sola)
Sent from my Xperia Sola using XDA Premium..
Nice app +1
Potential Security Problems?
I was looking through the smalicode/javacode of the app, and it seems to be using Java.util.Random for Pseudo-random number generation of passwords and whatnot... While there's nothing wrong with that if you use this app for daily use (EG: settling arguments with a coin flip), perhaps it might be better to use something like java.security.SecureRandom for the Password and Dice roll activities.
Great app BTW!
crashes on random image
full stock Nexus 5 on ART
nice app anyway! :good:
dnkncht said:
Bug! Force close by clicking on 'Image' (Nexus 5, AOSPAL 4.4.2 with ART).
Got some logcat for you:
Code:
I/ActivityManager(20562): Timeline: Activity_windows_visible id: ActivityRecord{
6616ea48 u0 com.w2e.activities/.UltimateRandomizer t97} time:33137435
I/ActivityManager( 927): Timeline: Activity_launch_request id:com.w2e.activitie
s time:33142468
I/ActivityManager(20562): START u0 {cmp=com.w2e.activities/.Image} from pid 927
D/audio_hw_primary(20266): select_devices: out_snd_device(2: speaker) in_snd_dev
ice(0: )
E/DatabaseUtils(32196): Writing exception to parcel
E/DatabaseUtils(32196): java.lang.SecurityException: Permission Denial: reading
com.android.providers.media.MediaProvider uri content://media/external/images/me
dia from pid=927, uid=10181 requires android.permission.READ_EXTERNAL_STORAGE, o
r grantUriPermission()
E/DatabaseUtils(32196): at android.content.ContentProvider.enforceReadPe
rmissionInner(ContentProvider.java:467)
E/DatabaseUtils(32196): at android.content.ContentProvider$Transport.enf
orceReadPermission(ContentProvider.java:394)
E/DatabaseUtils(32196): at android.content.ContentProvider$Transport.que
ry(ContentProvider.java:194)
E/DatabaseUtils(32196): at android.content.ContentProviderNative.onTrans
act(ContentProviderNative.java:112)
E/DatabaseUtils(32196): at android.os.Binder.execTransact(Binder.java:40
4)
D/AndroidRuntime( 927): Shutting down VM
E/AndroidRuntime( 927): FATAL EXCEPTION: main
E/AndroidRuntime( 927): Process: com.w2e.activities, PID: 927
E/AndroidRuntime( 927): java.lang.RuntimeException: Unable to start activity Co
mponentInfo{com.w2e.activities/com.w2e.activities.Image}: java.lang.SecurityExce
ption: Permission Denial: reading com.android.providers.media.MediaProvider uri
content://media/external/images/media from pid=927, uid=10181 requires android.p
ermission.READ_EXTERNAL_STORAGE, or grantUriPermission()
E/AndroidRuntime( 927): at android.app.ActivityThread.performLaunchActiv
ity(ActivityThread.java:2195)
E/AndroidRuntime( 927): at android.app.ActivityThread.handleLaunchActivi
ty(ActivityThread.java:2245)
E/AndroidRuntime( 927): at android.app.ActivityThread.access$800(Activit
yThread.java:135)
E/AndroidRuntime( 927): at android.app.ActivityThread$H.handleMessage(Ac
tivityThread.java:1196)
E/AndroidRuntime( 927): at android.os.Handler.dispatchMessage(Handler.ja
va:102)
E/AndroidRuntime( 927): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime( 927): at android.app.ActivityThread.main(ActivityThrea
d.java:5017)
E/AndroidRuntime( 927): at java.lang.reflect.Method.invoke(Native Method
)
E/AndroidRuntime( 927): at com.android.internal.os.ZygoteInit$MethodAndA
rgsCaller.run(ZygoteInit.java:779)
E/AndroidRuntime( 927): at com.android.internal.os.ZygoteInit.main(Zygot
eInit.java:595)
E/AndroidRuntime( 927): Caused by: java.lang.SecurityException: Permission Deni
al: reading com.android.providers.media.MediaProvider uri content://media/extern
al/images/media from pid=927, uid=10181 requires android.permission.READ_EXTERNA
L_STORAGE, or grantUriPermission()
E/AndroidRuntime( 927): at android.os.Parcel.readException(Parcel.java:1
465)
E/AndroidRuntime( 927): at android.database.DatabaseUtils.readExceptionF
romParcel(DatabaseUtils.java:185)
E/AndroidRuntime( 927): at android.database.DatabaseUtils.readExceptionF
romParcel(DatabaseUtils.java:137)
E/AndroidRuntime( 927): at android.content.ContentProviderProxy.query(Co
ntentProviderNative.java:420)
E/AndroidRuntime( 927): at android.content.ContentResolver.query(Content
Resolver.java:461)
E/AndroidRuntime( 927): at android.content.ContentResolver.query(Content
Resolver.java:404)
E/AndroidRuntime( 927): at android.app.Activity.managedQuery(Activity.ja
va:1799)
E/AndroidRuntime( 927): at com.w2e.activities.Image.onCreate(Image.java:
51)
E/AndroidRuntime( 927): at android.app.Activity.performCreate(Activity.j
ava:5241)
E/AndroidRuntime( 927): at android.app.Instrumentation.callActivityOnCre
ate(Instrumentation.java:1087)
E/AndroidRuntime( 927): at android.app.ActivityThread.performLaunchActiv
ity(ActivityThread.java:2159)
E/AndroidRuntime( 927): ... 9 more
W/ActivityManager(20562): Force finishing activity com.w2e.activities/.Image
W/ActivityManager(20562): Force finishing activity com.w2e.activities/.Ultimat
eRandomizer
W/ActivityManager(20562): Activity pause timeout for ActivityRecord{658110e0 u0
com.w2e.activities/.Image t97 f}
I/ActivityManager(22353): Timeline: Activity_idle id: [email protected]
8c960 time:33143091
I/ActivityManager(20562): Timeline: Activity_windows_visible id: ActivityRecord{
65f8c490 u0 com.anddoes.launcher/.Launcher t1} time:33143350
W/ActivityManager(20562): Activity destroy timeout for ActivityRecord{6616ea48 u
0 com.w2e.activities/.UltimateRandomizer t97 f}
W/ActivityManager(20562): Activity destroy timeout for ActivityRecord{658110e0 u
0 com.w2e.activities/.Image t97 f}
Click to expand...
Click to collapse
Hmm...
Code:
E/AndroidRuntime( 927): Caused by: java.lang.SecurityException: Permission Deni
al: reading com.android.providers.media.MediaProvider uri content://media/extern
al/images/media from pid=927, uid=10181 requires android.permission.READ_EXTERNA
L_STORAGE, or grantUriPermission()
Looks like android.permission.READ_EXTERNAL_STORAGE is missing from the Android Manifest file...
Hi, Guys thanks for the feedbacks. I have updated the app yesterday with Random Time / Position Feature. I also managed to pull out the Crashes for the random image part for most of the phones, but for now I'm having trouble with those few still having the error. You can try reinstalling the app, and if does not work, I truly apologize. I am still researching a way for that crash problems occuring in 4.4 versions with the random image. PS I already have the permission to read external storage. Thanks again guys!
It would be nice to have a human generation option. So basically, you would have a "scribble" area where I could run my finger around and generate some entropy to compute the random number/shape/letter/etc. Then it wouldn't necessarily have to rely on a computer algorithm for randomness.
I know TrueCrypt does this when you encrypt your hard drive. It has you run your mouse around for a few seconds to get entropy.
+1

I need help to solve this game bug

Hi everyone,
I need help to solve a bug with the old gameloft games on android ICS and higher
the problem appear when i making a multitouch action while I run the game, then the game gives me force close. I noticed in the logcat and this is the error:
HTML:
01-03 16:48:15.726 E/AndroidRuntime( 4860): FATAL EXCEPTION: main
01-03 16:48:15.726 E/AndroidRuntime( 4860): java.lang.IllegalArgumentException: pointerIndex out of range
01-03 16:48:15.726 E/AndroidRuntime( 4860): at android.view.MotionEvent.nativeGetAxisValue(Native Method)
01-03 16:48:15.726 E/AndroidRuntime( 4860): at android.view.MotionEvent.getX(MotionEvent.java:197 4)
01-03 16:48:15.726 E/AndroidRuntime( 4860): at com.gameloft.android.TBFV.GloftGMHP.ML.GameGLSurfa ceView.onTouchEvent(GameGLSurfaceView.java:285)
01-03 16:48:15.726 E/AndroidRuntime( 4860): at android.view.View.dispatchTouchEvent(View.java:554 1).
it is clear that this bug does not happen to me when I run the game in android 2.3 or lower
I would like to know if someone knows the way to fix this either modifying the app or modifying the android system.
thanks for your attention and I hope answers

Categories

Resources