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

2015-08-21 Thread gc
That was the issue, I was hoping it was something simple. Thank you, very much! On Friday, August 21, 2015 at 11:42:10 AM UTC-5, Gus wrote: > > Activity.finish() should be called from the UI thread. Try doing that and > post the result. > > Cheers, > Gus > > On Fri, Aug 21, 2015 at 10:24 AM,

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

2015-08-21 Thread Gustavo Oliveira
Activity.finish() should be called from the UI thread. Try doing that and post the result. Cheers, Gus On Fri, Aug 21, 2015 at 10:24 AM, gc wrote: > Just updating, if anyone can help it would be appreciated. If you need > more information please ask. > > I think this should be similar if you'r

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

2015-08-21 Thread gc
Just updating, if anyone can help it would be appreciated. If you need more information please ask. I think this should be similar if you're using an Activity and showing video but not sure, how do you programmatically shut it down so the finish can occur and return to the prior Activity. Tha

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

2014-05-11 Thread Daniel Rindt
2014-05-11 14:00 GMT+02:00 Piren : > Android has this particular annoying and weird behavior: Once the heap > inflates to a certain size, no matter how much of it is actually used, you > can no longer allocate files that are larger than the remaining memory. > my guess, you're there. > > you should

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

2014-05-11 Thread Piren
Android has this particular annoying and weird behavior: Once the heap inflates to a certain size, no matter how much of it is actually used, you can no longer allocate files that are larger than the remaining memory. my guess, you're there. you should make sure your previous activities use as l

[android-developers] Re: Activity partially offscreen

2013-10-11 Thread Nobu Games
Hm... you could get the top level container view from the Window component and transform that view. The transformation probably needs to be done with a translation animation. However, you'll also need to catch and change touch events since their coordinates will be off. On Thursday, October 10,

[android-developers] Re: activity on boot

2013-05-06 Thread bob
Actually, I guess the key was realizing I could have multiple intent-filter tags. Adding the latter one resolved the issue: I guess I had previously been swapping between the two as

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

2013-04-04 Thread plnelson
On Thursday, April 4, 2013 1:57:36 PM UTC-4, plnelson wrote: > > > I think the discovery of the bizarre double-launch behavior puts a > different spin on this, so I've started a new thread. Please direct all > further comments or suggestions to the new thread: > https://groups.google.com/f

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

2013-04-04 Thread plnelson
I think the discovery of the bizarre double-launch behavior puts a different spin on this, so I've started a new thread. Please direct all further comments or suggestions to the new thread: https://groups.google.com/forum/?fromgroups=#!topic/android-developers/4js6GASVZc4 Thanks. -

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

2013-04-04 Thread plnelson
OK I tried that - no luck - it's not getting to the constructor *BUT* - while testing it I got a new clue. It launches the SECOND time I try it, consistently, Here's the extracted Logcat - you can see that the first time it never gets past Starting Intent, the second time it goes all t

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

