Android :: Didn't Expect PACKAGE To Be Resumed Error In Andorid LogCat

Feb 1, 2010

I have an Android app modeled after the LunarLander example by Google.

I am debugging it on a real device, (Motorola Droid) with Android 2.0.

When the orientation changes, the program crashes on a null pointer Exception.

Logcat from just before crash:

CODE:.............

The first line that worries me is "Something wrong here" at 24:38.620. I have no idea what it means, But I think its due to me not reacting properly to the screen change.

Next I get a debug message that I printed myself from within my own method surfaceChanged() about the new surface dimensions.

Then I print out debug message about whether flies was null. flies is the field that eventually causes the NullPointerException. Its created once, and never written to again for the rest of the program. I know that it was not null before the crash, because it was read several times.

Does anyone have a clue how my private member variable came to be null just by these clues?

I would include code but there is a lot of it and I don't know what would be relevant.

Android :: didn't expect PACKAGE to be resumed error in andorid LogCat


Android :: How To Get Remote Logcat On Error?

Feb 3, 2010

I have a game in the market and with flurry analytics, I receive all my errors. Here are some of them: 01/31/10 01:47:39 PM PST 0 classjava.lang.IllegalArgumentException parameter must be a descendant of this view 02/02/10 12:40:41 PM PST 0 class java.lang.Illegal ThreadStateException Thread already started.01 /26/10 09:25:36 PM PST 0 class java.lang. NullPointer Exception 1.0 (beta) uncaught Android 02/01/10 05:26:27 PM PST 0 class java.lang.OutOfMemoryError bitmap size exceeds VM budget 1.3 (beta) uncaught Android 01/29/10 10:23:10 AM PST 0 class java.lang.RuntimeException Adding window failed 1.0 (beta) uncaught Android 01/29/10 08:19:05 AM PST 0 class java.lang.RuntimeException Unable to start activity ComponentInfo{ digle.de. LeonardFrog/ digle.de.LeonardFrog.AHighscore}: ava.lang.NullPointerException 1.0 (beta) uncaughtAndroid 01/27/10 01:09:35 AM PST 0 class java.lang.VerifyError igle.de.LeonardFrog. AHighscore 1.0 (beta) uncaught Android I want to solve them but I need a logcat. There is the application "aLogcat" in the Market, which displays the logcat on the mobile, but I need the logcat of my users without telling them to download this app, because many people are lazy and won't do it. How can I get this logcat? Is there maybe a library, which sends me the logcat on error?

View 5 Replies View Related

Android :: Launching ADB LogCat - Getting Intermittent Error

Oct 13, 2009

Since upgrading to the v1.6 SDK, I'm getting an intermittent error when trying to launch the logcat from the command line:
>adb logcat

View 2 Replies View Related

Android :: Error In Logcat Upon App Startup / Shed Some Light On This?

Sep 1, 2010

08-31 21:29:15.263: ERROR/dalvikvm(11799): could not disable core file generation for pid 11799, errno=1

Can anyone shed some light on this for me?

View 1 Replies View Related

HTC EVO 4G :: Firmware Update Didn't Fix SD Card Damaged Error

Jun 30, 2010

I've had the evo since day 1. On the first day, HTC released a firmware update that included a fix for SD card corruption. I updated the firmware, then swapped out the 8gb card with a 16gb sandisk card I purchased at radio shack. It worked great until today. I shut off the phone, then turned it back on several minutes later. Once the phone reboots, I got a SD card damaged message at the top. I turned off the phone, reseated the microsd card, then turned it back on. Unfortunately, no matter how many times I have turned the phone on and off it still states that the SD card is damaged.

I've never rooted the phone, never dropped it, and its been great until today. I've seen this problem before with HTC made windows smart phones and I can't believe they can't get this right. I normally don't get too pissed out these kind of things, but this time I am. I'm on vacation and took lots of photos and I'm worried they're lost. I won't know until I get home. In the mean time, any suggestions? I will be calling HTC at some point today, but I'm sure they will be as much help as the firmware update that was suppose to fix this major issue. Are you having the same issue? What's the real fix?

View 3 Replies View Related

Error On Button Click But No Logcat

Mar 26, 2012

