Why won't this work? Just trying to pass a editable string from one activity to another. But I cannot get it to work. Does the string passed through the intent have to be pre defined?
I have two activities:
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
public void click(View view) {
Intent intent= new Intent(this, TranslucentActivity.class);
startActivity(intent);
}
}
public class TranslucentActivity extends Activity
what are the reasons that would affect my intent not to load the next activity i've fixed my manifest the intent is correct the button is okey and the activity is good basically i don't have any errors or i don't see any can anyone clear this things for me i need help..this is my intent if you would like to check it
final Intent intent = new Intent();
intent.setClass(MainActivity.this
I am trying to send information from my main activity class to another class in my app package. The information is used to update an AlertDialog automatically.
I have next problem:
I create a custom BroadcastReceiver and register it in main activity onCreate handler:
public class MainActivity extends ListActivity {
private static final LogReceiver logReceiver = new LogReceiver();
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
LocalBroadcastManager.getInstance(this).registerReceiver(logRece
In my application, I have created a notification feature through which Activity_1 gets called.
i want to use chart in android, i use this framework http://www.achartengine.org/
this class will use when start:
public class ChartDemo extends ListActivity {
/** Called when the activity is first created.
Hi friends i have a problem...
Actually i use this code to open my application in certain time..the app is working fine but when the device is in sleep mode not working..??
public class MyBroadCastReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context ctx, Intent intent) {
Intent intent = new Intent(ctx, ActivityMain.class);
intent.addFlags(Intent.FL
I'm trying to pass something from one class to my MainActivity, but it doesn't seem to work, I don't understand why.
I have my GPS Tracker on another class (not the MainActivity) in order to reuse it.
When the location changes, I want my other class to call a method from within the MainActivity to update my UI.
I summarized my code like that :
My MAIN ACTIVITY :
public class MainActivity exten