Click here to Skip to main content
15,907,396 members

Comments by Tiffany_Summers (Top 3 by date)

Tiffany_Summers 4-Jan-15 22:29pm View    
@Peter Leow:- I made a bit of adjustments and made my textplay activity as my launch activity and then it worked fine. After that i placed the intent in the textplay.java and ran the program. What happened is that when i run the program it doesn't show the textplay activity rather it jumps straight to myactivity. I have a feeling that i need to put some sort of sleep function such that it first launches the textplay and then sleeps for couple of seconds and then goes to the myactivity. I tried using the systemclock but it doesnt work. I get same results. This is what i tried-

package com.example.androidproject;

import android.app.Activity;
import android.os.Bundle;
import android.content.Intent;
/**
* Created by user on 05-01-2015.
*/
public class Textplay extends Activity {
@Override
protected void onCreate(Bundle flash) {
super.onCreate(flash);
setContentView(R.layout.web);
Systemclock.sleep(5000);
Intent intent = new Intent("com.example.androidproject.MYACTIVITY");
startActivity(intent);


}
}
Tiffany_Summers 4-Jan-15 21:42pm View    
@Peter Leow:- Thank you very much for your help. Do i have to change anything in the androidManifestfile or do i just make the changes you suggested.
Tiffany_Summers 3-Jan-15 17:03pm View    
@RyanDev:- cometchat is the one that i am looking at now. Do you have some suggestions?