I'm trying to make a countdown timer. It works without a button but then it starts instantly so you can't enter a value for the start. Here is the java, as I said nothing appears in the logcat. The error occurs when the button is clicked.

package timer.test;
import android.app.Activity;
import android.os.Bundle;
import android.os.CountDownTimer;
[code]...

The xml page only has a TextView, EditText and Button.

View 2 Replies View Related

Android :: Published Apk Gives Error - Package File Was Not Signed Correctly

Mar 25, 2010

I recently uploaded my application to the android market however it's refusing to run when downloaded due to the error

Package file was not signed correctly

I first published the packet using eclipse, right click export, creating a keystore then publishing, however it refuses to work.

I then downloaded the keytool and jarsigner and used them to sign an upgrade which I posted instead. However this gives the same error.

And since I cannot delete the application I cannot try and start again,

View 2 Replies View Related

Android :: Package Is Not Signed Correctly Error On Customer Install

Feb 11, 2009

A customer wrote me that his upgrade of my app would not install and gave the following error: package isnot signed correctly The install worked find for me but I was getting a lot of bad reviews because of this error and I removed the app. How is this possible; you can't upload an app to Google Markets without it being signed correctly?

View 4 Replies View Related

Android :: Install Error - Parsing The Package - Occurring For One Specific Device

Jan 21, 2010

My .apk file is confirmed working, however for users of the Motorola Milestone (which runs the same android version 2.0 and up) they receive the error upon attempt to install. I've googled and searched through the other questions here. The error seems to normally only appear if you did something wrong in the signing wizard or renamed the file. Is it possible that some kind of software difference on the OS build on these Milestones is preventing the install?

View 1 Replies View Related

Android :: Use Ui Api In Other Class And Thread Expect Activity?

Jun 24, 2010

I have some questions about android ui api.

Give a example, that I want to implement.

Main_UI_Thread.java. code...

I know the message passing can be do that;

But I want the ui program is be implemented in DisplayClass.java. Is it possible?

View 1 Replies View Related

Android :: How To Get Total Memory Of Andorid ?

Sep 10, 2010

Currently I need to get the total memmory of the android phone as part of the summary displayed to the user. Is there anyone who could suggest a way out?

View 3 Replies View Related

Android :: Implement StartForeground Method In Andorid

Sep 10, 2010

I want to implement startForeground method in Service class for prevent service self kill. Can anybody sent me code for implementing this method?

View 1 Replies View Related

Android :: Way To Detect Why Activity Was Resumed In Phone

Aug 24, 2010

I'm developing an Activity that does some of its own state management. I'm trying to differentiate the following onResume cases:

New launch
task switch (home button long-click)
resume after other activity in the same application
wake-up after sleep
orientation change

Is there something in the Activity's intent, or elsewhere, that can help me differentiate these?

For the curious and some context... I'd like to preserve my internal history stack on 4 & 5. On cases 2 & 3, I would preserve the same current page, but erase the history (allow the normal back button functionality to take over at that point). Case 1 would initialize to the activity's internal start page (and can be detected easily enough with some help from ocCreate).

View 2 Replies View Related

Motorola Droid :: Installation Error - Package File Was Not Signed Correctly

Mar 18, 2010

i just installed an update to google maps. then i tried to open the maps and a screen popped up that says: Installation error: package file was not signed correctly.
This same exact thing popped up in google maps when i first opened it after flashing to smoked glass v6. but it worked fine. this time though it just made me reinstall google maps and it will not install. whats going on?

View 2 Replies View Related

HTC Droid Eris :: When Can I Expect To See Official OTA Manual Download?

May 29, 2010

When can we expect to the see the official OTA manual download?

View 6 Replies View Related

Android :: Andorid Default Onfocus On Autofocus And Editview - How To Remove

Nov 19, 2010

In my application i have a autocomplete in first activity and some edittext in second activity.when i run my code in emulator it works fine and i am not seeing any virtual keyboard on screen when program is excecuted.but when i depoly it in device when i application loads, onfocus is directly on autocomplete and a keyboard pops out,and also when i navigate from first activity to second activity onfocus is on first edittext and keyboard pops out. I want to disable this onfocus on all the page. how to do that ?

View 1 Replies View Related

Android :: Previous Set Instance Variables Null When Activity Resumed

Apr 20, 2010

