Click here to Skip to main content
15,891,914 members
Home / Discussions / Android
   

Android

 
QuestionWrote my first android game... what are the best ways to promote it? Pin
KevenL20-Jan-14 6:20
professionalKevenL20-Jan-14 6:20 
AnswerRe: Wrote my first android game... what are the best ways to promote it? Pin
Clark Kent12328-Jan-14 5:51
professionalClark Kent12328-Jan-14 5:51 
QuestionEneter messaging framework for Android Pin
Lalit Nankani19-Jan-14 18:31
Lalit Nankani19-Jan-14 18:31 
QuestionAndroid with SQLite Database((Mono for Android, C#)) Pin
Member 1053221418-Jan-14 1:08
Member 1053221418-Jan-14 1:08 
AnswerRe: Android with SQLite Database((Mono for Android, C#)) Pin
thatraja19-Jan-14 22:04
professionalthatraja19-Jan-14 22:04 
Questionscenario to start Pin
SaturnPlanet17-Jan-14 12:55
SaturnPlanet17-Jan-14 12:55 
AnswerRe: scenario to start Pin
Peter Leow17-Jan-14 13:46
professionalPeter Leow17-Jan-14 13:46 
QuestionAndroid Eclipse SQLiteDatabase OnCreate is not called Pin
itforum Question16-Jan-14 23:12
itforum Question16-Jan-14 23:12 
Please can you guide me to resolve in my code . I am a beginner in Android development. In my code On Create method is not calling

Java
    public class mtsDatabaseHelper extends SQLiteOpenHelper 
{
	private static final String DATABASE_NAME="fleetdatabase";
	private static final String TABLE_NAME="USERS_TABLE";
	private static final int DATABASE_VERSION = 1;
	private static final String UID = "_id";
	private static final String NAME = "Name";
	private static final String CREATE_TABLE =  "CREATE TABLE "+TABLE_NAME+" ("+UID+" INTEGER PRIMARY KEY AUTOINCREMENT, "+NAME+" VARCHAR(50));";
	private static final String DROP_TABLE =  "DROP TABLE "+TABLE_NAME+" IF EXISTS";
	private Context context;
	public mtsDatabaseHelper(Context context)
	{
		super(context,DATABASE_NAME,null,DATABASE_VERSION);
		  this.context = context;
		  Message.message(context, "Constructor called");
	}

	public void onCreate(SQLiteDatabase db)
	{
		// TODO Auto-generated method stub
        try
        {
        db.execSQL(CREATE_TABLE);
        Message.message(context, "On Create called");
        }
        catch(SQLException e)
        {
                        Message.message(context, ""+e);
        }


	}

	public void onUpgrade(SQLiteDatabase db, int oldversion, int newversion) 
	{
		// TODO Auto-generated method stub
        try 
        {
                        Message.message(context, "On Upgrade called");
                        db.execSQL(DROP_TABLE);
                        onCreate(db);
        } catch (SQLException e) 
        {
                        // TODO Auto-generated catch block
                        Message.message(context, ""+e);
        }


	}

}

public class MainActivity extends Activity 
{
	mtsDatabaseHelper mtsdatabasehelper;
    <a href="/Members/override">@Override</a>
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        mtsdatabasehelper = new mtsDatabaseHelper(this);
        SQLiteDatabase sqlitdatabase =   mtsdatabasehelper.getWritableDatabase();

    }


Please help

modified 17-Jan-14 9:07am.

QuestionXamarin vs Eclipse/Java Pin
Paul Conrad14-Jan-14 12:52
professionalPaul Conrad14-Jan-14 12:52 
AnswerRe: Xamarin vs Eclipse/Java Pin
Richard MacCutchan14-Jan-14 22:02
mveRichard MacCutchan14-Jan-14 22:02 
GeneralRe: Xamarin vs Eclipse/Java Pin
Paul Conrad15-Jan-14 5:35
professionalPaul Conrad15-Jan-14 5:35 
GeneralRe: Xamarin vs Eclipse/Java Pin
Serge Desmedt16-Feb-14 1:10
professionalSerge Desmedt16-Feb-14 1:10 
GeneralRe: Xamarin vs Eclipse/Java Pin
Paul Conrad16-Feb-14 17:19
professionalPaul Conrad16-Feb-14 17:19 
Questionproject Pin
salkhan78612-Jan-14 8:00
salkhan78612-Jan-14 8:00 
AnswerRe: project Pin
Richard MacCutchan12-Jan-14 9:44
mveRichard MacCutchan12-Jan-14 9:44 
GeneralRe: project Pin
salkhan78613-Jan-14 23:17
salkhan78613-Jan-14 23:17 
GeneralRe: project Pin
Richard MacCutchan13-Jan-14 23:20
mveRichard MacCutchan13-Jan-14 23:20 
SuggestionRe: project Pin
Paul Conrad14-Jan-14 7:23
professionalPaul Conrad14-Jan-14 7:23 
Suggestionhelp meee Pin
salkhan78611-Jan-14 7:29
salkhan78611-Jan-14 7:29 
GeneralRe: help meee Pin
Richard MacCutchan11-Jan-14 22:15
mveRichard MacCutchan11-Jan-14 22:15 
Questionproject Pin
salkhan78611-Jan-14 7:19
salkhan78611-Jan-14 7:19 
Questiongoogle maps Pin
Member 102838867-Jan-14 23:55
Member 102838867-Jan-14 23:55 
Questionrecognize strings Pin
Member 104222557-Jan-14 8:12
Member 104222557-Jan-14 8:12 
QuestionGetting start in java mobile for android Pin
R_soft3-Jan-14 22:35
R_soft3-Jan-14 22:35 
AnswerRe: Getting start in java mobile for android Pin
Richard MacCutchan3-Jan-14 22:45
mveRichard MacCutchan3-Jan-14 22:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.