Re: [android-developers] Activity closing prematurely

2017-03-01 Thread Marina Cuello
Your code is quite difficult to read on a text editor, because of the crazy naming convention. It's much more time than what I can devote today. But if this SelectPlayer activity is the one opening in a wrong time, your problem is probably in the other activity, the one that has the

[android-developers] Activity closing prematurely

2017-02-27 Thread Keith Sheppard
My main activity kicks off a secondary activity (using startActivityForResult) that invites the user to input details of one of four players at a bridge table. When the user has chosen a player and clicked OK, the following things happen (triggered by code in onActivityResult) 1. The player

[android-developers] Activity transaction and TextInputLayout.

2017-01-26 Thread yotam hadas
i think I have encountered a bug and would love to hear your opinion about it (as I didnt found post on stackoverflow about it). So I make explode transaction between 2 activities and have somewierd bug. My second activity have explode transaction defined in the xml style and it works fine on

[android-developers] Activity not starting over lock screen

2016-05-10 Thread Diana Botizan
I have an issue which happens only on Samsung devices: I am trying to start an activity from a service extending a wakefullIntentService. If the screen is locked, the activity should start over the lock screen. In some cases this happens, in some it doesn't. Once the screen is

[android-developers] Activity TextView displayed incorrect value received from Service Thread.

2016-04-23 Thread gjs
Try volatile https://docs.oracle.com/javase/tutorial/essential/concurrency/atomic.html -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[android-developers] Activity TextView displayed incorrect value received from Service Thread.

2016-04-22 Thread Deepak Kumar
Hi All, I have created a service that starts a thread to increment COUNTER value. The COUNTER value is passed to an activity from service using either of Handler or aidl. COUNTER value has been received in Activity and it is updated continuously within Activity TextView field. In Activity TextView

[android-developers] Activity with new BarcodeDetector API from Google Play Services 7.8

2015-08-17 Thread gc
I'm implementing an Activity that uses a CameraSource and SurfaceView(to show the camera's view) along with the new BarcodeDetector API and after detection I'm trying to perform a finish() but it doesn't go back to the prior Activity it just keeps running this one. Here is a code snippet from

[android-developers] Activity starting for no apparent reason

2014-06-06 Thread Gary Blakely
I have an app that runs perfectly on some phones (All samsung Galaxys, some LGs) and fails on an HTC ONE X, and an LG G2. The app has a MainActivity, a Flashlight activity, a broadcast receiver, and an intent service. The app can run in two different modes. Mode 1: The user clicks on the

Re: [android-developers] Activity Back Stack and OutOfMemoryError

2014-05-09 Thread Daniel Rindt
2014-05-09 0:12 GMT+02:00 Kostya Vasilyev kmans...@gmail.com: Are you absolutely sure that your code does not leak memory? How to be absolutely sure. :-) Just kidding. Have you tried using Eclipse MAT and putting the app through the usual paces, like rotating the screen, pausing / restarting,

Re: [android-developers] Activity Back Stack and OutOfMemoryError

2014-05-09 Thread Kostya Vasilyev
2014-05-09 16:59 GMT+04:00 Daniel Rindt daniel.ri...@gmail.com: 2014-05-09 0:12 GMT+02:00 Kostya Vasilyev kmans...@gmail.com: Are you absolutely sure that your code does not leak memory? How to be absolutely sure. :-) Just kidding. Have you tried using Eclipse MAT and putting the app

Re: [android-developers] Activity Back Stack and OutOfMemoryError

2014-05-09 Thread Daniel Rindt
2014-05-09 15:53 GMT+02:00 Kostya Vasilyev kmans...@gmail.com: 2014-05-09 16:59 GMT+04:00 Daniel Rindt daniel.ri...@gmail.com: 2014-05-09 0:12 GMT+02:00 Kostya Vasilyev kmans...@gmail.com: Are you absolutely sure that your code does not leak memory? How to be absolutely sure. :-) Just

Re: [android-developers] Activity Back Stack and OutOfMemoryError

2014-05-09 Thread Kostya Vasilyev
2014-05-09 18:37 GMT+04:00 Daniel Rindt daniel.ri...@gmail.com: 2014-05-09 15:53 GMT+02:00 Kostya Vasilyev kmans...@gmail.com: Well, personally, I usually use the object histogram at the starting point -- filtered by my app's package. When I see something that looks strange, I right

