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.
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..