2013-04-02 Thread Streets Of Boston
Maybe you could add one more log statement: Add a default constructor and print a log statement. This would check if the DGraphActivity instance is created or not: public DGraphActivity () { // Print out a log statement that this code here is reached properly. } If this constructor is execu

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

2013-04-02 Thread plnelson
Here's another detail:If I set DGraphActivity's launchmode to singleInstance the logcat shows this . . . *03-31 18:49:12.224: I/ActivityManager(119): Starting: Intent { flg=0x400 cmp=com..remote/.DGraphActivity (has extras) } from pid 19024 03-31 18:49:12.298: W/ActivityManag

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

2013-03-31 Thread plnelson
On Friday, March 29, 2013 7:06:59 PM UTC-4, Streets Of Boston wrote: > > >Log.*e*("Commands", "failed to start DGraphActivity"*, e*); > >> >> OK, I've added that although, since it's not hitting that (or any) exceptions it's not really telling me anything. So we're still kinda back on the o

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

2013-03-29 Thread plnelson
On Friday, March 29, 2013 7:04:39 PM UTC-4, Streets Of Boston wrote: > > I've never seen this. If it fails to start, i get a logcat message and an > exception is thrown (and you are catching that). *My bad* - it turned out it did have a filter on. (thanks for saying you never saw that - it

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

2013-03-29 Thread Streets Of Boston
Also, change the catching of your try - catch block, so that you see more of the exception being thrown when the activity fails to start: Log.*e*("Commands", "failed to start DGraphActivity"*, e*); This would allow you to see more info of what may go wrong. On Friday, March 29, 2013 7:04:39

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

2013-03-29 Thread Streets Of Boston
I've never seen this. If it fails to start, i get a logcat message and an exception is thrown (and you are catching that). Have you tried to set the Intent.FLAG_ACTIVITY_NEW_TASK flag when starting the activity? On Friday, March 29, 2013 6:40:44 PM UTC-4, plnelson wrote: > > > > On Friday, March

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

2013-03-29 Thread RichardC
On Friday, March 29, 2013 10:40:44 PM UTC, plnelson wrote: > > > > > RichardC wrote > Technically it needs a "." here: > > > I'm skeptical. My program has about 20 Activities and none of them have > .'s in front of the name and I've written a lot of other Android programs > without

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

2013-03-29 Thread plnelson
On Friday, March 29, 2013 5:57:46 PM UTC-4, Streets Of Boston wrote: > > Look at your logcat and see why your activity can't be started. Could be > as simple as a typo in your manifest. I only see things in LogCat about DGraphActivity when it *does* start (ie., when its launchMode is "single

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

2013-03-29 Thread Streets Of Boston
Look at your logcat and see why your activity can't be started. Could be as simple as a typo in your manifest. On Friday, March 29, 2013 4:02:04 PM UTC-4, plnelson wrote: > > This question has (so far) stumped them on Stack Overflow. . . . > > I'm trying to launch an Activity which launches *pe

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

2013-03-29 Thread RichardC
Technically it needs a "." here: > 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

[android-developers] Re: Activity

2013-03-29 Thread bob
Why can't you use a built-in function? Thanks. On Friday, March 29, 2013 7:48:00 AM UTC-5, Arun Kumar K wrote: > > 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( onDes

[android-developers] Re: Activity passing

2013-01-31 Thread Lew
bob wrote: > 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. > I don't know if it's possible, but if so it's almost certainly a bad idea. Once more than one component has a socket open, i

[android-developers] Re: activity animation

2012-08-22 Thread Andro.din
use overridePendingTransition() to animate your activity. On Tuesday, August 21, 2012 6:45:52 PM UTC+5:30, ToTo wrote: > Good post miguel:) But i'm afraid this is for animating the layout inside the > the activities. not the activity; isn't it?  > > On Monday, January 11, 2010 7:03:05 PM UTC+5:3

[android-developers] Re: activity animation

2012-08-21 Thread ToTo
Good post miguel:) But i'm afraid this is for animating the layout inside the the activities. not the activity; isn't it? On Monday, January 11, 2010 7:03:05 PM UTC+5:30, Shrey wrote: > > How to animate activity entrance and exit? > And activity relaunch after onNewIntent() ? > > I used android:

Re: [android-developers] Re: activity is invoking twice

2012-08-02 Thread bharadwaj
On Thu, Aug 2, 2012 at 12:50 PM, Sadhna Upadhyay wrote: > i mean when i click on button and the second activity will continuously > will invoke two time on a single click. > > i hope now clear to you > > -- > You received this message because you are subscribed to the Google > Groups "Android Dev

Re: [android-developers] Re: activity is invoking twice

2012-08-02 Thread Sadhna Upadhyay
i mean when i click on button and the second activity will continuously will invoke two time on a single click. i hope now clear to you -- 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

[android-developers] Re: activity is invoking twice

2012-08-02 Thread imran ali
Hi, Your question is not clear, can you post part of code that has been calling another activity. Hope we can help you, if you will post code or correct details of problem. Regards Imran Ali On Thursday, August 2, 2012 12:12:52 PM UTC+5:30, Sadhna Upadhyay wrote: > > Hi everybody, > i hva

[android-developers] Re: activity looses ArrayList<> items

2012-07-08 Thread Doug
What you really need to do is stop the thing that's updating your list before serializing it, then restart it from the point where it left off after deserializing it. Or find another way of coordinating this background work you're doing. Also, you shouldn't be calling restoreRecents in both on

[android-developers] Re: activity looses ArrayList<> items