[android-developers] Activity Back Stack and OutOfMemoryError

2014-05-08 Thread Daniel Rindt
Hello, in the application we open a chooser for selecting photos. I got frequently crashes mostly from sony by doing this which says: OutOfMemoryError which raises by showing the bitmaps. The stacktrace which the system creates doesn't mention a class of our code which confuses me a bit. My

Re: [android-developers] Activity Back Stack and OutOfMemoryError

2014-05-08 Thread Krishna Mahadik
Increase memory allocated to process bitmap. Chunk of code will be more helpful to understand what problem exactly you are facing. Regards, Krishna On 8 May 2014 20:21, Daniel Rindt daniel.ri...@gmail.com wrote: Hello, in the application we open a chooser for selecting photos. I got

Re: [android-developers] Activity Back Stack and OutOfMemoryError

2014-05-08 Thread Daniel Rindt
2014-05-08 17:52 GMT+02:00 Krishna Mahadik krishna.maha...@gmail.com: Increase memory allocated to process bitmap. Chunk of code will be more helpful to understand what problem exactly you are facing. Thanks for your reply, have a look where the error is happen: java.lang.RuntimeException:

Re: [android-developers] Activity Back Stack and OutOfMemoryError

2014-05-08 Thread Kostya Vasilyev
On Friday, May 9, 2014 1:23:12 AM UTC+4, Daniel Rindt wrote: 2014-05-08 17:52 GMT+02:00 Krishna Mahadik krishna...@gmail.comjavascript:: Increase memory allocated to process bitmap. Chunk of code will be more helpful to understand what problem exactly you are facing. Thanks

[android-developers] Activity partially offscreen

2013-10-10 Thread bob
Is there a way to push an activity to the right or left so that half of it is off the screen? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe

Re: [android-developers] Activity partially offscreen

2013-10-10 Thread Siva Kumar
U can use dialog activity or fragments,etc On Oct 11, 2013 6:22 AM, bob b...@coolfone.net wrote: Is there a way to push an activity to the right or left so that half of it is off the screen? Thanks. -- You received this message because you are subscribed to the Google Groups Android

[android-developers] activity on boot

