OTA update just popped up - Hero CDMA General

http://liveimage.htc.com/OTA_HeroC_Sprint_2.27.651.6_2.27.651.5_R_release_signedup5v7iujr0g0w2r9.zip
Code:
I/htcCheckinService( 86): == Checkin triggered ==
I/htcCheckinService( 86): Sending checkin request (1, 491 bytes)...
V/htcCheckinService( 86): Reply from server:"{
V/htcCheckinService( 86): "intent": [{
V/htcCheckinService( 86): "action": "android.server.checkin.FOTA_UPDATE",
V/htcCheckinService( 86): "data_uri": "http://liveimage.htc.com/OTA_HeroC_Sprint_2.27.651.6_2.27.651.5_R_release_signedup5v7iujr0g0w2r9.zip",
V/htcCheckinService( 86): "extra": [
V/htcCheckinService( 86): {
V/htcCheckinService( 86): "value": "System Upgrade 2.27.651.6 (3.17 MB)",
V/htcCheckinService( 86): "name": "promptVersion"
V/htcCheckinService( 86): },
V/htcCheckinService( 86): {
V/htcCheckinService( 86): "value": "FOTA update",
V/htcCheckinService( 86): "name": "promptFeature"
V/htcCheckinService( 86): },
V/htcCheckinService( 86): {
V/htcCheckinService( 86): "value": "System Upgrade",
V/htcCheckinService( 86): "name": "promptMessage"
V/htcCheckinService( 86): },
V/htcCheckinService( 86): {
V/htcCheckinService( 86): "value": "3.17 MB",
V/htcCheckinService( 86): "name": "promptSize"
V/htcCheckinService( 86): },
V/htcCheckinService( 86): {
V/htcCheckinService( 86): "value": "30,...",
V/htcCheckinService( 86): "name": "promptMinutes"
V/htcCheckinService( 86): },
V/htcCheckinService( 86): {
V/htcCheckinService( 86): "value": "120",
V/htcCheckinService( 86): "name": "timeoutSeconds"
V/htcCheckinService( 86): }
V/htcCheckinService( 86): ]
V/htcCheckinService( 86): }],
V/htcCheckinService( 86): "stats_ok": true,
V/htcCheckinService( 86): "time_msec": "1276717043789"
V/htcCheckinService( 86): }"
I/htcCheckinService( 86): Intent from server: Intent { act=android.server.checkin.FOTA_UPDATE dat=http://liveimage.htc.com/OTA_HeroC_Sprint_2.27.651.6_2.27.651.5_R_release_signedup5v7iujr0g0w2r9.zip (has extras) }
V/htcCheckinService( 86): Reply OK from server
I/htcCheckinService( 86): Check in interval in DB is:1209600. Interval from server:-1

link broken?

opcode1300 said:
http://liveimage.htc.com/OTA_HeroC_Sprint_2.27.651.6_2.27.651.5_R_release_signedup5v7iujr0g0w2r9.zip
Click to expand...
Click to collapse
Are you running a stock hero but with root?

thatguythatdid said:
Are you running a stock hero but with root?
Click to expand...
Click to collapse
lol no its all stock. its a guy in my training class. i he started playing with his phone. so i grabbed it.
mirror
and the link I posted the first time had junk at the end from the logcat dump

Pretty sure this is just the .6 update that kills root and fixes the SDcard on the evo.
Kind of funny though all the files are dated 9-1-08

opcode1300 said:
lol no its all stock. its a guy in my training class. i he started playing with his phone. so i grabbed it.
mirror
and the link I posted the first time had junk at the end from the logcat dump
Click to expand...
Click to collapse
Talk about dodging a bullet have you compared the md5 between this and the other ota to see if it's the same thing? I wonder why it came so late? Mine showed up minutes after root was posted

thatguythatdid said:
Talk about dodging a bullet have you compared the md5 between this and the other ota to see if it's the same thing? I wonder why it came so late? Mine showed up minutes after root was posted
Click to expand...
Click to collapse
I dont have a hero. so i dont have any other info. sorry

Related

[DEV] Modified Skype app with Video

Hi,
I modified the recently leaked skype w/ video app for the HTC Thunderbolt. Let me document my changes and progress so far:
Here is the original app:http://www.droid-life.com/2011/04/11/download-skype-with-video-on-android/
1) if you try to install the app unmodified on a non HTC thunderbolt phone, you will get an "installation failed" message. I decompiled the app using these instructions: http://jack-mannino.blogspot.com/2010/09/reversing-android-apps-101.html
2) I modified the AndroidManifest.xml to remove this line:
<uses-library android:name="com.htc.device" />
3) I then recompiled and resigned the app( http://www.addictivetips.com/mac-os/auto-sign-tool-for-android-developers-on-mac/).
4) The apk now installed on my Nexus S but I get this error when I opened it:
"Sorry, your phone is not able to use this version of Skype. To find out more about Skype on mobile, visit www.skype.com"
5) I looked through the code and found the offending text in com.skype.ui.SplashScreenActivity.class:
protected void onResume()
{
super.onResume();
if (!f.a())
{
Toast.makeText(this, "Sorry, your phone is not able to use this version of Skype. To find out more about Skype on mobile, visit www.skype.com", 1).show();
finish();
}
.....
I commented out the toast and finish() line and then recompiled and resigned.
6) The apk installs but crashes when I try to open it:
W/dalvikvm(17595): VFY: bad arg 1 (into Ljava/lang/CharSequence
W/dalvikvm(17595): VFY: rejecting call to Landroid/widget/Toast;.makeText (Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;
W/dalvikvm(17595): VFY: rejecting opcode 0x71 at 0x0010
W/dalvikvm(17595): VFY: rejected Lcom/skype/merlin_mecha/ui/SplashScreenActivity;.onResume ()V
W/dalvikvm(17595): Verifier rejected class Lcom/skype/merlin_mecha/ui/SplashScreenActivity;
W/dalvikvm(17595): Class init failed in newInstance call (Lcom/skype/merlin_mecha/ui/SplashScreenActivity
D/AndroidRuntime(17595): Shutting down VM
W/dalvikvm(17595): threadid=1: thread exiting with uncaught exception (group=0x40015560)
E/AndroidRuntime(17595): FATAL EXCEPTION: main
E/AndroidRuntime(17595): java.lang.VerifyError: com.skype.merlin_mecha.ui.SplashScreenActivity
E/AndroidRuntime(17595): at java.lang.Class.newInstanceImpl(Native Method)
E/AndroidRuntime(17595): at java.lang.Class.newInstance(Class.java:1409)
E/AndroidRuntime(17595): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
E/AndroidRuntime(17595): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1681)
E/AndroidRuntime(17595): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1793)
E/AndroidRuntime(17595): at android.app.ActivityThread.access$1500(ActivityThread.java:123)
E/AndroidRuntime(17595): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:939)
E/AndroidRuntime(17595): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(17595): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(17595): at android.app.ActivityThread.main(ActivityThread.java:3848)
E/AndroidRuntime(17595): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(17595): at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime(17595): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
E/AndroidRuntime(17595): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
E/AndroidRuntime(17595): at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager( 176): Force finishing activity com.skype.merlin_mecha/.ui.SplashScreenActivity
W/ActivityManager( 176): Force finishing activity info.tikuwarez.launcher3/.ClassicAppPicker
This is my progress so far and here is my modified apk:http://www.mediafire.com/?l6xddlun3u52ung
Does this enable the use of the back camera instead of the front?
For my wife's fascinate
Sent from my ADR6400L using XDA Premium App
@eyeburn : Thanks for the investigation.
Could you try to remove the " if statement " instead ?
I guess the shared library is not only for security, but we will see that later.
More updates. I looked at the SplashScreenActivity.smali code and removed this line:
invoke-virtual {p0}, Lcom/skype/merlin_mecha/ui/SplashScreenActivity;->finish()V
this basically disables the the exiting(the finish() in the code below) of the program during the verizon phone check.
Now the phone doesn't crash but just stays at the "skype mobile" splash screen with the skype background.
I'll look at this again tomorrow. Gonna sleep now.
Updated apk as of midnight Apr 12: http://www.mediafire.com/?eqgr111a7agg3qv
My current thinking is the app is stuck in this while loop:
protected void onResume()
{
super.onResume();
if (!f.a())
{
Toast.makeText(this, "Sorry, your phone is not able to use this version of Skype. To find out more about Skype on mobile, visit www.skype.com", 1).show();
finish();
}
while (true)
{
return;
Intent localIntent1 = new Intent(this, SignInActivity.class);
boolean bool1 = getIntent().getBooleanExtra("LaunchedBySyncAdapter", 0);
Intent localIntent2 = localIntent1.putExtra("LaunchedBySyncAdapter", bool1);
int i = getIntent().getIntExtra("PostLoginCommand", 0);
Intent localIntent3 = localIntent1.putExtra("PostLoginCommand", i);
String str = getIntent().getStringExtra("PostLoginDataUri");
Intent localIntent4 = localIntent1.putExtra("PostLoginDataUri", str);
ac localac = new ac(this, localIntent1);
monitorenter;
try
{
this.a = localac;
Handler localHandler = this.b;
Runnable localRunnable = this.a;
boolean bool2 = localHandler.postDelayed(localRunnable, 1500L);
monitorexit;
continue;
}
finally
{
localObject = finally;
monitorexit;
}
}
throw localObject;
}
}
I keep getting this messages on my logcat:
I/TelephonyRegistry( 176): notifyServiceState: 0 home T - Mobile T - Mobile 310260 UMTS CSS not supported -1 -1RoamInd: -1DefRoamInd: -1EmergOnly: false
I/TelephonyRegistry( 176): notifyDataConnection: state=2 isDataConnectivityPossible=true reason=null interfaceName=rmnet0 networkType=3
I/TelephonyRegistry( 176): notifyServiceState: 0 home T - Mobile T - Mobile 310260 HSDPA CSS not supported -1 -1RoamInd: -1DefRoamInd: -1EmergOnly: false
I/TelephonyRegistry( 176): notifyDataConnection: state=2 isDataConnectivityPossible=true reason=null interfaceName=rmnet0 networkType=8
More likely, that you killed the login intent, which supposed to invoke login activity. You already have 'return' as the first statement of the while loop. The code in it's current state doesn't make sense to me. It should be an exist condition from the loop, otherwise the only way to exit the loop is via exception, which will effectively kill the application.
ivan.volosyuk said:
More likely, that you killed the login intent, which supposed to invoke login activity. You already have 'return' as the first statement of the while loop. The code in it's current state doesn't make sense to me. It should be an exist condition from the loop, otherwise the only way to exit the loop is via exception, which will effectively kill the application.
Click to expand...
Click to collapse
same conclusion here, but I assume this part of code is badly decompiled. There are several other while->true->return in this code.
I/ActivityManager( 176): Starting: Intent { act=android.settings.APPLICATION_DETAILS_SETTINGS dat=package:com.skype.merlin_mecha cmp=com.android.settings/.applications.InstalledAppDetails } from pid 18780
D/dalvikvm(18780): GC_CONCURRENT freed 333K, 48% free 3339K/6343K, external 5923K/6893K, paused 67ms+23ms
I/ActivityManager( 176): Displayed com.android.settings/.applications.InstalledAppDetails: +1s756ms
D/szipinf (18780): Initializing inflate state
D/szipinf (18780): Initializing inflate state
D/szipinf (18780): Initializing inflate state
D/szipinf (18780): Initializing inflate state
D/szipinf (18780): Initializing inflate state
D/szipinf (18780): Initializing inflate state
D/szipinf (18780): Initializing inflate state
D/szipinf (18780): Initializing inflate state
I/Process ( 176): Sending signal. PID: 18721 SIG: 9
I/ActivityManager( 176): Force stopping package com.skype.merlin_mecha uid=10068
I/ActivityManager( 176): Force finishing activity HistoryRecord{4057dcc8 com.skype.merlin_mecha/.ui.SplashScreenActivity}
W/InputManagerService( 176): Window already focused, ignoring focus gain of: [email protected]
E/InputDispatcher( 176): channel '407ae0c0 com.skype.merlin_mecha/com.skype.merlin_mecha.ui.SplashScreenActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x8
E/InputDispatcher( 176): channel '407ae0c0 com.skype.merlin_mecha/com.skype.merlin_mecha.ui.SplashScreenActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
I/WindowManager( 176): WIN DEATH: Window{407ae0c0 com.skype.merlin_mecha/com.skype.merlin_mecha.ui.SplashScreenActivity paused=true}
This is what is happening now.
Keep up the good work, a LOT of people will love you if you can get this to work on other phones like the Galaxy S.
Agreed keep up the good work....and Thanks
speaking as someone with a G Tablet, I really want this to work, so please take all the encouragement i can offer!
Keep up the good work.
Oh thank you.
Seriously, I posted about how somebody should modify this to work on all phones yesterday.
As for me, I'm getting "Sorry1, your phone is not able to use this version of skype"
(Wonder why it says "Sorry1")
I'm using a mytouch 4g with cm7 stable
Working on the same thing here on my EVO. I tried your APK but I don't get to the sign-in screen. I removed the same line from the AndroidManifest.xml file that you did so that it would install. I took a different approach and modified the VerizonNetwork and VerizonMerlin check to return 0x1 instead of 0x0 so that it gets by the Toast successfully and I get the sign-in screen. Now after I sign-in, the service crashes.
Code:
I/com.skype.merlin_mecha.service.a(17177): system board:supersonic bootloader:2.10.0001 brand:sprint product:htc_supersonic model:PC36100 manufacturer:HTC device:supersonic display:3.70.651.1 fingerprint:sprint/htc_supersonic/supersonic/supersonic:2.2/FRF91/294884:user/release-keys host:AA109 user:root radio:2.15.00.09.01 tags:release-keys type:user
I/global (17177): Default buffer size used in BufferedInputStream constructor. It would be better to be explicit if an 8k buffer is required.
D/dalvikvm(17177): GC_FOR_MALLOC freed 5340 objects / 712528 bytes in 124ms
I/LSState (12428): EventReceiver:android.intent.action.NOTIFICATION_UPDATE
I/StartSkypeKitOperation(17177): REMOVE THIS ONCE VERIFIED: appToken = KdXVSo6qB9
I/dalvikvm(17177): Jit: resizing JitTable from 4096 to 8192
D/dalvikvm(15756): GC_EXPLICIT freed 3901 objects / 412584 bytes in 100ms
I/ActivityManager(12428): Process com.skype.merlin_mecha (pid 17177) has died.
W/ActivityManager(12428): Scheduling restart of crashed service com.skype.merlin_mecha/.service.SkypeServiceController in 5000ms
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
http://db.tt/umgHYVq
-Daryel
daryel - i tried it and the same happened to me, but there was nothing that said the app force-closed. it simply closed itself and that was that.
it looks like real headway is being made here. I will faithfully watch this until it is finished
oh the sorry1 was a debugging thing hehe.
so it is now crashing in com.skype.merlin_mecha.service.a
Looks to be failing some fingerprint checking. I guess this is where it verifies the phone.
I wonder which file this line is coming from:
I/StartSkypeKitOperation(17177): REMOVE THIS ONCE VERIFIED: appToken = KdXVSo6qB9
New Edit:
Ok the verification is done in com.skype.merlin_mecha.startup.SignInActivity.
I am speculating, the check and crash is in:
protected void onCreate(Bundle paramBundle)
Thanks guys, it looks like you are pretty close to the solution.
Finger crossed
daryelv said:
Working on the same thing here on my EVO. I tried your APK but I don't get to the sign-in screen. I removed the same line from the AndroidManifest.xml file that you did so that it would install. I took a different approach and modified the VerizonNetwork and VerizonMerlin check to return 0x1 instead of 0x0 so that it gets by the Toast successfully and I get the sign-in screen. Now after I sign-in, the service crashes.
Click to expand...
Click to collapse
Sorry but where is this Verizon check?
There are 2 .so missing.
if you look in a/a/a.smali you will find a ref to
/data/data/com.skype.merlin_mecha/lib/libskype_jni.so
And com\skype\a\c.smali has a ref to /data/data/com.test.java_surface/lib/libskype_jni.so
that means there is more to this
eyeburn said:
I wonder which file this line is coming from:
I/StartSkypeKitOperation(17177): REMOVE THIS ONCE VERIFIED: appToken = KdXVSo6qB9
Click to expand...
Click to collapse
Looks like this comes from com\skype\merlin_mecha\service\bs.class
Code:
Object localObject = "M9QA6f6YIH";
if (!com.skype.merlin_mecha.a.b.b)
continue;
if (!com.skype.merlin_mecha.a.b.a)
continue;
localObject = "KdXVSo6qB9";
String str4 = "REMOVE THIS ONCE VERIFIED: appToken = " + (String)localObject;
int k = Log.i("StartSkypeKitOperation", str4);
bo.g(this.c).SetApplicationToken((String)localObject);
boolean bool1 = bo.c(this.c);
if (bool1)
continue;