2012-07-05 Thread alex b
I've isolated the problem and this has nothing to do with ArrayList or Vector and everything to do with Garbage Collector. Both of those are working fine exactly as I coded them when I run the code in an isolated activity. Apparently GC is destorying my activity and recreating it and my onSav

Re: [android-developers] Re: activity looses ArrayList<> items

2012-07-05 Thread Kostya Vasilyev
All activity lifecycle callbacks are invoked on the same, main, UI thread. 2012/7/6 alex b > I saw the notice about the syncronization of the Vector type, but it > didn't help me find a solution to the problem. What I believe i need to do > is... > > lock the ArrayList, Vector whatever > update

[android-developers] Re: activity looses ArrayList<> items

2012-07-05 Thread alex b
I saw the notice about the syncronization of the Vector type, but it didn't help me find a solution to the problem. What I believe i need to do is... lock the ArrayList, Vector whatever update the ArrayList unlock the ArrayList but I don't know how to accomplish this. On Tuesday, July 3,

[android-developers] Re: activity looses ArrayList<> items

2012-07-03 Thread RichardC
I don't think Vector is thread safe in the way you expect did you read: *"This class is equivalent to ArrayList with synchronized operations. This has a performance cost, and the synchronization is not necessarily meaningful to yo

[android-developers] Re: Activity Animation

2012-07-03 Thread ala hammad
please more description and with example of code if you can .. -- 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 from this group, send email to android-de

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

2012-05-07 Thread blake
Raffaele,   What information do you have, on the NPE?  Is it just user reports?  Something in them makes you certain that the problem is in the listener? G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/product/0636920023005.do -- You re

[android-developers] Re: Activity stack.

2012-04-22 Thread joebowbeer
What happens depends as much on how the "post to wall" activity is declared in its AndroidManifest, and how it is intended to be used. I suggest you use the documented methods, for example, see Hackbook for Android: http://developers.facebook.com/docs/mobile/android/hackbook/ On Saturday, Apr

[android-developers] Re: Activity gets Terminated using AssetManager list() on 2.1 - 2.2

