I've successfully implemented onRetainNonConfigurationInstance() for my main activity to save and restore certain critical components across screen orientation changes.
But it seems, my custom views are being re-created from scratch when the orientation changes. This makes sense, although in my case it's inconvenient because the custom...
Is it possible to add or change the existing applications?
For example, I would like to add a new floating window following the current people when I open the contact manager.
I just want to change it a little bit. And I don't want to rewrite all the features of contact manager.
Is it possible to do this?
As I understanding, the view...
I created an Activity which allows navigating between pages with a couple of Buttons (Previous and Next). When the user clicks one of the buttons, the Activity (same) needs to be "refreshed". In order to do this, I set up the buttons to make a call to
onCreate(this);
after they set up the other stuff that the activity uses for the pa...
I want to restrict capital letter typing through keyboard on my form.
any one guide me how to achieve this?
...
I need to keep track of currently existed Activities in Activity stack.
Can any one help me in that how to do it programmatically?
...
As part of learning android, I am following the NotePad tutorial
One thing I noticed in the tutorials, the DB connection isn't being closed explicitly and it makes sense since startManagingCursor() handles it itself.
But if start/stop the app in a speedy manner (I manually started app by clicking it's icon and closed it by pressing bac...
I am trying to set a window frame for all default Android applications. I know that in themes.xml, two attributes in the default theme can be used for this purpose; the windowFrame and windowBackground. What I want to know, is the exact difference between these two attributes. For instance, if I use the same drawable for either attribute...
I am in process of creating some test application "Time Tracker" app like stopwatch so I start app go to Activity where I start time counter and now I need some functionality to send my activity to background or minimize or hide and after some period to call this activity again and stop her counter to get passed time period ....
I've downloaded a few networking apps (games) that have you log in, then take you to a "home" type screen where you can change your settings, or start a new game, or view your buddies etc.
My question is two-part:
1) how are these "multipanel" apps created? Is each panel its own activity? I've tried adding different panels through Vi...
I've put a little app together that has three tabs to show three different web pages. It does work however I am bit worried I haven't got enough control over how this whole thing works. When I click a tab, I get a web page loaded (see code sample below), now when I click another tab another page loads in another view. When I go back to t...
Hi there
Hopefully this is very simple.
I have a central activity that can be launched from two separate classes. I was hoping that in this central activity I could have an IF statement like
if(this.getIntent() == MainMenu.class)
{
// Do something here
}
But obviously that isn't legal so how could I structure an expression to chec...
package and.views;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
public class androidView extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
s...
Hi,
I have some questions about the Android service and activity lifecycles. Hope you guys can help me out. I have written an application that uses GPS location and stores them. It must monitor the GPS location updates constantly to work properly.
Right now, it's all in one activity. So when you close the activity, you loose everything...
Hi,
I have an application that uses quite a bit of WebView. This can be triggered from a lot entry points in the application that brings up a generic browser activity with a WebView in it.
By doing this, i find that there is a high chance that this browser activity will be removed from the activity stack and destroyed when a user press...
Hello!
I have an Activity "A" which instantiates two objects from the Facebook Android SDK. I put these two objects into a static HashMap with unique static keys and their references. From other activities "B" and "C" I'm able to get these two corresponding references via myhashmap.get(). These two Activities are within the same applica...
Hi Friends,
i am using two Activity as Old Activity and New Activity,i want to pass some value from New Activity to Old Activity.how can i pass the value from New Activity to Old Activity please give some example code for that....
Thanks All
...
Hi,
In my application, I have problem with activity management.
Indeed, consider I have 3 activities :
- Splashscreen
- SignIn
- Home
I would see :
- First launch (user not logged) : Splashscreen -> SignIn -> Home (log in valid)
- Other launch (user registered) : Splashscreen -> Home (auto log)
The problem is :
Back from SignIn or Hom...
I have a menu and would like to open a new Activity when the user clicks on the menu item:
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle item selection
switch (item.getItemId()) {
case R.id.add_symbol:
System.out.println("ADD SYMBOL CLICKED!");
Intent myIntent...
My application starts with a welcome screen Activity, but that screen has an option to skip that screen altogether in future launches.
What's the proper Android way to do this? Initially, I just automatically detected the skipWelcome preference and switched to the 2nd activity from Welcome. But this had the effect of allowing the use...
I have a working TabView in Android, and would like to have a few more items available by pushing the menu button. I currently have a menu there, and can start new activities, but the content makes the TabView disapear rather than putting the content in the TabView. Is there any way for me to force / allow new Activities to open in the t...