Results 1 to 3 of 3
- 10-08-2010, 02:41 PM #1
Member
- Join Date
- Sep 2010
- Posts
- 26
- Rep Power
- 0
Help Please Override Activity with Android
Hello Everyone, Iam francojava1, who needs help with activity class in Android, here Iam most likely shown the codes.
package com.msi..flashlight;
import android.app.Activity;
import android.os.Bundle;
public class FlashLight extends Activity {
/** Called when the activity is first created . */
public void onCreate (Bundle savedInstanceState) {
/* here I don't have idea as create other activity. */
super.onCreate(savedInstanceState);
setContentView(R.layout.main );
}
}
This file was created automatically by the Android Developer Tools plug-in for Eclipse. Iam going to compile this project, but please need some new ideas.
Thanks for you cooperation.
- 10-08-2010, 07:35 PM #2
Senior Member
- Join Date
- Mar 2010
- Location
- Manila, Philippines
- Posts
- 257
- Rep Power
- 4
Try reading some tutorials and guidelines in the Android Developers - Dev Guide.
It helped me when I'm on that stage.Every project, package, class, method, variable, syntax, algorithm, etc.
are registered in my memory bank. Thanks to this thread.
- 10-12-2010, 06:35 PM #3
Member
- Join Date
- Sep 2010
- Posts
- 26
- Rep Power
- 0
Help please override activity with Android
Thanks dear friend cyhrl , Iam francojava1, who could compile this project successfully without errors. now looks my sample codes
package com.msi.flashlight;
import com.msi.flashlight.*;
import javax.activity.ActivityCompletedException;
import java.text.MessageFormat;
import java.awt.Container;
/**
*
* @param import android.app.PendingIntent;
* @param import android.os.Bundle;
* @param import android.app.Activity;
* @author User: Alfonso Franco explains about this android Java
* Application that makes a demo Flashlight word into an App.
* There are getting another activity as SendSMS and onCreate.
*/
public class Flashlight extends ActivityCompletedException{
private String MessageFormatandroidappActivity;
private String MessageFormatandroidosBundle;
/** Called when the activity is first created. */
public String getMessage(){
String.format("Android Flashlight, args");
return("1");
}
public void onCreate(MessageFormat savedInstanceState){
super.equals("savedInstanceState");
}
// Sends a SMS message to another device
private void sendSMS(String phoneNumber, String message) {
// The pendingIntent is just used to identify a target to invoke at a later time.
try{
String SENT = "SMS_SENT";
String DELIVERED= "SMS_DELIVERED";
String PendingIntent="0";
PendingIntent.getBytes("sentPI");
PendingIntent.valueOf("deliveredPI");
} catch(Exception ActivityCompleted){
}
}
// When the SMS has been sent
public void onReceive(Container Context, MessageFormat Intent1){
int getResultCode=1;
switch(getResultCode) {
case 1:
Container activity;
// SMS sent
break;
case 2:
Container smsManager;
// getBaseContext " Result_Error_Generic_Failure"
break;
case 3:
Container SMS
// "Result_Error_Radio_OFF"
break;
}
Default:
System.out.print("new IntentFilter SENT");
}
public static void main(String[] args){
System.out.print("Flashlight Activity Android Started");
}
}
Ok, I have downloaded the Android SDK in my project and xml associated with link android. Also, I read tutorial concern at mobiforge.mobi/developing/story/sms-messaging-android .
Thanks..
Similar Threads
-
Android
By sspkiet in forum AndroidReplies: 1Last Post: 09-03-2010, 01:14 AM -
Transaction has timed out due to no client activity for greater than {1} seconds
By Sayed in forum Advanced JavaReplies: 1Last Post: 06-30-2008, 07:14 AM -
Java 1.4 api replace for javax.activity ( java 1.5)
By agrawal27 in forum Advanced JavaReplies: 0Last Post: 12-17-2007, 07:41 PM -
Learning Activity Management System 2.0.3
By levent in forum Java SoftwareReplies: 0Last Post: 06-05-2007, 11:44 AM -
Learning Activity Management System 2.0
By levent in forum Java SoftwareReplies: 0Last Post: 05-16-2007, 05:02 AM


LinkBack URL
About LinkBacks

Bookmarks