2013-05-06 Thread bob
So, I have a broadcast receiver that is supposed to start an activity on device boot: public class Boot_Receiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { Intent activity_intent = new Intent(Main_Activity.class.getName());

[android-developers] Activity start+restarts when launched with screen off

2013-04-24 Thread Shri
If an activity (with WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD | FLAG_SHOW_WHEN_LOCKED | FLAG_TURN_SCREEN_ON) is launched while the screen is off, the order of activity lifecycle callbacks is: onCreate, onStart, onResume, onPause, onStop, onRestart, onStart, onResume Why does Android

[android-developers] Activity

2013-03-29 Thread Arun Kumar K
Hi guys, I have one doubt in activity.i want a call back when activity is destroyed from the stack.My constrain is 1.Without using any inbuilt function like( onDestroy,finish and all) My another doubt is For example: ActivityA,ActivityB if i go to activityB from activityA then i go to

[android-developers] Activity won't start when launchmode is standard

2013-03-29 Thread plnelson
This question has (so far) stumped them on Stack Overflow. . . . I'm trying to launch an Activity which launches *perfectly fine* when its launchMode is set to *singleInstance*. When I change it to *standard*nothing happens; it never gets to onCreate (or onStart or onResume, or anyplace in

[android-developers] Activity

2013-03-26 Thread Arun Kumar K
Hi Friends, I have a doubt in activity destroy. 1. When the activity is destroy without calling the in-built method like (on-destroy,finish, is Finishing) and without press back button? 2.How can i get the call back in default Stack process like activity is adding the stack and deleting the

[android-developers] Activity and Application life-cycle

2013-02-10 Thread dashman
I understand Activities can be paused and or destroyed when in the background or sleeping. If destroyed goes thru a full creation process agan. What happens to the Application object. Specifically - if the Activity is destroyed, is the Application object destroyed also. It seems like the

Re: [android-developers] Activity and Application life-cycle

2013-02-10 Thread Mark Murphy
On Sun, Feb 10, 2013 at 9:35 AM, dashman erjdri...@gmail.com wrote: I understand Activities can be paused and or destroyed when in the background or sleeping. Activities are paused when they move to the background. Activities are only called with onDestroy() when in the background as part of

Re: [android-developers] Activity and Application life-cycle

2013-02-10 Thread dashman
Making sure i understand this When an activity is asleep, it could be destroyed by the os. if destroyed, onDestroyed() will be called. if not destroyed, it'll be resumed. The reason i asked the original question was this. I have an Activity as well as an Application sub-class - i store some

Re: [android-developers] Activity and Application life-cycle

2013-02-10 Thread Mark Murphy
On Sun, Feb 10, 2013 at 10:26 AM, dashman erjdri...@gmail.com wrote: When an activity is asleep, it could be destroyed by the os. There is no concept of asleep. if destroyed, onDestroyed() will be called. Not necessarily. The process can be terminated without onDestroy() being called. if

Re: [android-developers] Activity and Application life-cycle

2013-02-10 Thread Kristopher Micinski
People overuse the Application class because of a poor understanding of what its lifecycle semantics are. To top that, they're not especially well explained in most documentation or books. But if you're storing things in the application class, you probably shouldn't be, why not store them in

Re: [android-developers] Activity and Application life-cycle

2013-02-10 Thread dashman
by activity asleep i really mean phone is asleep - as in not awake/screen off. yes eventually i think i will have to store the state data in storage. the problem is that i'm maintaining a linked list that changes often and did not want to take the hit of saving it constantly. -- -- You

Re: [android-developers] Activity and Application life-cycle

2013-02-10 Thread Kristopher Micinski
You should consider changing your data structure, but you should also know that the underlying persistence architecture already has efficiency in mind (wrt caching, etc...) The fact that you have to store this in the global application context is a sign of code smell. Why are you doing this?

[android-developers] Activity passing

2013-01-31 Thread bob
Is it possible to pass an open Bluetooth socket from one Activity to another? I guess I'm somewhat confused about what activities can and cannot pass. Thanks. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

Re: [android-developers] Activity passing

2013-01-31 Thread Kristopher Micinski
When you think about what you can send between activities, think to yourself can I serialize this data to a text file and send it to another process? In this case, you really can't do that, because you can't serialize references (generally..). You should not be doing this, a lightweight solution

[android-developers] Activity Dialog interaction

2013-01-25 Thread Bunty syed
Hi all, Hope doing well. Actually I have one activity class.There I overridden onUserInteraction method. Then I have one dialog which I am displaying on some button click in the activity. When the dialog is displayed on the activity when I am touching on the dialog,onUserInteraction method

[android-developers] activity-alias won't launch activity from eclipse

2012-11-15 Thread Michael Zoech
Hi, I'm currently restructuring my app and in the process moving some activities around, I now have the same issue as described in [1]. The issue has been declined, because activity-alias is deprecated? This is new to me and I couldn't find any more information in the developer documentation.

Re: [android-developers] activity nevigation

2012-10-08 Thread Ibrahim Sada
What is your problm... Your not navigating from 1st activity to 2nd activity or wat..? On 8 October 2012 11:01, Sadhna Upadhyay sadhna.braah...@gmail.com wrote: Hi Everybody, I am stuck in a problem, the is this that when i get nevigate from one activity to another

Re: [android-developers] activity nevigation

2012-10-08 Thread Ibrahim Sada
public class FirstActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Button orderButton = (Button)findViewById(R.id.order); orderButton.setOnClickListener(new

Re: [android-developers] activity nevigation

2012-10-08 Thread Sadhna Upadhyay
No,its nevigating but for a milli second previous activity also visible then agen stops on next activity On Mon, Oct 8, 2012 at 11:32 AM, Ibrahim Sada ibrahim.in...@gmail.comwrote: What is your problm... Your not navigating from 1st activity to 2nd activity or wat..? On 8 October 2012

Re: [android-developers] activity nevigation

2012-10-08 Thread Ibrahim Sada
have you tried my code..what i have given you On 8 October 2012 11:55, Sadhna Upadhyay sadhna.braah...@gmail.com wrote: No,its nevigating but for a milli second previous activity also visible then agen stops on next activity On Mon, Oct 8, 2012 at 11:32 AM, Ibrahim Sada

Re: [android-developers] activity nevigation

2012-10-08 Thread Sadhna Upadhyay
yes. On Mon, Oct 8, 2012 at 12:33 PM, Ibrahim Sada ibrahim.in...@gmail.comwrote: have you tried my code..what i have given you On 8 October 2012 11:55, Sadhna Upadhyay sadhna.braah...@gmail.comwrote: No,its nevigating but for a milli second previous activity also visible then agen

[android-developers] activity nevigation

2012-10-07 Thread Sadhna Upadhyay
Hi Everybody, I am stuck in a problem, the is this that when i get nevigate from one activity to another activity then next activity appears for a milli second and its previous activity comes forword for a milli second then next activity will be stop,it happens like blinking

[android-developers] activity layout background

2012-09-05 Thread yoje
I have some question about activity layout background. When i set some drawable resource to the layout background via xml: android:background=@drawable/back_image, it works fine for me until i want to do some changes programmaticaly. Programaticaly, in this way:

Re: [android-developers] Activity class extends ListActivity instead of Activity invokes RuntimeException

2012-09-04 Thread TreKing
On Tue, Sep 4, 2012 at 1:35 AM, David Brown da...@davidwbrown.name wrote: The RuntimeException displays: Your content must have a ListView whose id attribute is 'android.R.id.list' What part of that is unclear to you?

[android-developers] Activity class extends ListActivity instead of Activity invokes RuntimeException

2012-09-03 Thread David Brown
- I have a humble little app that successfully logs into a blog. - The HTML returned is scraped successfully into a TextView instance. - Attempts to use a ListView instead are failing miserably @ runtime - The RuntimeException displays: Your content must have a ListView whose

Re: [android-developers] Activity class extends ListActivity instead of Activity invokes RuntimeException

2012-09-03 Thread jagruti sangani
In your xml file please change the id of listview to list.So it will solve the error. On Tue, Sep 4, 2012 at 11:05 AM, David Brown da...@davidwbrown.name wrote: - I have a humble little app that successfully logs into a blog. - The HTML returned is scraped successfully into a TextView

[android-developers] Activity stack question (another one, I'm afraid) SDK 8

2012-08-21 Thread Put_tiMe
I'm using Android SDK 2.2. Activity stack - A - B - C - D - E Now I press Home key. And I press the notification area to goto A again. Because of the stack issue, I make sure that I close B, C, D and E, using the static Instance. Now, the new activity stack:: A - B - C Now when I'm at C, E

[android-developers] 【android-developers】 activity-alias要素について

2012-08-16 Thread 安藤玲生
お疲れ様です。安藤です。 いきなりですが質問です。 activity-alias要素のIntent Filterに※1を記述して別アプリとして作成すると、 既存Activityを別名にすることができたのですが、※1をせず、ターゲットActivityの別名をしても、別名されませんでした。クラス名の取得の仕方は※2のようなやり方です。 どなたか、※1をしなくても別名することができるというひとはご教授していただければ幸いです。 ※1 action android:name=android.intent.action.MAIN / category

[android-developers] activity is invoking twice

2012-08-02 Thread Sadhna Upadhyay
Hi everybody, i hva multiple activities whe i click on button for moving secon all thje activity is starting twice within a second m not able to find out probllem, please anyone can help me. 2- as i told that i have multiple activity when i went from one to another on every click then

Re: [android-developers] Activity on Service

2012-07-25 Thread Rahul Kaushik
i want to start the activity but don't want to show it to the user. As this activity fetch some data on some criteria, through which notification will be shown. Thanks RK On Tue, Jul 24, 2012 at 6:45 PM, Mark Murphy mmur...@commonsware.comwrote: On Tue, Jul 24, 2012 at 9:02 AM, Rahul Kaushik

Re: [android-developers] Activity on Service

2012-07-25 Thread Mark Murphy
On Wed, Jul 25, 2012 at 5:11 AM, Rahul Kaushik rahulkaushi...@gmail.com wrote: i want to start the activity but don't want to show it to the user. As this activity fetch some data on some criteria, through which notification will be shown. Delete the activity. Move the fetch some data on some

[android-developers] Activity on Service

2012-07-24 Thread Rahul Kaushik
Hi, I have started an activity on Reboot from service, it get started but it bring the activity in front of user but i dont want show the started activity to the user MyCode on Service public void onCreate() { super.onCreate(); //Toast.makeText(this,StartAtBootService: onCreate,

Re: [android-developers] Activity on Service

2012-07-24 Thread Mark Murphy
On Tue, Jul 24, 2012 at 9:02 AM, Rahul Kaushik rahulkaushi...@gmail.com wrote: I have started an activity on Reboot from service, it get started but it bring the activity in front of user but i dont want show the started activity to the user Then do not call startActivity(). The *only reason*

Re: [android-developers] Activity on Service

2012-07-24 Thread Justin Anderson
I have started an activity on Reboot from service, it get started but it bring the activity in front of user but i dont want show the started activity to the user Why? That doesn't make sense... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On

Re: [android-developers] Activity on Service

2012-07-24 Thread ashok chakravarthy
or display a notification , so user can start activity by selecting the notification. On Tue, Jul 24, 2012 at 6:32 PM, Rahul Kaushik rahulkaushi...@gmail.comwrote: Hi, I have started an activity on Reboot from service, it get started but it bring the activity in front of user but i dont

[android-developers] Activity always starting in 2 instances on ZTE Skate

2012-07-22 Thread Tamás Kovács
I have two activities: a Preload activity and the main activity. My preload activity basically just spawns the main activity and then exits. My problem appears only on ZTE Skate (all other devices work fine). When I start my application by tapping its icon, the logcat output of my application

Re: [android-developers] Activity being started with old bundle data

2012-07-19 Thread Matt Schoen
No, I did not. Should I? There are currently no flags on the intent. On Wednesday, July 18, 2012 10:33:46 PM UTC-4, Dianne Hackborn wrote: Did you use PendingIntent.FLAG_CANCEL_CURRENT? On Wed, Jul 18, 2012 at 7:55 AM, Matt Schoen mtsch...@gmail.com wrote: Hi there, I'm having an issue

Re: [android-developers] Activity being started with old bundle data

2012-07-19 Thread Kostya Vasilyev
The root of the issue is described here: http://developer.android.com/reference/android/app/PendingIntent.html If the creating application later re-retrieves the same kind of PendingIntent (same operation, same Intent action, data, categories, and components, and same flags), it will receive a

Re: [android-developers] Activity being started with old bundle data

2012-07-19 Thread Matt Schoen
Thanks for the help! I actually ran with the previous response and chose FLAG_CANCEL_CURRENT. Worked like a charm :) On Thursday, July 19, 2012 9:45:12 AM UTC-4, Kostya Vasilyev wrote: The root of the issue is described here:

[android-developers] Activity being started with old bundle data

2012-07-18 Thread Matt Schoen
Hi there, I'm having an issue with an activity, which is started via a notification, which is spawned by an alarm. I've added debug outputs to determine whether the right data is being sent, and it is. What's happening is this: The alarm fires, which picks a random entry from my database,

Re: [android-developers] Activity being started with old bundle data

2012-07-18 Thread Dianne Hackborn
Did you use PendingIntent.FLAG_CANCEL_CURRENT? On Wed, Jul 18, 2012 at 7:55 AM, Matt Schoen mtsch...@gmail.com wrote: Hi there, I'm having an issue with an activity, which is started via a notification, which is spawned by an alarm. I've added debug outputs to determine whether the right

[android-developers] activity looses ArrayList items

2012-07-02 Thread alex b
I have an activity that contains a private Vectormyobject, thread safe version of ArrayList. The activity adds items to the ArrayList, and in onSaveInstanceState() I save the data (see code below). The problem is that it looses items and it seems to have after the GC runs. So what am I

Re: [android-developers] activity looses ArrayList items

2012-07-02 Thread TreKing
On Mon, Jul 2, 2012 at 2:52 PM, alex b alex_bramb...@yahoo.com wrote: The problem is that it looses items and it seems to have after the GC runs. So what am I missing? I would guess your serializeIt and deserializeIt methods are buggy. Debug your app. Also, both onCreate and

[android-developers] Activity Feed Within Native Android App

2012-06-29 Thread Xiaoyang
I am trying to build a feature in an Android app that allows a user to post some combination of text and images onto a news feed that can be 1) visible to all users or 2) visible to the user's friends (the user decides this at each posting). I have tried Google to no avail, so my question is, I

Re: [android-developers] Activity Feed Within Native Android App

2012-06-29 Thread TreKing
On Thu, Jun 28, 2012 at 1:38 AM, Xiaoyang xiaoyang.zhua...@gmail.comwrote: where should I start? http://www.catb.org/~esr/faqs/smart-questions.html - TreKing

Re: [android-developers] Activity Animation

2012-06-25 Thread Dianne Hackborn
More specifically: traditionally all drawing in the emulator is done in software. On all production devices starting with HC it is done in hardware. Further, window compositing (which is the important aspect of window animation performance) is done in hardware on pretty much every production

[android-developers] Activity Animation

2012-06-24 Thread ala hammad
Hello all , i want to ask why when animate activity show slow in emulater but in device show very fast .. how to make it slowly to show it to user ??? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Activity Animation

2012-06-24 Thread Francisco M. Marzoa Alonso
Hi, Emulator is really slow, you should not measure your app performance based on emulator results. The speed of an animation depends on the speed of the device: the faster the device, the faster the animation. You must use some kind of method to sync your animation

[android-developers] Activity has leaked window - no solution at stack

2012-06-14 Thread Rocky
All, I'm getting error Activity has leaked windows, when i'm calling index.html page through my Activity. *Here is the code - * public class MobSmartPhonehas extends DroidGap { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

Re: [android-developers] Activity has leaked window - no solution at stack

2012-06-14 Thread Kostya Vasilyev
Someone somewhere somehow (some code inside PhoneGap, by the looks of it) created an AlertDialog and didn't destroy it when the activity got destroyed. -- K 2012/6/14 Rocky rkjhaw1...@gmail.com All, I'm getting error Activity has leaked windows, when i'm calling index.html page through my

Re: [android-developers] Activity has leaked window - no solution at stack

2012-06-14 Thread Rocky
Hi Kostya, thanks for info, But I'm not creating any kind of AlertDialog, same code is working on different machine. On Thu, Jun 14, 2012 at 4:08 PM, Kostya Vasilyev kmans...@gmail.com wrote: Someone somewhere somehow (some code inside PhoneGap, by the looks of it) created an AlertDialog

Re: [android-developers] Activity has leaked window - no solution at stack

2012-06-14 Thread Kostya Vasilyev
Yes, the code that calls Android SDK dialog method appears to be inside PhoneGap (DroidGap?) 06-14 15:09:25.083: E/WindowManager(497): at android.app.Dialog.show(Dialog.java:241) 06-14 15:09:25.083: E/WindowManager(497): at android.app.AlertDialog$Builder.show(AlertDialog.java:802)

[android-developers] Activity flickers,when i add surfaceview to my layout first time

2012-06-05 Thread Bin Dou
Hi all: I got a problem : Activity flickers,when i add surfaceview to my layout through “layout.addView(sfv, new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));” first time. After first time i added the surfaceview to layout,no matter how many time i add

[android-developers] Activity fields being reallocated

2012-05-25 Thread Timothy McColgan
I have an Activity that has a field which is an ArrayList, that Activity starts an Activity which returns an object to be added to the list. The first Activity then adds buttons dynamically to itself based on the object that Activity B returns. My problem is that everytime Activity B is started

Re: [android-developers] Activity fields being reallocated

2012-05-25 Thread Justin Anderson
Implement OnSaveInstanceState() and OnResumeInstanceState() in your activity... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, May 23, 2012 at 12:13 PM, Timothy McColgan tmccolga...@gmail.comwrote: I have an Activity that has a field which is an

[android-developers] activity idle timeout for historyrecord

2012-05-18 Thread ttgdz
when I add a overlay to my mapview ,I receive this problem:It has no exception,but activity idle timeout for historyrecord.I am doing a project about google map. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Activity and affinity task

2012-05-11 Thread lcs_godoy
Hello everybody, Is that a way to set the affinity of an activity dinamically in code? I mean, instead of setting the taskAffinity tag into android manifest, set the affinity of an activity with a specific task programmatically, using a flag or anything else in a call for a intent, for

Re: [android-developers] Activity lifecycle and a null cursor

2012-05-09 Thread Raffaele Sgarro
I don't know if my assumptions are right, anyway I pushed an update that seems to fix the bug (at least, I have zero reports since I put the new version online, whereas I used to have a few dozens). Here is what I did currently 1. Removed android:onClick in my XML files 2. Manually set the

[android-developers] Activity lifecycle and a null cursor

2012-05-07 Thread Raffaele Sgarro
My activity displays a ListView which retrieves its data from the associated cursor. I close the database (and the cursor) onPause, and get a new database (and a new cursor) onResume. This means that events callback should access the Cursor only when it's not null. However I get lots of NPE in

Re: [android-developers] Activity lifecycle and a null cursor

2012-05-07 Thread Jason Teagle
adapter = new SimpleCursorAdapter( /* query the SQLite db */); I can't understand why cursor may be null, since onResume() it's clearly initialized by the query. You would expect so, but it couldn't hurt to check (as a debugging test) if adapter.getCursor() actually returns a valid cursor

Re: [android-developers] Activity lifecycle and a null cursor

2012-05-07 Thread Raffaele Sgarro
I appreciate your pragmatic response, however - while debugging on my devices (and emulators) I never got this NPE, so basically I am blind and must try to figure out what could happen on other devices. But, without being able to reproduce this behavior, the local debug is useless.

Re: [android-developers] Activity lifecycle and a null cursor

2012-05-07 Thread Jason Teagle
while debugging on my devices (and emulators) I never got this NPE, so basically I am blind and must try to figure out what could happen on other devices. But, without being able to reproduce this behavior, the local debug is useless. I'd need to get in touch with the users I don't envy you

Re: [android-developers] Activity lifecycle and a null cursor

2012-05-07 Thread Raffaele Sgarro
Indeed I agree. I am preparing a dialog to give users an opportunity to submit more information than a typical crash report. However I hope that someone from the Android team is on the list and can put some light on the overall Activity lifecycle and the management of views, threads and instance

Re: [android-developers] Activity lifecycle and a null cursor

2012-05-07 Thread Jason Teagle
Unfortunately the crash reports don't show the device model. The NPE happens when the user clicks a row or one of the buttons in a row (since all three actions share the same code). I have imagined a possible cause for this issue. Looking into the sources (android/view/View.java) here is what

[android-developers] Activity stack.

2012-04-21 Thread Put_tiMe
I have an activity that launches another activity, like let's say facebook's post to wall activity. Let's say facebook app was already running, and you were in what's on your mind screen. When my app launches the facebook's post to wall activity, and in that activity I press 'Back, then the

Re: [android-developers] Activity Intent-Filter configuration

2012-04-02 Thread Nimish John
Hi frnds...am new to android...i hav a doubt... Hi friends... i have a query lik ths... select item.a,item.b,customer.a,customer.b from item,customer where (some condition) can i retrieve data from ths query like ths cursor.getString(1); cursor.getString(2); will it create any problems?

[android-developers] Activity Intent-Filter configuration

2012-03-29 Thread rk
Hi All, My application is having an launcher activity with following intent- filter Action - android.intent.action.VIEW Category - android.intent.category.DEFAULT Mime-type -image/jpeg From 'Dual File Manger', When I try to open a file, which is not having proper

Re: [android-developers] Activity Intent-Filter configuration

2012-03-29 Thread Mark Murphy
On Thu, Mar 29, 2012 at 11:19 AM, rk ramakrishnar...@gmail.com wrote: My application is having an launcher activity with following intent- filter        Action - android.intent.action.VIEW        Category  - android.intent.category.DEFAULT        Mime-type -image/jpeg From 'Dual File

[android-developers] Activity calling is missing

2012-03-06 Thread kumar raja
Please look at this link and provide solution. http://stackoverflow.com/questions/9588740/activity-calling-is-missing -- Regards Kumar Raja M.Tech(SIT) IIT Kharagpur, 10it60...@iitkgp.ac.in -- You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] Activity By Intent with image changes

2012-02-07 Thread jabjab
I want to start a new Activity by Intent with a Button and replace the Image in an ImageView in the new Activity. Where, in the Intent (if its there it should be) do I put the replacement of the Image (the new one) when starting the Activity. The Image is in the drawable. Code:

[android-developers] Activity Life Cycle Issue on Orientation Change

2012-02-07 Thread Jim Duda
I'm developing an application on API 2.2 (Froyo). I'm having a problem with myListActivity when I do an orientation change from Vertical to Horizontal (F11 on emulator). After the orientation change, I go through onDestroy and onCreate as expected. After the onCreate, the application restarts

[android-developers] Activity to implement BroadCastReceiver through Manifest rather than manually - possible?

2011-12-01 Thread lbendlin
I have a service S and a bunch of activities A,B,C,D etc. The service S is sending broadcasts. Activity A is currently manually registering a broadcastreceiver on onResume and unregistering the receiver on onPause. But I was thinking if it is possible to do all this automagically through the

Re: [android-developers] Activity to implement BroadCastReceiver through Manifest rather than manually - possible?

2011-12-01 Thread Mark Murphy
On Thu, Dec 1, 2011 at 8:44 AM, lbendlin l...@bendlin.us wrote: I have a service S and a bunch of activities A,B,C,D etc.  The service S is sending broadcasts. Activity A is currently manually registering a broadcastreceiver on onResume and unregistering the receiver on onPause. But I was

Re: [android-developers] Activity

2011-12-01 Thread TreKing
On Tue, Nov 29, 2011 at 3:23 AM, abhijit chakra kanh...@gmail.com wrote: When i am moving from one activity to another activity...the button in the scond activity is not showing i dont know wr is the problem. please help Thanks in Adavance. How should we know wr is the problem if you don't

[android-developers] Activity

2011-11-29 Thread abhijit chakra
When i am moving from one activity to another activity...the button in the scond activity is not showing i dont know wr is the problem. please help Thanks in Adavance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Activity animation

2011-11-18 Thread Neilz
Hi all. I understand how you control the animation for a new Activity, using overridePendingTransition(). I must be missing something obvious, but what about when the Activity finishes? Can I control that too? -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Activity animation

2011-11-18 Thread TreKing
On Fri, Nov 18, 2011 at 10:17 AM, Neilz neilhorn...@gmail.com wrote: Hi all. I understand how you control the animation for a new Activity, using overridePendingTransition(). I must be missing something obvious, but what about when the Activity finishes? Can I control that too? Doesn't that

[android-developers] Activity can not receive the same intent second time while the app which this activity belongs to launched from another app.

2011-11-16 Thread Cimo Huang
Dear Android Developers: I got an issue that activity can not receive the same intent second time while the app which this activity belongs to launched from another app. I have an app2 launched from app1. Then in app1, start activity B from the main activity A with startActivity The launch

Re: [android-developers] Activity from app A showing on app B TabHost Activity.

2011-11-10 Thread Dianne Hackborn
Hosting embedded activities across applications is really not supported. And I strongly, strongly discourage you from using a sharedUserId. You will mostly likely regret it. On Wed, Nov 9, 2011 at 1:21 PM, rodrigo lopez rodrilo...@gmail.com wrote: Hello Guys I am trying to invoke a ListView

[android-developers] Activity from app A showing on app B TabHost Activity.

2011-11-09 Thread rodrigo lopez
Hello Guys I am trying to invoke a ListView from external app (we will call A) and putting in TabActivity from app (we will call B). I used shareId in both Applications . everything at this time works perfect. .I can see my ListView from APP A inside of my TabHost from APP B . the problem is

[android-developers] Activity creation order after kill

2011-10-27 Thread Assaf
As I now understand, Android will start the top-most activity even after killing the process due to resource shortage. (see http://groups.google.com/group/android-developers/browse_thread/thread/68a101144b9660f9# ) My root activity is responsible for some initialization code that I wouldn't like

[android-developers] Activity killed when users leave it every single time

2011-10-19 Thread GregAZ
My app contains 2 activities, one is mine which is not much more than the web browser control. The other is PayPal's for accepting money through the app. Up until recently everything was great. You leave the app, come back and you're right where you left off. But now, you leave the app and

  1   2   3   4   >