[Q] FBReader will not install on NookManager rooted NST

I used the browser in my NST to go to http://fbreader.org/files/android/FBReaderJ.apk and http://fbreader.org/files/android/FBReaderJ-2.0beta8.apk. When I try to install, I get an error that says "failed to parse file".
Ideas? Suggestions?
Thank you!
Yes, the same advice as always.
You need to get ADB working and run a logcat when you do the install.
Then we have something to go on.
"Parse error" = "I don't like this file, but I won't tell you why."
thank you...
Renate NST said:
Yes, the same advice as always.
You need to get ADB working and run a logcat when you do the install.
Then we have something to go on.
"Parse error" = "I don't like this file, but I won't tell you why."
Click to expand...
Click to collapse
ok... i have installed the java sdk and am downloading the android sdk.
i see i need to "enable usb debugging" on my NST. I do not find that option under the advanced settings screen of relaunch.
please advise... thank you again
never mind, i figured out how to connect over wifi...
logcat
Renate NST said:
Yes, the same advice as always.
You need to get ADB working and run a logcat when you do the install.
Then we have something to go on.
"Parse error" = "I don't like this file, but I won't tell you why."
Click to expand...
Click to collapse
ok...
I rebooted my nook, started adb connect, started the logcat saving to the attached file
then, i opened the browser re downloaded the not-beta file and tried to install it
my NST gave me the same "could not parse file error"
i went to the pc and stopped the logcat and attached it here...
Hmm, I don't even see an attempted install here.
Were you watching the logcat at the same time that you did the install?
You should be able to see the action.
ADB will complain and not do anything if you try to install a file which is not zipped or does not have an AndroidManifest.xml
Could you copy the exact error that ADB gives?
Could you try again with the logcat? 20 lines should do if they are the right ones.
will re do...
Renate NST said:
Hmm, I don't even see an attempted install here.
Were you watching the logcat at the same time that you did the install?
You should be able to see the action.
ADB will complain and not do anything if you try to install a file which is not zipped or does not have an AndroidManifest.xml
Could you copy the exact error that ADB gives?
Could you try again with the logcat? 20 lines should do if they are the right ones.
Click to expand...
Click to collapse
thanks again for your help. I piped logcat right into the txt file; so, I didn't see anything. i need to go to work, but when I get back tonight, I will do again.
continuing the discussion...
Renate NST said:
Hmm, I don't even see an attempted install here.
Were you watching the logcat at the same time that you did the install?
You should be able to see the action.
ADB will complain and not do anything if you try to install a file which is not zipped or does not have an AndroidManifest.xml
Could you copy the exact error that ADB gives?
Could you try again with the logcat? 20 lines should do if they are the right ones.
Click to expand...
Click to collapse
Here is what I get in the logcat:
I/ActivityManager( 780): Starting activity: Intent { act=android.intent.action.
MAIN cat=[android.intent.category.LAUNCHER] flg=0x14000000 cmp=com.rockolabs.adb
konnect/.AdbKonnectActivity }
V/Activity( 1279): performResume()
D/EPD#ActivityResume( 780): resetRegion 4
D/NATIVE-EPD( 780): epd_reset_region: 0x10
D/EPD#ActivityResume( 780): resetRegion 5
D/NATIVE-EPD( 780): epd_reset_region: 0x20
D/EPD#ActivityResume( 780): resetRegion 6
D/NATIVE-EPD( 780): epd_reset_region: 0x40
D/EPD#ActivityResume( 780): resetRegion 7
D/NATIVE-EPD( 780): epd_reset_region: 0x80
D/EPD#ActivityResume( 780): Disable EPD for 350ms!!!!!!!!
I/RockoLabs_ADB Konnect( 1279): checking wireless status
E/TC ( 1141): KPICollector: 1374164761337 ActivityManager background {"comp
onent":"com.harasoft.relaunch/.AllApplications"}
E/TC ( 1141): KPICollector: 1374164761343 ActivityManager foreground {"comp
onent":"com.rockolabs.adbkonnect/.AdbKonnectActivity"}
I/NotificationService( 780): enqueueToast pkg=com.noshufou.android.su callback=
[email protected] duration=0
D/EPD#Toast( 780): set region 0 1 = 0,0 -> 600,800 = GU
D/NATIVE-EPD( 780): epd_set_region: 0 (0,0,600,800) 1,0 1
D/su ( 2071): 10018 com.rockolabs.adbkonnect executing 0 /system/bin/sh usi
ng shell /system/bin/sh : sh
I/PowerManagerService( 780): setPowerState: mPowerState=0x3 newState=0x3 noChan
geLights=false reason=2
I/ActivityManager( 780): Displayed activity com.rockolabs.adbkonnect/.AdbKonnec
tActivity: 228 ms (total 228 ms)
D/SurfaceFlinger( 780): Frame buffer posted; elapsed time = 42 msecs
W/IInputConnectionWrapper( 1279): showStatusIcon on inactive InputConnection
D/SurfaceFlinger( 780): Frame buffer posted; elapsed time = 37 msecs
D/SurfaceFlinger( 780): Frame buffer posted; elapsed time = 11 msecs
D/EPD#Toast( 780): resetRegion 0
D/NATIVE-EPD( 780): epd_reset_region: 0x01
D/EPD#Toast( 780): Disable EPD for 100ms!!!!!!!!
I/PowerManagerService( 780): setPowerState: mPowerState=0x3 newState=0x3 noChan
geLights=false reason=1
I/PowerManagerService( 780): setPowerState: mPowerState=0x3 newState=0x3 noChan
geLights=false reason=2
I/PowerManagerService( 780): setPowerState: mPowerState=0x3 newState=0x3 noChan
geLights=false reason=1
I/PowerManagerService( 780): setPowerState: mPowerState=0x3 newState=0x3 noChan
geLights=false reason=1
I/PowerManagerService( 780): setPowerState: mPowerState=0x3 newState=0x3 noChan
geLights=false reason=1
I/RockoLabs_ADB Konnect( 1279): changing status
I/RockoLabs_ADB Konnect( 1279): setprop service.adb.tcp.port -1
I/RockoLabs_ADB Konnect( 1279): stop adbd
I/RockoLabs_ADB Konnect( 1279): start adbd
I/RockoLabs_ADB Konnect( 1279): exit
D/su ( 2074): 10018 com.rockolabs.adbkonnect executing 0 /system/bin/sh usi
ng shell /system/bin/sh : sh
I don't know, works fine for me (adb install FBReaderJ.apk):
Code:
D/PackageParser( 1028): Scanning package: /data/app/vmdl44586.tmp
D/dalvikvm( 1028): GC freed 9109 objects / 924400 bytes in 40ms
I/PackageManager( 1028): /data/app/vmdl44586.tmp changed; unpacking
D/PackageManager( 1028): Caching shared lib lib/armeabi/libDeflatingDecompressor-v3.so
D/PackageManager( 1028): Caching shared lib lib/armeabi/libLineBreak-v2.so
D/PackageManager( 1028): Caching shared lib lib/armeabi/libNativeFormats-v3.so
D/installd( 987): DexInv: --- BEGIN '/data/app/vmdl44586.tmp' ---
D/dalvikvm( 1511): creating instr width table
D/dalvikvm( 1511): DexOpt: load 64ms, verify 501ms, opt 26ms
D/installd( 987): DexInv: --- END '/data/app/vmdl44586.tmp' (success) ---
I/installd( 987): move /data/dalvik-cache/[email protected]@[email protected] -> /data/dalvik-cache/
[email protected]@[email protected]
D/PackageManager( 1028): New package installed in /data/app/org.geometerplus.zlibrary.ui.android.apk
Thank you again... the devil is in the details.
I was using the built in browser to download the file on the NST, then clicking on that file to install, while doing the logcat on my pc.
From your note above I see I needed to put the file in the directory on my pc with adb and do the install from there with the command adb install ...
Thanks, Renate this worked.:good:

Android App aborts while sending receiving LinkedHashmap between activity

I want to send and receive LinkedHashmap between activities. Below is my CODE but the application aborts when I try to pass/retrieve the map. Could anyone please help?
============
Sending Activity
============
HTML:
package com.moodswings.moodchart;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.text.InputFilter;
import android.text.InputType;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.View;
import android.widget.*;
public class MainActivity extends Activity
{
ScrollView sv;
TableLayout myTableLayout;
Button submitButton;
Button resetButton;
LinkedHashMap<String, List<EditText>> dataMap = new LinkedHashMap<String, List<EditText>>();
[user=439709]@override[/user]
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
sv = new ScrollView(this);
myTableLayout = new TableLayout (this);
submitButton = new Button(this);
resetButton = new Button(this);
drawScreen();
addListenerOnButton();
}
public void drawScreen()
{
String[] fctrdList = {"Mood","Aggr","Axty"};//,"Depr","Obsv", "Sleep"};
myTableLayout.removeAllViews();
sv.removeAllViews();
//myTableLayout.setBackgroundResource(R.drawable.background);
// rows
TableRow hrsRow = new TableRow(this);
TableRow buttonRow = new TableRow(this);
// margins
hrsRow.setPadding( 20,10,20,10);
// the buttons table layout
// purpose : right align for both buttons
TableLayout buttonsLayout = new TableLayout(this);
buttonRow.setPadding(20,50,40,0);
// the submit and reset buttons
submitButton.setText( "Submit");
resetButton.setText( "Reset");
buttonRow.addView( submitButton);
buttonRow.addView(resetButton);
buttonRow.setGravity(Gravity.RIGHT);
buttonsLayout.addView(buttonRow);
myTableLayout.addView(buttonsLayout);
//=============================================================
// time
TextView hrsV = new TextView(this);
hrsV.setText( "[00-04] [04-08] [08-12] [12-16] [16-20] [20-00]" );
hrsV.setTextSize(10);
hrsV.setTextColor(Color.BLACK );
hrsV.setGravity(Gravity.CENTER_HORIZONTAL);
hrsRow.addView(hrsV);
hrsRow.setGravity(Gravity.CENTER);
// the hours tablelayout
TableLayout hrsTableLayout = new TableLayout(this);
hrsTableLayout.addView(hrsRow);
// add the hours layout to the main one
myTableLayout.addView(hrsTableLayout);
/// the input rows
for(int j = 0; j < fctrdList.length; j++)
{
inputRow(myTableLayout, fctrdList[j]);
}
//
sv.addView(myTableLayout);
// set the screen content to table layout's
setContentView(sv);
}
public void inputRow( TableLayout tl, String label )
{
TableRow inputRow = new TableRow(this);
TextView tv = new TextView(this);
List<EditText> dataList = new ArrayList<EditText>();
// some margin
inputRow.setPadding(10,0,10,0);
tv.setText(label);
tv.setTextSize(10);
inputRow.addView(tv);
for(int i = 0; i < 2; i++)
{
EditText edit = new EditText(this);
edit.setTextSize(TypedValue.COMPLEX_UNIT_SP, 10);
edit.setWidth(50);
edit.setHeight(50);
edit.setFilters(new InputFilter[] {new InputFilter.LengthFilter(2)});
edit.setInputType(InputType.TYPE_CLASS_NUMBER);
//edit.setId( 1 );
edit.setGravity(Gravity.LEFT);
inputRow.addView(edit);
dataList.add(edit);
}
dataMap.put(label, dataList);
tl.addView(inputRow);
}
public void addListenerOnButton() {
submitButton.setOnClickListener(new View.OnClickListener() {
[user=439709]@override[/user]
public void onClick(View arg0) {
LinkedHashMap<String, List<String>> moodMap = new LinkedHashMap<String, List<String>>();
// populate List with EditText contents
for (LinkedHashMap.Entry<String, List<EditText>> entry : dataMap.entrySet()) {
List<EditText> edValues = entry.getValue();
//System.out.println("edValues size :" + edValues.size());
List<String> scaleList = new ArrayList<String>();
for(int a = 0; a < edValues.size(); a++)
{
EditText t = edValues.get(a);
String text = t.getText().toString();
//System.out.println("====== EditText :" + text);
scaleList.add(text);
}
moodMap.put(entry.getKey(), scaleList);
}
// =================
Bundle bundle = new Bundle();
bundle.putSerializable("factorsDataMap", moodMap);
Intent intent = new Intent(MainActivity.this, MoodSummary.class);
intent.putExtras(bundle);
startActivity(intent);
// =================
/*Intent intent = new Intent(MainActivity.this, MoodSummary.class);
intent.putExtra("map", moodMap);
startActivity(intent);*/
//==================
}
});
}
}
============
Second Activity
============
HTML:
package com.moodswings.moodchart;
import java.util.LinkedHashMap;
import java.util.List;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.EditText;
import android.widget.TextView;
public class MoodSummary extends Activity {
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.mood_summary);
System.out.println("HashMapTest");
LinkedHashMap<String, List<String>> moodLnkMap = new LinkedHashMap<String, List<String>>();
Bundle bundle = this.getIntent().getExtras();
if(bundle != null){
moodLnkMap = (LinkedHashMap<String, List<String>>) bundle.getSerializable("factorsDataMap");
if(moodLnkMap.size() != 0)
{
System.out.println("moodMap size: " + moodLnkMap.size());
}
else
{
System.out.println("moodMap size: 0");
}
}
}
}
========
The Logcat
========
HTML:
01-22 17:58:16.345: D/MediaScannerService(198): done scanning volume internal 01-22 17:58:17.024: D/dalvikvm(116): GC_EXTERNAL_ALLOC freed 11169 objects / 521416 bytes in 81ms 01-22 17:58:17.294: D/dalvikvm(116): GC_EXPLICIT freed 1737 objects / 96240 bytes in 63ms 01-22 17:58:17.404: D/PackageParser(58): Scanning package: /data/app/vmdl52647.tmp 01-22 17:58:17.655: I/PackageManager(58): Removing non-system package:com.moodswings.moodchart 01-22 17:58:17.655: I/ActivityManager(58): Force stopping package com.moodswings.moodchart uid=10038 01-22 17:58:17.795: D/PackageManager(58): Scanning package com.moodswings.moodchart 01-22 17:58:17.795: I/PackageManager(58): Package com.moodswings.moodchart codePath changed from /data/app/com.moodswings.moodchart-1.apk to /data/app/com.moodswings.moodchart-2.apk; Retaining data and using new 01-22 17:58:17.805: I/PackageManager(58): /data/app/com.moodswings.moodchart-2.apk changed; unpacking 01-22 17:58:17.815: D/installd(34): DexInv: --- BEGIN '/data/app/com.moodswings.moodchart-2.apk' --- 01-22 17:58:18.714: D/dalvikvm(257): DexOpt: load 112ms, verify 486ms, opt 28ms 01-22 17:58:18.784: D/installd(34): DexInv: --- END '/data/app/com.moodswings.moodchart-2.apk' (success) --- 01-22 17:58:18.784: W/PackageManager(58): Code path for pkg : com.moodswings.moodchart changing from /data/app/com.moodswings.moodchart-1.apk to /data/app/com.moodswings.moodchart-2.apk 01-22 17:58:18.794: W/PackageManager(58): Resource path for pkg : com.moodswings.moodchart changing from /data/app/com.moodswings.moodchart-1.apk to /data/app/com.moodswings.moodchart-2.apk 01-22 17:58:18.794: D/PackageManager(58): Activities: com.moodswings.moodchart.MainActivity com.moodswings.saqibchart.MoodSummary 01-22 17:58:18.804: I/ActivityManager(58): Force stopping package com.moodswings.moodchart uid=10038 01-22 17:58:18.924: I/installd(34): move /data/dalvik-cache/[email protected]@[email protected] -> /data/dalvik-cache/[email protected]@[email protected] 01-22 17:58:18.924: D/PackageManager(58): New package installed in /data/app/com.moodswings.moodchart-2.apk 01-22 17:58:19.046: I/ActivityManager(58): Force stopping package com.moodswings.moodchart uid=10038 01-22 17:58:19.205: I/ActivityManager(58): Start proc com.svox.pico for broadcast com.svox.pico/.VoiceDataInstallerReceiver: pid=258 uid=10028 gids={} 01-22 17:58:19.295: W/RecognitionManagerService(58): no available voice recognition services found 01-22 17:58:19.475: I/ActivityThread(258): Publishing provider com.svox.pico.providers.SettingsProvider: com.svox.pico.providers.SettingsProvider 01-22 17:58:19.505: D/dalvikvm(157): GC_EXPLICIT freed 4255 objects / 257880 bytes in 436ms 01-22 17:58:19.625: D/dalvikvm(58): GC_EXPLICIT freed 9153 objects / 569160 bytes in 116ms 01-22 17:58:19.675: I/installd(34): unlink /data/dalvik-cache/[email protected]@[email protected] 01-22 17:58:19.685: D/AndroidRuntime(205): Shutting down VM 01-22 17:58:19.695: D/jdwp(205): adbd disconnected 01-22 17:58:19.714: I/AndroidRuntime(205): NOTE: attach of thread 'Binder Thread #3' failed 01-22 17:58:20.214: D/AndroidRuntime(268): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<< 01-22 17:58:20.214: D/AndroidRuntime(268): CheckJNI is ON 01-22 17:58:20.344: D/AndroidRuntime(268): --- registering native functions --- 01-22 17:58:20.935: I/ActivityManager(58): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.moodswings.moodchart/.MainActivity } 01-22 17:58:21.075: D/AndroidRuntime(268): Shutting down VM 01-22 17:58:21.085: I/ActivityManager(58): Start proc com.moodswings.moodchart for activity com.moodswings.moodchart/.MainActivity: pid=274 uid=10038 gids={} 01-22 17:58:21.094: D/jdwp(268): adbd disconnected 01-22 17:58:21.165: I/dalvikvm(268): JNI: AttachCurrentThread (from ???.???) 01-22 17:58:21.165: I/AndroidRuntime(268): NOTE: attach of thread 'Binder Thread #3' failed 01-22 17:58:21.454: E/jdwp(274): Failed sending reply to debugger: Broken pipe 01-22 17:58:21.454: D/dalvikvm(274): Debugger has detached; object registry had 1 entries 01-22 17:58:21.914: I/ActivityManager(58): Displayed activity com.moodswings.moodchart/.MainActivity: 843 ms (total 20356 ms) 01-22 17:58:21.914: I/ActivityManager(58): Displayed activity com.android.launcher/com.android.launcher2.Launcher: 20358 ms (total 20358 ms) 01-22 17:58:32.785: D/KeyguardViewMediator(58): pokeWakelock(5000) 01-22 17:58:32.995: D/KeyguardViewMediator(58): pokeWakelock(5000) 01-22 17:58:33.354: I/ARMAssembler(58): generated scanline__00000077:03545404_00000004_00000000 [ 47 ipp] (67 ins) at [0x273d28:0x273e34] in 495099 ns 01-22 17:58:33.424: I/ARMAssembler(58): generated scanline__00000177:03515104_00001001_00000000 [ 91 ipp] (114 ins) at [0x29a378:0x29a540] in 676141 ns 01-22 17:58:35.995: D/dalvikvm(106): GC_FOR_MALLOC freed 1450 objects / 218728 bytes in 51ms 01-22 17:58:36.644: W/KeyCharacterMap(106): No keyboard for id 0 01-22 17:58:36.644: W/KeyCharacterMap(106): Using default keymap: /system/usr/keychars/qwerty.kcm.bin 01-22 17:58:36.845: D/dalvikvm(106): GC_EXTERNAL_ALLOC freed 1992 objects / 136528 bytes in 62ms 01-22 17:58:37.715: D/dalvikvm(106): GC_EXTERNAL_ALLOC freed 544 objects / 27840 bytes in 53ms 01-22 17:58:37.944: W/KeyCharacterMap(106): No keyboard for id 0 01-22 17:58:37.944: W/KeyCharacterMap(106): Using default keymap: /system/usr/keychars/qwerty.kcm.bin 01-22 17:58:40.515: D/dalvikvm(106): GC_EXTERNAL_ALLOC freed 317 objects / 20448 bytes in 94ms 01-22 17:58:40.676: W/KeyCharacterMap(106): No keyboard for id 0 01-22 17:58:40.676: W/KeyCharacterMap(106): Using default keymap: /system/usr/keychars/qwerty.kcm.bin 01-22 17:58:43.195: D/dalvikvm(106): GC_EXTERNAL_ALLOC freed 356 objects / 22976 bytes in 74ms 01-22 17:58:43.345: W/KeyCharacterMap(106): No keyboard for id 0 01-22 17:58:43.376: W/KeyCharacterMap(106): Using default keymap: /system/usr/keychars/qwerty.kcm.bin 01-22 17:58:44.665: I/ActivityManager(58): Starting activity: Intent { cmp=com.moodswings.moodchart/.MoodSummary (has extras) } 01-22 17:58:44.665: D/AndroidRuntime(274): Shutting down VM 01-22 17:58:44.665: W/dalvikvm(274): threadid=1: thread exiting with uncaught exception (group=0x4001d800) 01-22 17:58:44.685: E/AndroidRuntime(274): FATAL EXCEPTION: main 01-22 17:58:44.685: E/AndroidRuntime(274): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.moodswings.moodchart/com.moodswings.moodchart.MoodSummary}; have you declared this activity in your AndroidManifest.xml? 01-22 17:58:44.685: E/AndroidRuntime(274): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1404) 01-22 17:58:44.685: E/AndroidRuntime(274): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1378) 01-22 17:58:44.685: E/AndroidRuntime(274): at android.app.Activity.startActivityForResult(Activity.java:2817) 01-22 17:58:44.685: E/AndroidRuntime(274): at android.app.Activity.startActivity(Activity.java:2923) 01-22 17:58:44.685: E/AndroidRuntime(274): at com.moodswings.moodchart.MainActivity$1.onClick(MainActivity.java:172) 01-22 17:58:44.685: E/AndroidRuntime(274): at android.view.View.performClick(View.java:2408) 01-22 17:58:44.685: E/AndroidRuntime(274): at android.view.View$PerformClick.run(View.java:8816) 01-22 17:58:44.685: E/AndroidRuntime(274): at android.os.Handler.handleCallback(Handler.java:587) 01-22 17:58:44.685: E/AndroidRuntime(274): at android.os.Handler.dispatchMessage(Handler.java:92) 01-22 17:58:44.685: E/AndroidRuntime(274): at android.os.Looper.loop(Looper.java:123) 01-22 17:58:44.685: E/AndroidRuntime(274): at android.app.ActivityThread.main(ActivityThread.java:4627) 01-22 17:58:44.685: E/AndroidRuntime(274): at java.lang.reflect.Method.invokeNative(Native Method) 01-22 17:58:44.685: E/AndroidRuntime(274): at java.lang.reflect.Method.invoke(Method.java:521) 01-22 17:58:44.685: E/AndroidRuntime(274): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 01-22 17:58:44.685: E/AndroidRuntime(274): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 01-22 17:58:44.685: E/AndroidRuntime(274): at dalvik.system.NativeStart.main(Native Method) 01-22 17:58:44.695: W/ActivityManager(58): Force finishing activity com.moodswings.moodchart/.MainActivity 01-22 17:58:45.215: W/ActivityManager(58): Activity pause timeout for HistoryRecord{4a1851c8 com.moodswings.moodchart/.MainActivity} 01-22 17:58:45.314: I/ARMAssembler(58): generated scanline__00000077:03515104_00000000_00000000 [ 33 ipp] (47 ins) at [0x2f9820:0x2f98dc] in 534098 ns 01-22 17:58:48.934: I/Process(274): Sending signal. PID: 274 SIG: 9 01-22 17:58:48.954: I/ActivityManager(58): Process com.moodswings.moodchart (pid 274) has died. 01-22 17:58:48.954: I/WindowManager(58): WIN DEATH: Window{4a2a9f40 com.moodswings.moodchart/com.moodswings.moodchart.MainActivity paused=false} 01-22 17:58:49.036: W/InputManagerService(58): Got RemoteException sending setActive(false) notification to pid 274 uid 10038 01-22 17:58:56.324: W/ActivityManager(58): Activity destroy timeout for HistoryRecord{4a1851c8 com.moodswings.moodchart/.MainActivity} 01-22 17:59:00.075: W/Process(58): Unable to open /proc/274/status

