Hey I am working an android app and it's basically just one activity, which is a map, but I want a Facebook login screen before they get the layout with the map. Should I make another activity specifically for the log in screen or should I make another layout and use the same activity with two layouts. Also is it generally better to always make another activity for another layouts. Also any other tips around my issue would be appreciated, since a facebook log in screen before your app is pretty common. Thanks!
For the Facebook Login Screen, here's the link I thought you'd help.
https://code.tutsplus.com/tutorials/quick-tip-add-facebook-login-to-your-android-app--cms-23837
About the layouts, in my opinion, in this situation less layouts are better to manipulate but it's still up to you.
Good Luck.
G.
Related
This is more of a curiosity than anything else but it would be good to get some feedback from everyone on possible problems and solutions etc.
Is it possible to use one "host" activity and use that activity to display 3-4 different activities?
I already use tab host in my app and this doesn't seem to fit my needs in regard to the menu idea, ill explain what I'm trying to do as it may help.
Im trying to find a nice clean solution to playing background music, but this could be applied to other functions as well, but essentially, after the splash screen i would like a "host" activity to load first and in that activity, load up a menu activity, when the use presses a button the menu activity, i would like the next activity to load up still inside the "host" activity.
I'm hoping this would make playing music etc as clean as possible and with as little extra coding as possible.
Is this idea possible? would it be beneficial? what would be the best way to accomplish this?
Like i said this is more of a curiousity than a "gimme code to do it", I can work that out once i know the direction to head in & if its possible, I mainly want this for b/g music at the moment but im sure this could be applied other functions.
Thanks for looking, reading giving your thoughts :)
phil
I'm trying to build an application that would run at the same time as another one, on top of it (hiding only partially the original app), that would display useful information for the user of the main app.
But it seems that 2 activities cannot run at the same time, overlap, etc...
For argument sake, lets say the app would be displaying date & time in a corner of the screen, while playing a specific game.
Anyone got any doc or sample code on how to achieve such a result ?
I'm also interested in how to know which app is currently running in order to decide in my app-on-top to be visible or invisible.
Any help appreciated :)
Thx
Looks like you are in need of Fragments: Fragments
The Android system is designed to be user friendly, and two activities at same time is not, so only one activity is on foreground at once. if you need the other to be running in background make it a Service, if you want to show some data and get back first one use a Dialog, finally if you want both you can either put them in one activity or use Fragments as #Tooroop suggsets.
Its propably too late ... but for others with the same problem:
check out how-to-draw-on-top-of-other-applications
and maybe also this if your app need to be on top on fullscreen apps
I am building my first Android application that will guide the user through a series if listViews containing categories until the user reaches the final activity where a large block of text will be displayed.
My question is:
Can and should I build the listViews dynamically in one activity or should I build them all in eclipse manually?
There will be a lot of activities. I dont mind building them, i just dont want to bog down the application. From what I understand Android does a pretty good job of destroying old activities, but I am not sure the impact of having hundreds of activities would be.
Thanks in advance for your advice.
Sounds like one activity containing a ViewFlipper to hold the list(s). Presumably the list isn't the only thing you'll be wanting to display. You'll probably want to show a heading of some kind, and the user's location in the hierarchy.
What if the user hits back button? Will the app navigate to the previous activity?? Or will it be disabled?
I would suggest you make different activities since its the easiest way to do
I would like to put fairly extensive help information within my app - both "how to use" and explanation of what one is seeing.
The app (map oriented) has a row of buttons at the bottom, and I was considering adding a help button.
Context sensitive help is mostly not appropriate, btw.
What are common and best practices for this?
Thanks
I wouldn't suggest using a help button, once the user knows how to use your app it will be useless, and will only takes some space.
What I do (but it's maybe not the best practice) is to show a popup on the first use. Within the popup I put some basic help and a link to my website which fully explains how my app works (with some screenshots to make it user-friendly). I also put a "Help" button in the activity menu which redirects to my website again.
What I can suggest is to explore by yourself how other android apps shows the help information, and reuse or adapt the one you prefer (this is what I've done).
I have put help into a menu item as I expect new users to click the menu button anyway (my app, Zwitscher also has a button bar at the bottom).
Clicking the menu item then starts an Activity that simply shows a table view that explains the various buttons in the system and contains a link to more information online.
See https://github.com/pilhuhn/ZwitscherA/blob/master/src/de/bsd/zwitscher/HelpActivity.java and
https://github.com/pilhuhn/ZwitscherA/blob/master/res/layout/help.xml
Another option I've seen sometimes is including a help option in the preferences/configuration screen.
Usually it starts a new activity with a sequence of steps to make the user understand everything.
I was able to setup admob in my app but it only shows in the first page where i first setup. I copied same code on different activity and layout but these never appear. Any idea why? and is it possible to display admob on different layout xml?
thanks.
I see this working in the way you describe it in other ways, so I guess it should definitely be possible to have Ads on multiple pages.
Have you tried putting your ads into test mode- do they appear by then? If not you probably have a different problem (like layout etc..)
http://developer.admob.com/wiki/Android