2012-03-12 Thread oberluz
Hello Ender, I have the same problem using 2.3.3. Did you ever find out what caused it? I have been looking into this for over a day now :( Cheers On Friday, 10 June 2011 20:45:56 UTC+1, Ender wrote: > > Hello > > I am creating an app that gets 600 HTML files from the assets file > when I try

[android-developers] Re: Activity gets Terminated using AssetManager list() on 2.1 - 2.2

2012-03-12 Thread oberluz
Hi Ender, I have exactly the same issue on 2.3.3. Did you ever find out what caused it? I have been looking into this issue for more than a day now :( Cheers On Friday, 10 June 2011 20:45:56 UTC+1, Ender wrote: > > Hello > > I am creating an app that gets 600 HTML files from the assets file >

Re: [android-developers] Re: Activity animation

2011-11-22 Thread TreKing
On Tue, Nov 22, 2011 at 8:19 AM, Klimek wrote: > You have to add a sysconfig , or something like that. The app will be not > killed or will, thats ur choice. On Tue, Nov 22, 2011 at 8:16 AM, Klimek wrote: > If u re working on the build.prop , go from 32 to 64 , for better > performance I th

Re: [android-developers] Re: Activity animation

2011-11-22 Thread Klimek
If u re working on the build.prop , go from 32 to 64 , for better performance Dnia 22 lis 2011 o godz. 12:36 Neilz napisał(a): > I've tried various combinations yes, but the departing activity always > just goes 'phhh' :) > > On Nov 21, 10:28 pm, TreKing wrote: >> On Mon, Nov 21, 2011 at 12:0

Re: [android-developers] Re: Activity animation

2011-11-22 Thread Klimek
You have to add a sysconfig , or something like that. The app will be not killed or will, thats ur choice. Dnia 21 lis 2011 o godz. 23:28 TreKing napisał(a): > On Mon, Nov 21, 2011 at 12:04 PM, Neilz wrote: > The function *is* being called on the new activity. It's when the user > clicks 'back

[android-developers] Re: Activity animation

2011-11-22 Thread Neilz
Bingo! Thanks Kostya :) On Nov 22, 12:23 pm, Kostya Vasilyev wrote: > Ah. That's it. > > http://developer.android.com/reference/android/app/Activity.html#over... > > > > *Call immediately after one of the flavors of startActivity(Intent) or > finish() to specify an explicit transition animation t

Re: [android-developers] Re: Activity animation

2011-11-22 Thread Kostya Vasilyev
Ah. That's it. http://developer.android.com/reference/android/app/Activity.html#overridePendingTransition%28int,%20int%29 >> *Call immediately after one of the flavors of startActivity(Intent) or finish() to specify an explicit transition animation to perform next.* << As a test, override onBack

[android-developers] Re: Activity animation

2011-11-22 Thread Neilz
Kostya, would you have a brief example of what you mean here? I call overridePendingTransition() in my onCreate() method, but I don't explicitly call finish() or do anything beyond that. On Nov 22, 12:02 pm, Kostya Vasilyev wrote: > You are supposed to set the animations once, after having called

Re: [android-developers] Re: Activity animation

2011-11-22 Thread Kostya Vasilyev
You are supposed to set the animations once, after having called finish() on the exiting activity. Make sure to set the parameters correctly - one is the exit animation for activity we're exiting, the other is the entry animation for the activity we're entering. Oh, and it definitely does work. I

[android-developers] Re: Activity animation

2011-11-22 Thread Neilz
I've tried various combinations yes, but the departing activity always just goes 'phhh' :) On Nov 21, 10:28 pm, TreKing wrote: > On Mon, Nov 21, 2011 at 12:04 PM, Neilz wrote: > > The function *is* being called on the new activity. It's when the user > > clicks 'back' and the activity disappear

Re: [android-developers] Re: Activity animation

2011-11-21 Thread TreKing
On Mon, Nov 21, 2011 at 12:04 PM, Neilz wrote: > The function *is* being called on the new activity. It's when the user > clicks 'back' and the activity disappears, that I want to add an exit > animation. > Let me rephrase - did you try calling that method on *both* activities or just one?

[android-developers] Re: Activity animation

2011-11-21 Thread Neilz
The function *is* being called on the new activity. It's when the user clicks 'back' and the activity disappears, that I want to add an exit animation. On Nov 21, 5:45 pm, TreKing wrote: > On Mon, Nov 21, 2011 at 11:18 AM, Neilz wrote: > > So, I can control the animation of the new activity as i

Re: [android-developers] Re: Activity animation

2011-11-21 Thread TreKing
On Mon, Nov 21, 2011 at 11:18 AM, Neilz wrote: > So, I can control the animation of the new activity as it starts, and > the animation of the previous activity it replaces... but I can't find > a way to control the animation of the new activity when it pauses... > Did you try calling that same f

[android-developers] Re: Activity animation

2011-11-21 Thread Neilz
Sorry, I only just got around to checking for replies to this question. Yes, it does, but I thought the exit animation was applied to the activity that is being replaced by the new one. In fact I tested it, and it does. So, I can control the animation of the new activity as it starts, and the ani

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

2011-11-18 Thread Cimo Huang
Hi, BelvCompSvs Maybe I haven't describ my question clearly, I can't understand you completely.Please let me describ my question again I have an application A, an there is another application B. Now launch B, from B launch A. Then Activity TestAcitvity in application A is launched as foreground.

[android-developers] Re: 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 Zsolt Vasvari
What the hell are you talking about? On Nov 17, 2:49 pm, BelvCompSvs wrote: > with the caveat that i am still in get-going and do not have my > first .apk build up yet it seems rather obvious to me how to do it as > this would be an intermediate level work in Java - if Kyra were here I > would be

[android-developers] Re: 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 BelvCompSvs
with the caveat that i am still in get-going and do not have my first .apk build up yet it seems rather obvious to me how to do it as this would be an intermediate level work in Java - if Kyra were here I would be she would allow passing by reference here remoteOrBackGroundService(this); or somet

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

2011-11-10 Thread rodrigo lopez
Sorry for my english. On Nov 10, 11:34 pm, rodrigo lopez wrote: > 1.OK  I solved . The Activity B on the List-view had a method to > refresh the title bar. Just I took out the method and now I can see > the  my List View inside of My Tab-content. The problem was I think > the refreshing on the

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

2011-11-10 Thread rodrigo lopez
On Nov 10, 11:34 pm, rodrigo lopez wrote: > 1.OK  I solved . The Activity B had a method to > refresh the title bar. Just I took out the method and now , I can see my List View inside of My Tab-content. The problem was the refreshing on the title bar . > > 2. Can you tell me more details of why

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

2011-11-10 Thread rodrigo lopez
1.OK I solved . The Activity B on the List-view had a method to refresh the title bar. Just I took out the method and now I can see the my List View inside of My Tab-content. The problem was I think the refreshing on the title bar when that one was hidden by the TabContent. 2. Can you tell me m

[android-developers] Re: Activity creation order after kill

2011-11-02 Thread Belvedere Computer Services
packageandroid.app goes through the entire application load & remover giving several places to put code ~ you just implement the methods - how a:b:c call chain would be manages is startActivityForResult copy-paste from the search result for that term is Activity | Android Developers To do this,

[android-developers] Re: Activity creation order after kill

2011-11-02 Thread Assaf
Update - Answer to 2 is Yes. On Oct 27, 6:48 pm, Assaf wrote: > As I now understand, Android will start the top-most activity even > after killing the process due to resource shortage. > (seehttp://groups.google.com/group/android-developers/browse_thread/threa... > ) > > My root activity is resp

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

2011-10-19 Thread GregAZ
I'm having the exact same problem with the skeleton app. All I added was a toast alert. App is restarted every single time. I downloaded the newest Eclipse. I downloaded the latest Android SDK. Same problem. -- You received this message because you are subscribed to the Google Groups "Andr

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

2011-10-19 Thread GregAZ
Also I've removed everything from onCreate except for a toast alert. After signing and running it it shows my alert. I hit home, hit the app icon and again it shows my alert. WTF? Switching to it by holding down home does not show the alert. -- You received this message because you are subs

[android-developers] Re: activity launches with wrong layout orientation

2011-10-12 Thread 刘家豪
You might try to use the follow code from the Java class: switch (this.getResources().getConfiguration().orientation) { case Configuration.ORIENTATION_PORTRAIT: // Do something here break; case Configuration.ORIENTATION_LANDSCAPE: // Do something here break; case Configuration.ORIENTATION_

[android-developers] Re: activity launches with wrong layout orientation

2011-10-08 Thread decode
you should have instead placed the layout files in layout and layout- land. I assume that you must be updating the layout in just onCreate and onConfigurationChanged method. But, you should also check for the configuration and update it in onResume. Its better to use the folders if there isnt any

[android-developers] Re: activity launches with wrong layout orientation

2011-10-08 Thread Goodwin
I never find this issue. maybe you could supply more code. On Oct 7, 8:50 pm, Simon wrote: > Hi, > > I have an activity that I have two layouts defined for: one for > landscape and one for portrait.  So in my layout folder I have > activity.xml and activity_landscape.xml.  When I am switching aro

[android-developers] Re: activity running in background problem

2011-10-07 Thread Studio LFP
What exactly are you trying to accomplish? You want activity B to not be killed? Or a set of code to help you remember where B was and recreate it? Steven Studio LFP http://www.studio-lfp.com On Wednesday, October 5, 2011 6:58:36 AM UTC-5, Rafa Maas wrote: > > I have a IM client and this is my

Re: [android-developers] Re: activity running in background problem

2011-10-07 Thread Narendra Bagade
After pressing back button,will call finish() method which destroy activity B. On Wed, Oct 5, 2011 at 10:20 PM, lbendlin wrote: > Why is an activity in the background for so long? You should use a service > for non-UI tasks. > > -- > You received this message because you are subscribed to the G

[android-developers] Re: activity running in background problem

2011-10-05 Thread lbendlin
Why is an activity in the background for so long? You should use a service for non-UI tasks. -- 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 from this

Re: [android-developers] Re: Activity gets (re)created when device goes to sleep?

2011-10-04 Thread Latimerius
On Tue, Oct 4, 2011 at 5:28 PM, Studio LFP wrote: > I think the trick there is that even if you force your application to > landscape, if you are looking at your phone in portrait and pull up your > application, it shows it in portrait if even for just a second. When it does > that without the co

Re: [android-developers] Re: Activity gets (re)created when device goes to sleep?

2011-10-04 Thread Studio LFP
Great, glad to hear it! So much good stuff in Android it is hard to keep up with it. With it being so flexible in most cases, I have to work to remember those simple shortcuts that help out so much also. I think the trick there is that even if you force your application to landscape, if you ar

Re: [android-developers] Re: Activity gets (re)created when device goes to sleep?

2011-10-04 Thread Latimerius
On Tue, Oct 4, 2011 at 12:32 AM, Studio LFP wrote: > Would a simple android:configChanges="orientation|keyboardHidden" on the > activity fix it? I does seem to, thanks for the suggestion! I'll have to run a more comprehensive testing to make sure it really does but it looks very promising alre

[android-developers] Re: Activity gets (re)created when device goes to sleep?

2011-10-03 Thread Studio LFP
Would a simple android:configChanges="orientation|keyboardHidden" on the activity fix it? With that on the activity, when the screen rotates it doesn't try to kill and recreate your application, it just simply tries to rotate it. Steven Studio LFP http://www.studio-lfp.com -- You received thi

Re: [android-developers] Re: Activity has leaked IntentReceiver - Are you missing a call to unregisterReceiver() - Sprint Samsung Galaxy s2 (Android 2.3.4)

2011-09-27 Thread Glorious Red Leader
Ah good call - however still getting that error. Also forced true and false for the onMenuItemSelected method as well. On Tue, Sep 27, 2011 at 12:02 AM, joebowbeer wrote: > In onCreateOptionsMenu, try returning true instead of calling super > and see if that is a > workaround. > > On Sep 24, 5:0

[android-developers] Re: Activity has leaked IntentReceiver - Are you missing a call to unregisterReceiver() - Sprint Samsung Galaxy s2 (Android 2.3.4)

2011-09-27 Thread joebowbeer
In onCreateOptionsMenu, try returning true instead of calling super and see if that is a workaround. On Sep 24, 5:05 pm, Glorious Red Leader wrote: > I have not seen this error on the Droid Bionic, Motorola Photon 4g, > HTC Evo 3d, or the Thunderbolt - only on the Sprint Samsung Galaxy sII > Epic

[android-developers] Re: Activity Help

2011-09-23 Thread Derek Winstead
I changed the name of my variable in the fetchLiteratureTypes function on the LiteratureEditor.java file so it wasn't the same as the one in the LiteratureManager.java. That seemed to work and fix my problem. I no longer error when running my app. I assume it had something to do with the varia

Re: [android-developers] Re: Activity Help

2011-09-23 Thread Derek Winstead
My SQL queries are fine, I copy and paste the queries into SQLite Database Browser with the current database that is on the VM. Runs fine and returns the results expected. If it was a SQL error wouldn't the program error out before finishing the load? No breakpoints get hit on my debug mode and

Re: [android-developers] Re: Activity Help

2011-09-22 Thread kdı gjofd
SQL prolem .. 2011/9/22, Derek Winstead : > Here is my trace: > > 09-22 10:28:09.341: WARN/ActivityManager(59): Activity idle timeout for > HistoryRecord{450d4220 com.myMinistry/.gui.LiteratureEditor} > 09-22 10:28:14.575: DEBUG/dalvikvm(128): GC_EXPLICIT freed 908 objects / > 48408 bytes in 203ms

[android-developers] Re: Activity Help

2011-09-21 Thread Derek Winstead
Thanks Richard, I have directly skipped the LiteratureManager.java and run the intent LiteratureEditor.java from an activity before that normally calls the manager file. The editor works just fine and doesn't crash. I will post a stack trace tomorrow when I'm at work and can run the program...

[android-developers] Re: Activity Help

2011-09-21 Thread Richard Schilling
The spinner and the list on the first activity are "self contained" - that is their state won't directly affect the activity that you're calling. Sounds like the activity you start is trying to access some data/resource that is not there (e.g. your layout is missing a resource). Check the sta

[android-developers] Re: Activity Help

2011-09-21 Thread Derek Winstead
It starts in the LiteratureManager.java and the intent goes to LiteratureEditor.java -- 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 from this group, s

[android-developers] Re: Activity comms

2011-08-29 Thread Streets Of Boston
If i'm understanding correctly and Activity B is single-task or single-top (i.e. it is re-used for new incoming intents): public class B extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ... handleTheIntent(getIntent

[android-developers] Re: Activity comms

2011-08-29 Thread Streets Of Boston
If i'm understanding correctly and Activity B is single-task or single-top (i.e. it is re-used for new incoming intents): public class B extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ... handleTheIntent(getIntent

[android-developers] Re: activity transition animations

2011-08-27 Thread Jona
Create your own custom theme and override the activity animations. See the theme.xml file located under the android sdk. On Aug 26, 9:27 pm, hachi wrote: > i am also using windowIsTranslucent to achieve transparent background > on activity B > > On Aug 26, 6:07 pm, hachi wrote: > > > > > I am tr

[android-developers] Re: activity transition animations

2011-08-26 Thread hachi
i am also using windowIsTranslucent to achieve transparent background on activity B On Aug 26, 6:07 pm, hachi wrote: > I am trying to make an activity transition for the switch between > animations. What I want is that if I go from activity A to activity B, > A gets a certain animation. I am addi

[android-developers] Re: Activity Start Performance Improvement - how to dealt with loading the data while the UI continues to be displayed

2011-08-17 Thread nadam
That's exactly what AsyncTask is designed to do. Just call publishProgress() in your doInBackground() and update the UI in your onProgressUpdate(). Code snippet is part of the documentation: http://developer.android.com/reference/android/os/AsyncTask.html AsyncTask uses a Handler internally to ach

Re: [android-developers] Re: Activity Start Performance Improvement - how to dealt with loading the data while the UI continues to be displayed

2011-08-17 Thread Jim Graham
On Wed, Aug 17, 2011 at 04:54:02PM +0900, GML? wrote: > That is what I want to implement. > Would you teach me on how to do that? Do you have some code snippet? Here's one that you will find most helpful: http://developer.android.com/guide/index.html Later, --jim -- 73 D

Re: [android-developers] Re: Activity Start Performance Improvement - how to dealt with loading the data while the UI continues to be displayed

2011-08-17 Thread GMLチェックツール
That is what I want to implement. Would you teach me on how to do that? Do you have some code snippet? Thanks and regards (2011/08/16 18:06), demon wrote: once you got a(or 10, 20,...) piece of data, post a message or runnable by Handler. Then update the UI in the method handleMessage() of Hand

[android-developers] Re: Activity Start Performance Improvement - how to dealt with loading the data while the UI continues to be displayed

2011-08-17 Thread demon
once you got a(or 10, 20,...) piece of data, post a message or runnable by Handler. Then update the UI in the method handleMessage() of Handler or run() of the Runnable. On Aug 16, 9:15 am, gml wrote: > I forgot to mention that I am using AsyncTask. > Thanks > > On Aug 13, 8:38 pm, nadam wrote:>

[android-developers] Re: Activity Start Performance Improvement - how to dealt with loading the data while the UI continues to be displayed

2011-08-15 Thread gml
I forgot to mention that I am using AsyncTask. Thanks On Aug 13, 8:38 pm, nadam wrote: > Use AsyncTask.http://developer.android.com/reference/android/os/AsyncTask.html > > On 12 Aug, 06:21, gml wrote: > > > Hi guys, > > > I have simple application that loading the data needed upon the > >Activit

[android-developers] Re: Activity Start Performance Improvement - how to dealt with loading the data while the UI continues to be displayed

2011-08-15 Thread gml
I'm calling AsyncTask.execute() inside onStart(). Your case is very interesting. May I view the source code? And let me to pattern my sample app to yours. On Aug 15, 2:24 am, Vance Turnewitsch wrote: > AsyncTask can help, but on single-core devices AsyncTask will at times > block your UI loading

[android-developers] Re: Activity onPause and onResume Question

2011-08-15 Thread TheWanz
Found what I was looking for here: http://www.androidguys.com/2008/11/07/rotational-forces-part-two/ On Aug 14, 12:12 am, Indicator Veritatis wrote: > The advice to read and memorize the online docs on lifecycle is good. > But memorization will be somewhat elusive. While you are waiting for > tha

[android-developers] Re: Activity onPause and onResume Question

2011-08-15 Thread TheWanz
Found what I was looking for here: http://www.androidguys.com/2008/11/07/rotational-forces-part-two/ On Aug 14, 12:12 am, Indicator Veritatis wrote: > The advice to read and memorize the online docs on lifecycle is good. > But memorization will be somewhat elusive. While you are waiting for > tha

[android-developers] Re: Activity Start Performance Improvement - how to dealt with loading the data while the UI continues to be displayed

2011-08-14 Thread Vance Turnewitsch
AsyncTask can help, but on single-core devices AsyncTask will at times block your UI loading code. I've have experienced this with loading images and data from a SQLiteDatabase. I would suggest starting up an AsyncTask to load your data in onResume or onStart. That way you have a pretty high chance

[android-developers] Re: Activity Lifecycle question

2011-08-14 Thread hectordu...@yahoo.com
Veritatis, yes, it is working fine :-) in fact, the only thing i changed was to include (override) the onBackPressed() method as it was posted. goBack() also remains as it was posted, calling finish() at the end, after calling setResult(RESULT_OK, rit). methods onPause, onStop, on destroy are n

[android-developers] Re: Activity Lifecycle question

2011-08-13 Thread Indicator Veritatis
Test thoroughly before you say "it works". I have to say this because 1) the solution you describe still has a bad feel to it and 2) you TALK about "calling finish()", but you don't show it in this latest post. Are you calling it from goBack()? As the last thing it does? On Aug 13, 8:21 pm, "hecto

