[APP][3.0+] Ultimate Randomizer

ekimual

Member
Mar 25, 2014
6
17
0
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.
 

dnkncht

Senior Member
Nov 4, 2012
97
55
0
Nuremberg
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}
 
  • Like
Reactions: ekimual

joshumax

Senior Member
Aug 19, 2011
96
44
48
22
www.github.com
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!
 
  • Like
Reactions: ekimual

joshumax

Senior Member
Aug 19, 2011
96
44
48
22
www.github.com
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}
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...
 
  • Like
Reactions: ekimual

ekimual

Member
Mar 25, 2014
6
17
0
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!
 

ahow628

Senior Member
Sep 24, 2010
262
49
0
Indy
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.