15,907,396 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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?