[android-developers] Re: Activity onPause and onResume Question

2011-08-13 Thread Indicator Veritatis
The advice to read and memorize the online docs on lifecycle is good. But memorization will be somewhat elusive. While you are waiting for that elusive satori to bloom, remember one point: there is never a good reason to do TCP/IP in the main thread, which in Android, is also the UI thread. (or wha

[android-developers] Re: Activity Lifecycle question

2011-08-13 Thread hectordu...@yahoo.com
thank you guys, finally it works by overriding the back button, calling goBack() and also calling finish(). @Override public void onBackPressed() { goBack(); //return; }//onBackPressed hector On Aug 13, 12:00 pm, TreKing wrote: > On Sat,

[android-developers] Re: Activity onPause and onResume Question

2011-08-13 Thread Jim
It might help to read (and memorize) the activity life-cycle (here: http://developer.android.com/reference/android/app/Activity.html) A phone rotation destroys the current activity unless you override onConfigurationChanged. Don't just "override" it though - make sure you know what to include, wha

Re: [android-developers] Re: Activity Lifecycle question

2011-08-13 Thread TreKing
On Sat, Aug 13, 2011 at 11:22 AM, hectordu...@yahoo.com < hectordu...@yahoo.com> wrote: > i am trying to also do it form onPause(), onStop() , onDestroy . :- Well there's your problem. I don't know what will actually happen with you doing this, but that seems wrong. Those methods are alread

[android-developers] Re: Activity Lifecycle question

2011-08-13 Thread hectordu...@yahoo.com
i callled goBack() with sucess from a button: mButton_thisSpinValue.setOnLongClickListener(new View.OnLongClickListener() { public boolean onLongClick(View v) { Toast.makeText(HDART10Activity.this, "GO BACK ...", Toast.LENGTH_SHORT).show();

[android-developers] Re: Activity Start Performance Improvement - how to dealt with loading the data while the UI continues to be displayed

2011-08-13 Thread nadam
Use AsyncTask. http://developer.android.com/reference/android/os/AsyncTask.html On 12 Aug, 06:21, gml wrote: > Hi guys, > > I have simple application that loading the data needed upon the > Activity starts which it consume about 2-3 minutes. Then, the UI > displayed after that long process. > > P

Re: [android-developers] Re: Activity Lifecycle question

2011-08-12 Thread TreKing
On Fri, Aug 12, 2011 at 5:36 PM, hectordu...@yahoo.com < hectordu...@yahoo.com> wrote: > i wonder if somebody has an idea to deal with this issue; i tried to catch > the RESULT_CANCELED but nothing happens, the activity 1 is as follows: > How and where are you calling your "goBack()" method? ---

[android-developers] Re: Activity Lifecycle question

2011-08-12 Thread hectordu...@yahoo.com
1- i saw an example using super.onActivityResult() using it after the "if" didnt make any difference! 2-the process code is for RESULT_OK: yellowRoullete = (Roullete) rit.getParcelableExtra("updatedYellowRoullete"); blueRoullete = (Roullete) rit.getParcelableExtra("updatedBlu

  1   2   3   4   5   >