I am using an Application object to store app-wide instance data--data that I need to remain in existence for the entire lifetime of the app, so the Application class seems like the proper place to put it. I have just finished reading this thread http://groups.google.com/group/android-developers/browse_thread/threa... that goes into pretty good detail and receives confirmation from Googler hackbod as to how the Application class performs--and from that info it seems this strange behavior I am receiving should not be happening...

Basically, every once in a while when I resume my app in any of its Activities (it is still running in memory so onCreate is not called) I get NullPointerExceptions because instance variables in my Application class are returning null when I request them from my Activity (via a getter method in my custom Application class). It seems as if sometimes Android saves the states of my Activities but deletes all my instance variable data... This can't be an Android problem--there must be something wrong with my code.

Has anyone else ever ran into an issue of this kind? Any ideas as to what may be causing this? I'm not going to post my code here as that won't help anyone, but hopefully someone can point me in some helpful directions.

View 11 Replies View Related

Android :: Unexpected Resume Of Package Name Error In Android

Apr 9, 2010

If changing the orientation of my phone or the emulator I get the following output in LogCat:

04-09 11:55:26.290: INFO/WindowManager(52): Setting rotation to 1, animFlags=0
04-09 11:55:26.300: INFO/ActivityManager(52): Config changed: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2 layout=18}
04-09 11:55:26.460: INFO/UsageStats(52): Unexpected resume of client while already resumed in client
04-09 11:55:26.579: INFO/SearchPosition(807): Activity is paused
04-09 11:55:26.689: INFO/SearchPosition(807): Activity is resuming

SearchPosition is the activity that is displayed. Activity is paused is written in the onPause Method and Activity is resuming in the onResume method of the activity. I googled a little bit for the error message but I don't fully understand the meaning of it. I think it could mean that the old Activity is not properly destroyed after changing the screen orientation. Is this correct? If yes what causes the error? If this is not correct? What is the meaning of this output?

View 1 Replies View Related

2.1 Update : Get Flash Player For X10 After Andorid?

Nov 25, 2010

I thought the 2.1 update would include the Flash player but apparently that is not so. Is there another way to install it?

View 4 Replies View Related

Android :: Youtube App Not Installing - Error Installing - Package File Was Not Signed Correctly

Oct 21, 2010

I have tried to update the default youtube app on my nexus one (Froyo) numerous times. I get the message "Error Installing - Package file was not signed correctly". I am trying to upgrade from 1.6.21 to 2.0.26.I have tried unmounting my SD card, clearing the cache for the android market, the download manager and the original youtube app.

View 5 Replies View Related

Android :: Activity - Sometimes - Throws Wrong State Class Exception When Being Resumed After Kill

Nov 24, 2009

I'm testing how my app behaves when killed by the OS due to low memory conditions. I always have three activities on the stack, like: A B C (then C launches maps or some other heavy process)

when my app is killed, and I return to it, C starts itself up again ok. When I hit the back button to go to B, I [sometimes] get an exception thrown which I can't trace. Output is below. I don't know where to go from here. I've only seen one other post mentioning this exception, but it was related to a reproducable error when rotating the device. This only happens sometimes.

CODE:....................

View 12 Replies View Related

Android :: Failing Android JUnit Tests, Not Breaking My Ant Script Like I Expect

Jun 2, 2010

Failing JUnit tests, not breaking my Ant script like I expect?

My continuous integration server runs an Ant script, which calls something like:
/tests/ant run-tests

My JUnit tests run, but with errors:

CODE:..............

The errors are OK, but my build script keeps going (eventually publishing my broken app to my testers - bad!). What I would expect is for the instrimentaiton to throw a build error, so my continuous integration server (TeamCity in this case) realises that something has gone wrong and reports a broken build. The "failonerror" is already set in the relevant macrodef, so I'm not sure what else I can do?

View 1 Replies View Related

Android :: Package Manager Get Size Of An Installed Package?

Feb 12, 2009

i work on custom Application Manager and try to get the disk usage of installed package. So PackageManager.getpackageSizeInfo was removed from SDK on 0.9->1.0 update android.content.pm. PackageStats(String pkgName)(cacheSize, codeSize, dataSize) returns always "0" Size of phys. file (java.io.File) in "/data/app" seems wrong/not completely. Has anybody any solution to get the total disc space used by an installed package?

