Android :: Switching Activities In Phone Start A Fresh JVM?
Mar 18, 2010
Does switching activities in Android start a fresh JVM? It seems like each activity is meant to run as its own "main" method. If I have a singleton (via Guice, not an actual singleton in this case) should I expect to be re-creating it every time I switch activities?
View 1 Replies
Jun 30, 2010
how to call BarCodeScanner, and return the value to a field.so now, i have a toast that says "successful scan" and then i want to pass the result to a new activity. when i comment out my intent, everything works (minus the passing of data/switching of screen, obviously) but when i run my project as is, it FC's no errors reported by eclipse in code or xml. any insights?
View 2 Replies
View Related
Apr 25, 2009
I've got a basic list activity with a few images that when you select one starts a new activity with a SurfaceView (based on the Lunar Lander sample). Some times the screen is just blank, from some debugging I can see that the background .png is being loaded and doDraw() is being called by the activity doesn't display anything for anything from 4 to 20 seconds. Other times the game activity is loaded just fine. I assumed it was some kind of garbage collection problem but I can't see anything in LogCat and the second activity is actually loaded, just not displayed for some reason.
View 2 Replies
View Related
Mar 26, 2010
I have my Hero rooted with Fresh 1.1. I love it, but I have a few questions for the future.
1- I recently switched from a PC to a Mac. If I want to switch ROM's or go back to stock, can I do this on a mac? Or do I have to use a Windows pc?
2- I was interested in switching from Fresh 1.1 to Fresh 2.0c, but I'm a bit confused. Do I have to go back to stock, then root and flash 2.0c? Or can I flash it on top of 1.1?
View 6 Replies
View Related
Jan 15, 2010
I have developed some apps for Android, and this questions stays always:
How should I structure my UI? Should I launch activity after activity and leave the phone to make the "back" button, or should I choose more optimized, but more complex to implement, way with switching manually Views and then manually doing the "Back" button functionality?
View 4 Replies
View Related
Sep 22, 2010
I'm starting on Android and got a beginner question on switching between multiple activities. I understand i can go between two activities by invoking an intent and then returning with setResult(). What I want to know is how to jump between multiple activities. Specifically I want to learn about the process life-cycle. I understand how every activity is started ar onCreated(), but I'm not sure how to implement onResume() or onRestart() when I want to come back. So basically I have 3 activities: Activity1, Activity2 and Anctivity3. I start with Activity1 and then invoke Activity2 with an Intent, and Activity2 invokes Activity3. Using buttons. Now I want to come back to Activity1 from Activity3. I do the same thing here too. Make an Intent and call startActivity(Activity1_Intent). But it gives a runtime error.I think I need to implement OnResume() or onRestart(), but I'm not sure how to do this. In onCreate() I make a gridView, so when I come back, do I need to make that gridView again? If anybody could give a small explanation of refer to a tutorial it would be great.
View 1 Replies
View Related
May 9, 2010
Currently I have a TabHost implemented with 3 tabs each containing a separate activity. My question is how do I switch between tabs from within one of the activities that is located inside the tab host. ie say i have a button inside one of the tabs[tab 1], when i click on this button it should switch to another tab[tab 2]. To understand my problem click on the link below, http://stackoverflow.com/questions/2541802/android-switch-tabs-from-w.
View 3 Replies
View Related
Nov 21, 2010
I posted a StackOverflow question here (http://stackoverflow.com/ questions/4226898/dismiss-android-popupwindow-when-switching-to-a-new- tab-in-tab activity/4227034#4227034) but it didn't get any responses. Basically, how can one dismiss a PopupWindow when changing to a different TabActivity? The onPause() method in my TabActivity causes the app to force close.
View 2 Replies
View Related
Nov 18, 2010
I have a kid's app for Android and there are some unique considerations for this application since the app has basically no navigation (it's for young kids). I do not want to break my app UI (which has been successful on iPhone) by adding a quit/restart button. What I really need is fairly simple -- I want my activity/app to start clean and new every single time it starts. Whether it's an initial load or whatever -- basically any time onResume is called I want a completely fresh instance of my app. I initially thought I could just exit/quit/finish the app when the user leaves. But I haven't found a way to do this that doesn't cause crashes on start. Also every thread/stack overflow post about that idea is filled with people wagging their fingers and saying you should never ever quit an app on android. If I can't quit the app onExit, is there something I can do to restart my activity every time onResume is called? (or would that be an infinite loop?).
View 2 Replies
View Related
Aug 4, 2010
I am rooted with unrevoked 3 so I tried to flash fresh 2.2 today but my phone is stuck on the screen that says "fresh" after rebooting. It's been that way for an hour. I tried pulling the battery and reflashing from the bootloader but it does the exact same thing.
View 8 Replies
View Related
Sep 30, 2010
Downloaded the android SDK on windows as well as fresh install of JDK. Java is installed fine, I can go to command prompt and enter "java" and it loads fine.
View 2 Replies
View Related
Jun 7, 2010
Is there a way of telling the phone with apps (not necessary for the proper functioning of the phone) start at start-up and which don't? I hate for unnecessary apps to auto start.
View 1 Replies
View Related
Feb 19, 2010
I followed all the steps from [Guide] Root/ROM FAQ/Tutorial and installed Fresh. However, when the phone comes up everything is [OK] but in the bottom Initialize Fresh Rom [Wait] flashing.It keep on rebooting and comes to same point for past 30 minutes.Did I messed the rooting part or ROM installed?Is there anything can be done here? or do I wait?
View 12 Replies
View Related
Dec 13, 2008
My G1 phone slows down after a while from switching it on, and if I switched off and re-switched it on it will get back to its normal state. So any clue why is that happening? I downloaded many apps from the market, is that the reason? and is there any application that shows the running applications in the background and their CPU and memory usage? And when I open the messaging and scroll through the messages it is way too slow.
View 5 Replies
View Related
Nov 18, 2010
I'm from the UK and currently using an N95 which although I really like is getting a little tired, old and feels slow compared to the newer phones.My contract with Orange is coming up due and they've said I can pick any phone at any price for free so thought I'd switch to android. I'm no stranger to messing with my N95 software so no need to be worried about suggesting a user friendly phone etc or if a phone can be improved by rooting etc. I'm willing to wait if there's anything really nice due in the next month or 2 but I'm basically after the best I can get my hands on especially hardware wise (as I'll have to wait 18 months+ for an upgrade).I've seen there could be new phones being released with 2ghz processors, 1gig ram etc which would allow me to keep up with updates. (I de-branded my n95 so I can use the latest firmware as i really dont like missing out on nice updates) Having a fairly decent camera would be a bonus as I am partial to taking the odd piccy.
View 2 Replies
View Related
Jun 19, 2010
Any application that switches the phone to silent and back again without having to press the on/off button please?
View 2 Replies
View Related
Nov 18, 2009
We are building a complex Android application consisting of many screens and workflows spread across many Activities. Our workflows are similar to what you might see on a Bank's ATM machine, for example, there is an Activity to login in that transitions to a main menu Activity which can transition to other activities based on the user's choices. Since we have so many workflows we need to create automated tests that span multiple activities so we can test a workflow from end to end. For example, using the ATM example, we would want to enter a valid PIN, verify that sends us to the main menu, choose withdraw cash, verify that we are on the withdraw cash screen, etc., etc., and eventually find ourselves back on the main menu or "logged" out. We've toyed with the test APIs that come with Android (e.g. ActivityInstrumentationTestCase2) and also with Positron, but neither seem capable of testing beyond the bounds of a single Activity, and while we can find some utility in these tools for some unit testing, they won't meet our needs for testing scenarios that cut across multiple Activities. We are open to an xUnit framework, scripting, GUI recorders/playbacks, etc. and would appreciate any advice.
View 9 Replies
View Related
Jul 7, 2010
In my application, I currently have several activities that consist of a TextView and a scrollbar. The only difference between them is the string that the TextView displays. Is there a way to consolidate all of these into one single activity, and depending on how/where the activity is started from, changes the TextView? Perhaps send the name of the string as an argument to startActivity, or something along those lines?
View 1 Replies
View Related
Aug 1, 2010
I did a wipe and clean install for Fresh 2.1.1 and have no speak phone on phone calls. I have nothing from the speaker.Tested it a few times, never works with a phone call.Speaker works for media - MP3 and custom ringers etc.Is the a known issue and or fix for this ?
View 2 Replies
View Related
Oct 31, 2010
I am fairly new to the whole rooting thing but I managed to get my Evo rooted with unrevoked and then loaded Fresh 3.3 on it a week or so later. I did a couple of back ups using titanium back up, one of the stock ROM and one with the fresh ROM. I kept these on the SD card but I think I should move them to my computer b/c they are large files. What should I have done once I installed Fresh 3.3? Is there something on the root of the SD card I should have deleted? I don't have the space to update to the fresh 3.4 right now and would like to get it updated ASAP.
View 1 Replies
View Related
Jun 6, 2010
If you switched to an EVO from a Blackberry-can you post here-with the Blackberry Model, and the Good, the Bad, and the Ugly, of switching?
View 49 Replies
View Related
Jan 15, 2010
I have multiple activities and one service.. In MainActivity I successfully connect to service (using a class what implements ServiceConnection + bindService() + startService()) but when i try to apply same method in other activity i see in LogCat a error... It Is possible to connect to service in an other way: something like to make static my CounterServiceConnection object in MainActivity and use it in the second one?
View 2 Replies
View Related
Sep 21, 2010
I got the phone off ebay, i knew it was rooted, but didnt know it would hurt it if i wiped everything off it, the other guys info and such. well i wiped it and now there is nothing on the phone or sd card. how do i get the phone to start working again. thanks in advance.
View 14 Replies
View Related
May 4, 2010
Just had an issue today with the phone after I got off of NYC Maximas.org and went back to the home screen. The phone decided to have a mind of its own and was actually switching between screens itself. Every time I hit the home button it would switch to screen 2 and three and so on and so on. Also when I tried to text right after that I was unable to input text for w.e. reason. After a shut off and turn on of the phone the issue was resolved; "weird". Anyone else having this problem?
View 8 Replies
View Related
Jul 15, 2012
I have unlimited data on my Thunderbolt, can I keep it if I pay full retail for a Galaxy S III and switch over to it? Verizon would have to switch from my standard SIM to micro..
View 2 Replies
View Related
Oct 31, 2010
My phone was all ok until i tried to change to a new sd card..when i changed to a new sd card and tried to switch on my phone, my phone stop on the htc logo and went blank and will not switch on! and when i switched back the previous sd card, the same thing happened and the phone will not switch on.
View 2 Replies
View Related
Jan 5, 2010
I was wondering if I can easily switch from 2.0.1 and Humancyborgs 2.1 rom on my Droid. My droid is rooted and I have run the 2.1 rom but I switched back to 2.0.1 because of some issues with the rom. I am hoping it is just a matter of swapping out the Nandroid files like I did when I returned to 2.0.1. I am missing the cool features of 2.1!
View 8 Replies
View Related
Apr 29, 2010
My phone keeps switching between the home screens by itself!
View 4 Replies
View Related
Jun 11, 2010
So I currently have an iPhone jailbroken and unlocked on t-mobile.
What do you guys think will be some advantages or disadvantages of getting the EVO and switching to sprint?
View 22 Replies
View Related
Aug 9, 2010
Tried running wireless tether 1.6 that comes with Fresh 2.3.3. No luck.Uninstalled Wireless Tether and reinstalled it from the developer's site. My laptop connects to the phone's WiFi network, but cannot access the internet. I've tried turning the phone's mobile network off/on while tether was running and also prior to turning on tether.
View 7 Replies
View Related