Whatsapp crashes

I changed rom to smartisan and im trying to fix the whatsapp crash.
here is a logcat. any help will be super nice
Code:
I/ActivityManager( 589): Start proc com.whatsapp for activity com.whatsapp/.Main: pid=15856 uid=10063 gids={50063, 1015, 3003, 1006, 1028}
D/WindowManager( 589): 1st smartisan anim frame is drawn, mIsEnterSmartisanTransition = true
D/WindowManager( 589): onFirstSmartisanTransitionFrameIsDrawn: readyToFlip
D/WindowManager( 589): resumeFinishDrawingWindow: mPendingShowWins = []
D/WindowManager( 589): finishDrawingWindow(2): win = Window{4286e590 u0 Starting com.whatsapp}, win.mAttachedWindow = null, mIsFirstFrameDrawn = true, mIsAppWindowDrawn = false
D/WindowManager( 589): finishDrawingWindow(1): win = Window{4286e590 u0 Starting com.whatsapp}, win.mAttachedWindow = null
D/WindowManager( 589): onAppWinShown: win = Window{4286e590 u0 Starting com.whatsapp}, mIsInSmartisanTransition = true, mIsEnterSmartisanTransition = true
D/WindowManager( 589): TRY_HIDE_TRANSIT_ANIM: mIsInSmartisanTransition = true, mIsSmartisanAnimationEnded = false, mIsEnterSmartisanTransition = true, mIsAppWindowDrawn = true
D/WindowManager( 589): finishDrawingWindow(2): win = Window{427740f0 u0 SurfaceView}, win.mAttachedWindow = Window{426d7d70 u0 com.smartisanos.launcher/com.smartisanos.launcher.Launcher}, mIsFirstFrameDrawn = true, mIsAppWindowDrawn = true
D/WindowManager( 589): finishDrawingWindow(1): win = Window{427740f0 u0 SurfaceView}, win.mAttachedWindow = Window{426d7d70 u0 com.smartisanos.launcher/com.smartisanos.launcher.Launcher}
D/WindowManager( 589): finishDrawingWindow(2): win = Window{4286e590 u0 Starting com.whatsapp}, win.mAttachedWindow = null, mIsFirstFrameDrawn = true, mIsAppWindowDrawn = true
D/WindowManager( 589): finishDrawingWindow(1): win = Window{4286e590 u0 Starting com.whatsapp}, win.mAttachedWindow = null
E/AndroidRuntime(15856): FATAL EXCEPTION: main
E/AndroidRuntime(15856): java.lang.VerifyError: com/c
E/AndroidRuntime(15856): at com.whatsapp.App.onCreate(App.java:2489)
E/AndroidRuntime(15856): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java)
E/AndroidRuntime(15856): at android.app.ActivityThread.handleBindApplication(ActivityThread.java)
E/AndroidRuntime(15856): at android.app.ActivityThread.access$1300(ActivityThread.java)
E/AndroidRuntime(15856): at android.app.ActivityThread$H.handleMessage(ActivityThread.java)
E/AndroidRuntime(15856): at android.os.Handler.dispatchMessage(Handler.java)
E/AndroidRuntime(15856): at android.os.Looper.loop(Looper.java)
E/AndroidRuntime(15856): at android.app.ActivityThread.main(ActivityThread.java)
E/AndroidRuntime(15856): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(15856): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime(15856): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
E/AndroidRuntime(15856): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
E/AndroidRuntime(15856): at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager( 589): Force finishing activity com.whatsapp/.Main
I/ActivityManager( 589): Process com.whatsapp (pid 15856) has died.
I/ActivityManager( 589): Start proc com.whatsapp for activity com.whatsapp/.Main: pid=15856 uid=10063 gids={50063, 1015, 3003, 1006, 1028}
D/WindowManager( 589): 1st smartisan anim frame is drawn, mIsEnterSmartisanTransition = true
D/WindowManager( 589): onFirstSmartisanTransitionFrameIsDrawn: readyToFlip
D/WindowManager( 589): resumeFinishDrawingWindow: mPendingShowWins = []
D/WindowManager( 589): finishDrawingWindow(2): win = Window{4286e590 u0 Starting com.whatsapp}, win.mAttachedWindow = null, mIsFirstFrameDrawn = true, mIsAppWindowDrawn = false
D/WindowManager( 589): finishDrawingWindow(1): win = Window{4286e590 u0 Starting com.whatsapp}, win.mAttachedWindow = null
D/WindowManager( 589): onAppWinShown: win = Window{4286e590 u0 Starting com.whatsapp}, mIsInSmartisanTransition = true, mIsEnterSmartisanTransition = true
D/WindowManager( 589): TRY_HIDE_TRANSIT_ANIM: mIsInSmartisanTransition = true, mIsSmartisanAnimationEnded = false, mIsEnterSmartisanTransition = true, mIsAppWindowDrawn = true
D/WindowManager( 589): finishDrawingWindow(2): win = Window{427740f0 u0 SurfaceView}, win.mAttachedWindow = Window{426d7d70 u0 com.smartisanos.launcher/com.smartisanos.launcher.Launcher}, mIsFirstFrameDrawn = true, mIsAppWindowDrawn = true
D/WindowManager( 589): finishDrawingWindow(1): win = Window{427740f0 u0 SurfaceView}, win.mAttachedWindow = Window{426d7d70 u0 com.smartisanos.launcher/com.smartisanos.launcher.Launcher}
D/WindowManager( 589): finishDrawingWindow(2): win = Window{4286e590 u0 Starting com.whatsapp}, win.mAttachedWindow = null, mIsFirstFrameDrawn = true, mIsAppWindowDrawn = true
D/WindowManager( 589): finishDrawingWindow(1): win = Window{4286e590 u0 Starting com.whatsapp}, win.mAttachedWindow = null
E/AndroidRuntime(15856): FATAL EXCEPTION: main
E/AndroidRuntime(15856): java.lang.VerifyError: com/c
E/AndroidRuntime(15856): at com.whatsapp.App.onCreate(App.java:2489)
E/AndroidRuntime(15856): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java)
E/AndroidRuntime(15856): at android.app.ActivityThread.handleBindApplication(ActivityThread.java)
E/AndroidRuntime(15856): at android.app.ActivityThread.access$1300(ActivityThread.java)
E/AndroidRuntime(15856): at android.app.ActivityThread$H.handleMessage(ActivityThread.java)
E/AndroidRuntime(15856): at android.os.Handler.dispatchMessage(Handler.java)
E/AndroidRuntime(15856): at android.os.Looper.loop(Looper.java)
E/AndroidRuntime(15856): at android.app.ActivityThread.main(ActivityThread.java)
E/AndroidRuntime(15856): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(15856): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime(15856): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
E/AndroidRuntime(15856): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
E/AndroidRuntime(15856): at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager( 589): Force finishing activity com.whatsapp/.Main
I/ActivityManager( 589): Process com.whatsapp (pid 15856) has died.