View 4 Replies View Related

Detect That Service Was Stopped / Resumed By Screen Lock?

Mar 12, 2013

I'm coding a service which does a its job once in every 10 minutes. Works fine. However, when a screen lock gets activated, the service is stopped (which is normal I've found out and I'm find with that). But when the screeen is unlocked again, the 10-minute interval could be already over and I want the service to do the job immediatelly. But... how can I detect that the service was awaken? I schedule the tasks with handler.postAtTime() method.

View 3 Replies View Related

Nexus :: Can't Download Apps From Andorid Market - Google Responds

Feb 5, 2010

I just got my Nexus One today and got service going (still waiting on the ability for me to use mobile web) But I'm connected to my WIFI right now and when I try to install any apps it freezes in the "Downloads" section saying "Starting Download..."

Download issues: stalled at "Starting download" - Android Market Help

From the OP (which is a Google employee) says this

Quote:

View 1 Replies View Related

Android :: Android Platform Incompatible / Package Incompatible Error / When Installing Application On Phone

Jul 16, 2010

I am using Eclipse helios and android sdk r_06.But the phone where i am want to run my application has platform 1.6.how do make this application run on that phone with that platform because when i installed the application it gave me error "incompatible platform","package corrupted","package not found".how do i make it compatible?also in eclipse when i changed target name as "Android 1.5" it gave me error in res folder tellin "invalid resources directory"

View 1 Replies View Related

Android :: Can't Access Package Private Fields In Android.widget Package?

Oct 7, 2010

I'm attempting to override an Android View class to tweak the functionality just slightly. But I need to modify a field that does not have a setter method. I've placed the subclass in a package called android.widget. Why can't I access any of the package-private member fields? I notice that the compiler says they "cannot be resolved," rather than not being accessible. Does this have something to do with how Android.jar is built?

View 2 Replies View Related

Android : "Unexpected Resume Of <packagename> While Already Resumed" Message?

Oct 3, 2010

Several of my Android applications show the following type message in the logcat output:

I/UsageStats( 59): Unexpected resume of com.totsp.test while already resumed in com.totsp.test

In this case I created the default Hello World app by letting the ADT tool generate it, and it still gets this message. I am not doing anything special in onCreate and don't even have any other methods defined.

I realize this is an INFO level message, and it doesn't appear to hurt anything, but I was curious what was going on so I made a test application that keeps track of the onResume invocations. It is indeed re-resuming when this occurs. I'm wondering why this this occurs? While I haven't noticed a problem (other than these annoying log messages), it seems like it could be using more resources than necessary to do all this stuff an extra time.

I have searched and read a similar question here on SO, and the answer there seems dubious to me: http://stackoverflow.com/questions/2606470/unexpected-resume-of-package-name-while-already-resumed-in-package-name-erro. Specifically, no, you don't want to use android:configChanges="orientation" because that is just subverting the orientation tear down/resume, rather than fixing it. Even the documentation notes "this attribute should be avoided and used only as a last-resort" (http://developer.android.com/intl/de/guide/topics/manifest/activity-element.html#config).

Also I have seen thread in the Android dev group where Mr. Murphy says the "unexpected resume" is "benign": http://groups.google.com/group/android-developers/browse_thread/thread/567410dbfcc163c2.

I'll dig into the source when I get a chance, but I figured I would first just ask the all-knowing hivemind and see if someone already knows: why does this occur, and is it truly benign?

View 1 Replies View Related

Android :: Way To Use Lib(.jar) Which Phone Sdk Didn't Contain?

Apr 16, 2010

I want to transfer a face recognition application from PC to android phone. But in the source code of the application, the libs "com.sun.image.codec.jpeg.JPEGCodec" and "com.sun.image.codec.jpeg.JPEGImageEncoder" are contained in JRE and are not supported by android SDK. I tried to add JRE to our build path. Although, I can compile the program without error, the program cannot run on phone and the logcat shows that "Could not find method com.sun.image.codec.jpeg.JPEGCodec.createJPEGDecoder". Does anyone have some suggestions about that?

View 4 Replies View Related

Android :: ListView Didn't Show

Jun 25, 2010

CODE:.............

I can not find the ListView, But When I chang the LinearLayout to TableLayout, the ListView show up.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved