Maybe my question might seem a bit weird, but I have an activity in which, in one case , I have to move to another activity before it finishes loading the screen. My condition is in the onCreate method, which means when I encounter it, i get a "startActivity called from outside an activity context" error and the app just crashes...
But t...
I have been looking it up and I just cant seem to wrap myself around the onCreate and Bundles. I understand that the onCreate is called when the program starts but its how the Bundles get passed around and how they are pertinent. Can anyone try to put this into plain english because I cant seem to find it well described.
Thanks
...
I'm trying to accomplish this in Win32, but I'm sure the same rules apply in the world of WinForms.
Q: I create my main window, and then, when it is being shown, I want to show a modal dialog. The problem is; how can I know when the main window is completely initialized and visible? That is, exactly when is the best time to show the dia...
As questioned elsewhere (http://bit.ly/9Wt3zG) but remains unanswered, the Google Analytics for Android README notes:
(NOTE: do not start the GoogleAnalyticsTracker in your Application onCreate()
method if using referral tracking).
Does anyone know why? Is there a particularly good place to do it? Start it in onResume() and simpl...
Hi All,
I have been slowing learning and building my first android app. I'm VERY new to java but have already done a couple of projects in C#, VB.NET (back in the day), Objective-C (have 6 apps in the store) and Fortran (waaaaaaaaaaaaaaaaaaaay back in the day ;)
So I just received from overseas a htc legend (I'm not in the US), which...
In "onCreate" I'm downloading data from web.The duration of downloading data is 10 sec. I wan't to have ProgressDialog while the data is downloading. Here is my code , but the ProgressDialog doesn't appear:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
P...
I have a parent activity, and a child activity that extends the parent activity. When the parent starts the child activity,
Which onCreate gets executed first? The child's or parent's?
There is a particular variable I am setting in the Child activity's onCreate method, and right now, it looks like it takes a while to get to the Child ...
I have a customized ImageView that works fine in one application. I've transplanted it to another application and am getting a null pointer exception prior to either my activity's onCreate() method or my customized ImageView's constructor being invoked. So far, I am unable to determine why it works in one app and not in another. Eclipse ...
I understand that Android Activities have specific lifecycles and that onCreate should be overridden and used for initialization, but what exactly happens in the constructor? Are there any cases when you could/should override the Activity constructor as well, or should you never touch it?
I'm assuming that the constructor should never b...
Hello,
I have 5 Content Providers for my 5 table SQLiteDatabase. They are
named:
CoreActionProvider
CoreMovementProvider
CoreRoundsProvider
CoreChecksProvider
CoreTermsProvider
I have stepped through the startup process several times and have
confirmed that all 5 Providers are loading. However, only
CoreTermsProvider and C...
First time poster, new to Android, and I seem to have hit a roadblock on this problem:
I'm creating a dynamic layout, consisting of several identical "composite" objects (these are basically "floating" LinearLayouts, each containing an icon (ImageView) and a caption (TextView)). The (x,y) coordinates of each LinearLayout are subject to...
After I either receive a phone call or make one, (and other undocumented interruptions) my application gets a NullPointerException when resuming my activity. Can any explain to me where it is and/or how to fix it? When my activity resumes, it is calling onCreate it seems, and it is trying to execute something that is null after Resuming....
I am developing a Delphi frame and need to load a list of business objects into a grid control at the beginning. Delphi frames have no OnCreate event, so what is the best way to replicate this? Should I override the constructor like is suggested on About? Should I just make a public loadData() procedure and have the parent container c...
Hi guys,
I got this class, and nothing inside the onCreate is happening? Does it not automatically get called upon initialization?
Code is below, Thanks alot! - Micheal
package com.michealbach.livedrops;
import java.io.IOException;
import java.util.List;
import java.util.Locale;
import android.app.Activity;
public class AnyClass ...
Is there a simple way to get the CREATE string from each of your tables in Android instead of redefining them in onCreate override. I am annoyed enough to just parse the whole thing for each table, but I am hoping there is an easier way I have not found yet.
...
Hello, I have some code in the onCreate method an Activity and noticed that it is being called three times. Is it normal behaviour? Thanks.
...
Hello,
I'm trying to dynamically adjust the height of my rows depending on the (screen height - my layout height) / list.size.
Unfortunately in the OnCreate method the layout height returns null (not so when i call it in an on click listener).
Is there another method I can call it in?
TIA
...
Hello all,
is it possible to start a context menu on the onCreate method? I know its probably bad design ethics but I have my resons!! I've tried the:
registerForContextMenu(this.getCurrentFocus());
But its not working.. So does anyone have any better ideas?
Many thanks in advance!
@Override
public void onCreate(Bundle savedIns...
I have a pretty simple local service that I'm trying to bind to my activity. I worked through this yesterday with CommonsWare and he got me straightened out as I was having a difficult time getting the service to bind. It turns out that the reason I was having so much trouble was that I was trying to bind the service with:
bindService...
I'm pretty sure that android services are going to be the end of me. I have almost no hair left after the last few days....
...anyway, I digress.
At first I was having a heck of a time getting the service to bind on an onclick of a button, got that straightened out from help here yesterday. Now I actually want the service to bind in ...