Results 1 to 3 of 3
  1. #1
    francojava1 is offline Member
    Join Date
    Sep 2010
    Posts
    26
    Rep Power
    0

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

  2. #2
    chyrl is offline Senior Member
    Join Date
    Mar 2010
    Location
    Manila, Philippines
    Posts
    257
    Rep Power
    5

    Default

    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.

  3. #3
    francojava1 is offline Member
    Join Date
    Sep 2010
    Posts
    26
    Rep Power
    0

    Default 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

  1. Android
    By sspkiet in forum Android
    Replies: 1
    Last Post: 09-03-2010, 02:14 AM
  2. Replies: 1
    Last Post: 06-30-2008, 08:14 AM
  3. Java 1.4 api replace for javax.activity ( java 1.5)
    By agrawal27 in forum Advanced Java
    Replies: 0
    Last Post: 12-17-2007, 08:41 PM
  4. Learning Activity Management System 2.0.3
    By levent in forum Java Software
    Replies: 0
    Last Post: 06-05-2007, 12:44 PM
  5. Learning Activity Management System 2.0
    By levent in forum Java Software
    Replies: 0
    Last Post: 05-16-2007, 06:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •