Android :: Pros - Cons Of Multiple Activities In An App Vs One Activity - Multiple Views
Aug 16, 2010
Are there design guidelines to help decide if an application with multiple views should be designed with multiple activities or just one activity and control the back button itself.
I've tried both. My most complex applications using one activity per screen. However, now that I'm successfully written an app with just one activity and handling the back button myself, I don't see any compelling reason to use multiple activities. The one activity application is much simpler and more straightforward.
What advantages of multiple activities am I missing?
View 8 Replies
Feb 18, 2010
I'm working on an application using xml layouts.
I wish to know which is better:
1. Use few activities and change its contentview
2. Use an activity for each 'view' needed
If both works, in which case which option would be better?
View 1 Replies
View Related
Aug 3, 2010
I start a browser and from the browser,I start a video which occupies only a small part of the screen,say the bottom right corner.
Now the browser will be pushed to the 2nd position in the window order and Video will come to the first position. Is it possible that browser can have the control for active window and receive the key events though the video is the Top Most window.
View 4 Replies
View Related
Jul 31, 2010
My situation is the following: I have written one MapActivity class that is able to display a set of places as well as single places. On startup, the application creates an instance of this MapActivity and displays multiple places. If the user clicks on a certain place, then a new Activity is launched that shows the details of the selected place. This activity has a menu item that allows the user to view the place on a map - this causes that a new instance of the MapActivity is created, except that now only this single place is displayed.
The problem now is that if the user navigates back to the first MapActivity (the one that shows multiple places) the tiles won't be loaded anymore + sometimes OutOfMemoryErrors are encountered. According to the Android JavaDocs, it is only possible to have one MapActivity per process. However, I don't want to define my MapActivity as a singleInstance/singleTask, since the user should always be able to navigate back to the first MapActivity that shows multiple places. I have seen that the Google Places app (which has come with Google Map 4.4) for Android uses multiple MapActivity instances. How is this possible?
View 1 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
Jul 1, 2010
I'm planning to develop and app that presents the users with several different screens (of different information).
Was wondering what would be the best way to implement this?
Is it better to have separate XML layouts and an activity to display and allow the user to interact with each screen of data?
OR would handling all of these in the same activity be more efficient (and dynamically load / unload each layout)?
View 2 Replies
View Related
Jun 12, 2010
I want to know if we can display multiple activities in a single activity using ActivityGroup.Can anyone please help me out with this?
View 1 Replies
View Related
Nov 7, 2010
Basically what I am trying to accomplish is I want a canvas I can pass bitmaps to, to be displayed on the screen with the rest of my view objects (buttons, textviews, etc).
View 1 Replies
View Related
Feb 2, 2009
I am trying to launch an activity from another activity .. Within the com.android.SingleLauncher..
I have activity launch code as ..
CODE:...........
I have set the android:multiprocess="true" in the AndroidManifest.xml of TargetSL I don't seem to see the multiple instances of TargetSL, which i am expecting ..
All i see is 2 process, where i was hoping to see an instance of TargetSL, for each launch that was invoked by the singleLauncher!
View 3 Replies
View Related
Nov 18, 2010
However I still really am unsure of what exactly it does as a whole and what the pros/cons are of it.. Is there a link that explains it all in simple terms for someone whos not so tech savy as myself?
View 27 Replies
View Related
Jul 6, 2010
Has anybody blogged about this comparison, or does anyone want to give it a shot here? Would be nice to see some reasoned thoughts on Adobe AIR on Android vs. the "native" Android SDK (in Java). Edit: Despite few views and no answers, I'm leaving this question up here since it's a topic that needs to be covered at some point but if it gets no attention I'll delete it in a few days.
View 1 Replies
View Related
May 18, 2010
Should You Buy the EVO? Pros and Cons of the Next Big Android Phone - NYTimes.com"Forget the Nexus One, Google's failed attempt at marketing its own "iPhone killer" via the web - the next big "Google Phone" is definitely going to be HTC's EVO, the first 4G Android smartphone to hit the U.S.
View 18 Replies
View Related
Jul 7, 2010
I have been tasked with updating my teams dev. environment. This environment will be used to develop and test J2ME and Android mobile applications. I am looking at NetBeans 6.8 and Eclipse 3.6. Do you have any recommendations for why either of these would be good or bad for this? (aka mobile plugin problems, compatibility issues, ease of setup/maintenance for team members, high quality mobile dev. support, etc.)
View 7 Replies
View Related
Sep 29, 2010
I have an unlocked, unbranded Hero (bought without a SIM, currently being used with a 3 UK SIM) and am waiting (patiently) for notification when an update is available. Nothing has arrived on my phone and I can't see anything relevant on the HTC Support website. Meanwhile I understand that many Hero users have already been able to upgrade and so have presumably experienced the pros and cons of the upgrade. Googling for information I find a number of reports of "issues", especially with the Sprint version of the Hero. Do people generally find that the advantages outweigh the disadvantages?
View 2 Replies
View Related
Feb 8, 2010
I have a very simple game that consists of only one activity, and I want to add a title screen.If the title screen is another activity, what changes do I need to make to my manifest file to make the title screen open first?The gameplay activity is called Leeder, and the title screen activity is called LeederTitleScreen.
View 1 Replies
View Related
May 20, 2010
I am working on a graphics application in Android. I have a question regarding MULTIPLE SURFACE VIEWS. Can I be rendering multiple surface views at the same time. Initially, when I had two surface views in the same activity, it didn't seem to work, as it used to show only one at any time. But, with one surface view attached to one activity, is there any way I can keep the background activity's Surface View alive so that both the surfaces get rendered together?
View 2 Replies
View Related
Aug 5, 2009
what would be the outcome of using findViewById when multiple child views have the same ID lets say for example when using a layout to dynamically produce multiples of the same control?
View 4 Replies
View Related
Jan 17, 2010
I have a ListView that could have 4 different views for a row depending on the data for the row. I have the ListView working correctly overriding getViewTypeCount and getItemViewTYpe. I originally was trying to dynamiclly update the view type count as new views were inflated by forcing calls to getViewTypeCount because it was possible that maybe one or two views may be all that would be needed. The app never functioned correctly crashing after there was more than one view added. The problem was fixed by setting getViewTypeCount to always return 4. I noticed getViewTypeCount is automatically called on app start-up and never called again unless a force call is made. So I'm just curious if this can be changed dynamically or do you need to know the number of max views you can possibly have and override getViewTypeCount to return that max value.
View 1 Replies
View Related
Jun 15, 2010
I tried to add these views to list view using this kind of factory but everytime I try and add the view to a ListActivity, it comes up with nothing. What am I doing wrong?
View 3 Replies
View Related
Jun 20, 2010
With all the available roms, id like to know what are the pro's & cons of each, such as features, apps, and flaws, and "why" do you feel one rom is better over the other. Please be detailed, not just "this rom is the best".
View 13 Replies
View Related
Aug 17, 2010
Can someone explain to me the pros and cons of rooting and if its easy? Can it break your evo?
View 2 Replies
View Related
Sep 1, 2010
I was wondering if anyone could help me make my decision between the HTC Incredible, the Droid 2 and the Droid X. I'm leaning towards the Droid X at this point over the Droid 2, because the physical keyboard seems superfluous. I type much more quickly on my iPod Touch than I do on my phone, which has a physical qwerty on it. I'm hoping Swype and a bigger screen will make it even better. For that reason, the Droid 2 is kind of a long shot, in my opinion.
Alas, it's mostly down to the X and the Incredible. After having read up on the specs of both rather extensively for the past few weeks (I'll have money to kill my AT&T contract and get on with Verizon sometime this month), the only thing I haven't been able to research very well is Sense versus the stripped-down version of Blur on the phones.
View 11 Replies
View Related
May 18, 2009
What are the pros and cons to use iPhone/Android phones to write scripts?
I'd like to buy a new mobile phone which I can utilize my time to do some scripting even when I'm not at my desktop computer.I heard that you can't save files to your iPhone unless you jail break it. This maybe a big problem if I want to create some new scripting file. Say I want to create a abc.java and there's no way for me to save it.
Is it the same case for Android too? Can I create local scripting files on Android phones? Since Android is a linux os... is it possible to install java sdk or other sdk (like flex?) on it?
View 5 Replies
View Related
Aug 30, 2010
I have buil a file explorer just like a mycomputer.it reads the whole storage and system for files and directories now.i am working with start menu.i have built it in an other activity i wan to make them active at the same time?
View 2 Replies
View Related
Aug 23, 2009
I have started a thread from one Activity and then i have started another activit from parent Activity . Now my Parrent Activity is in pause state . but what will happen to thread that I have started from parrent . I belive it will continue........not going in sleep state........
View 2 Replies
View Related
Mar 17, 2010
I seem to be missing something obvious here, why would I want more than one activity per application in Android? Does somebody have some solid examples?
View 3 Replies
View Related
Mar 18, 2010
I'm having a problem when I create a Sub-Activity to my main activity. Both activities have their own GLSurfaceViews. Nothing on Logcat. Basically It just opens up the new view and it's black and it never renders with the new opengl stuff. I've tried a bunch of stuff, just want to know if there's some special way I need to pause the first opengl activity to get the second to run, or if there's some toggle which I am missing, or if it just can't be done. When I open the second activity with a GLSurface View, the first activity stops drawing frames, but the second one, never initializes or starts to draw.
Main Activity Creation:
CODE:................
View 3 Replies
View Related
Jun 28, 2010
i have an android app with several activities. I need to start a timer when the first activity starts and end the timer when the last activity starts and show the elapsed time. How can i use Asynctask to do this.
View 2 Replies
View Related
Jun 23, 2010
I have developed a simple android application, which when started opens a Timer. User is given two buttons, start/ pause. This is working fine.What i want to do is to add a way to support multiple timers when a user swipes his finger on the screen.When he swipes from left to right, a new timer should show up, but the previous timer should not stop. This is a way to add multiple timers.Also, when he swipes from right to left, i want a previous timer to show.This is what i have done so for. I have a timer activity. I have added a touch event on it. When, a person swipes his finger, i get the co-ordinates and decide whether its from left to right or right to left.This functionality is working fine, as i can see the appropriate log messages.The problem is when I'm trying to load Timer Activity.It just loads the previous Activity and doesn't really create a new one (I figured this from the timer).Is there any way to do it?
View 1 Replies
View Related
May 25, 2010
I need to be able to use one object in multiple activities within my app, and it needs to be the SAME object. What is the best way to do this?
I have tried making the object "public static" so it can be accessed by other activities but for some reason this just isn't cutting it. Are there any other ways of doing this?
View 6 Replies
View Related