Call recording

I am currently having trouble with call recording. The problem is with the AudioSouce because when i put MIC it works. Witch AudioSource option REALLY records calls.
Code:
Code:
if (i == REC) {
try {
if (isCall == false) {
Toast.makeText(context, "Not in a call", Toast.LENGTH_SHORT)
.show();
return;
}
if (IsRec == true) {
Toast.makeText(context, "Already recording",
Toast.LENGTH_SHORT).show();
return;
}
o = new File(Environment.getExternalStorageDirectory(),
"/recordings/"
+ new SimpleDateFormat("dd.MM.yyyy hh-mm-ss")
.format(new Date()) + ".amr");
r = new MediaRecorder();
r.setOutputFile(o.getAbsolutePath());
r.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL); // HERE
r.setOutputFormat(MediaRecorder.OutputFormat.AMR_NB);
r.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
try {
r.prepare();
r.start();
IsRec = true;
Toast.makeText(context,
"Saving to: " + o.getAbsolutePath(),
Toast.LENGTH_LONG).show();
} catch (IllegalStateException e) {
o = null;
r = null;
IsRec = false;
Log.e("Error", e.getMessage(), e.getCause());
Toast.makeText(context, "StateE: " + e.getMessage(),
Toast.LENGTH_LONG).show();
} catch (IOException e) {
o = null;
r = null;
IsRec = false;
Log.e("Error", e.getMessage(), e.getCause());
Toast.makeText(context, "IOE" + e.getMessage(),
Toast.LENGTH_LONG).show();
}
} catch (Exception e) {
o = null;
r = null;
IsRec = false;
e.printStackTrace();
Log.e("Error", e.getLocalizedMessage(), e.getCause());
Toast.makeText(context, e.getMessage(), Toast.LENGTH_LONG)
.show();
}
}
LogCat:
Code:
07-18 10:17:18.850: E/MediaRecorder(607): start failed: -2147483648
07-18 10:17:18.859: W/System.err(607): java.lang.RuntimeException: start failed.
07-18 10:17:18.870: W/System.err(607): at android.media.MediaRecorder.start(Native Method)
07-18 10:17:18.880: W/System.err(607): at com.android.recorder.Widget.onReceive(Widget.java:137)
07-18 10:17:18.890: W/System.err(607): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2229)
07-18 10:17:18.890: W/System.err(607): at android.app.ActivityThread.access$1500(ActivityThread.java:130)
07-18 10:17:18.900: W/System.err(607): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1271)
07-18 10:17:18.919: W/System.err(607): at android.os.Handler.dispatchMessage(Handler.java:99)
07-18 10:17:18.919: W/System.err(607): at android.os.Looper.loop(Looper.java:137)
07-18 10:17:18.940: W/System.err(607): at android.app.ActivityThread.main(ActivityThread.java:4745)
07-18 10:17:18.950: W/System.err(607): at java.lang.reflect.Method.invokeNative(Native Method)
07-18 10:17:18.960: W/System.err(607): at java.lang.reflect.Method.invoke(Method.java:511)
07-18 10:17:18.969: W/System.err(607): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
07-18 10:17:18.980: W/System.err(607): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
07-18 10:17:18.990: W/System.err(607): at dalvik.system.NativeStart.main(Native Method)
07-18 10:17:18.999: E/Error(607): start failed.

Categories

Resources