| android Programming Glossary: startactivityHow do I restart an Android Activity http://stackoverflow.com/questions/1397361/how-do-i-restart-an-android-activity  but the activity simply quits. public static void restartActivity Activity act Intent intent new Intent intent.setClass act act.getClass.. intent new Intent intent.setClass act act.getClass act.startActivity intent act.finish   android android activity   share improve.. my theme switcher like this Intent intent getIntent finish startActivity intent Basically I'm calling finish first and I'm using the.. 
 How do I pass data between activities in Android? http://stackoverflow.com/questions/2091465/how-do-i-pass-data-between-activities-in-android  intent.putExtra EXTRA_SESSION_ID sessionId startActivity intent The docs for Intents has more information look at the.. 
 How to send email from my Android application? http://stackoverflow.com/questions/2197741/how-to-send-email-from-my-android-application  of email i.putExtra Intent.EXTRA_TEXT body of email try startActivity Intent.createChooser i Send mail... catch android.content.ActivityNotFoundException.. 
 How can I open a URL in Android's web browser from my application? http://stackoverflow.com/questions/2201917/how-can-i-open-a-url-in-androids-web-browser-from-my-application  new Intent Intent.ACTION_VIEW Uri.parse download_link startActivity myIntent catch ActivityNotFoundException e Toast.makeText this.. Intent Intent.ACTION_VIEW Uri.parse http www.google.com startActivity browserIntent That works fine for me. As for the missing http.. 
 Launching Google Maps Directions via an intent on Android http://stackoverflow.com/questions/2662531/launching-google-maps-directions-via-an-intent-on-android  maps saddr 20.344 34.34 daddr 20.5666 45.345 startActivity intent You can use an actual street address instead of latitude.. 
 How to render PDF in Android http://stackoverflow.com/questions/2883355/how-to-render-pdf-in-android  pdf  intent.setFlags Intent.FLAG_ACTIVITY_CLEAR_TOP  try  startActivity intent   catch ActivityNotFoundException e  Toast.makeText OpenPdf.this.. 
 Android - How To Override the “Back” button so it doesn't Finish() my Activity? http://stackoverflow.com/questions/3141996/android-how-to-override-the-back-button-so-it-doesnt-finish-my-activity  setIntent.setFlags Intent.FLAG_ACTIVITY_NEW_TASK startActivity setIntent  return  However the above code still seems to allow.. 
 Android and MJPEG http://stackoverflow.com/questions/3205191/android-and-mjpeg  MAC myListView.getItemAtPosition position .toString  startActivity i   Second activity package com.test import com.test.mjpeg.mjpegsample.MjpegView... 
 Android Launch an application from another application http://stackoverflow.com/questions/3872063/android-launch-an-application-from-another-application 
 Install Application programmatically on Android http://stackoverflow.com/questions/4604239/install-application-programmatically-on-android  path to your.apk  application vnd.android.package archive startActivity promptInstall source Intent goToMarket new Intent Intent.ACTION_VIEW.. .setData Uri.parse market details id com.package.name startActivity goToMarket source However you cannot install .apks without user's.. 
 Android: install .apk programmatically [duplicate] http://stackoverflow.com/questions/4967669/android-install-apk-programmatically  PATH app.apk  .setType application android.com.app  startActivity promptInstall installation is not working catch IOException.. download app.apk application vnd.android.package archive startActivity intent That is correct now my autoupdate is working thanks for.. 
 Android YouTube app Play Video Intent http://stackoverflow.com/questions/574195/android-youtube-app-play-video-intent  work on a device but not the emulator per Lemmy's answer . startActivity new Intent Intent.ACTION_VIEW Uri.parse http www.youtube.com.. 
 Trying to attach a file from SD Card to email http://stackoverflow.com/questions/587917/trying-to-attach-a-file-from-sd-card-to-email  sendIntent.putExtra Intent.EXTRA_TEXT Enjoy the photo startActivity Intent.createChooser sendIntent Email So if I launch using the.. Intent.EXTRA_STREAM Uri.parse file sPhotoFileName startActivity Intent.createChooser emailIntent Send mail... From adb logcat.. 
 Android: Taking complete control of phone(kiosk mode), is it possible? How? http://stackoverflow.com/questions/7121508/android-taking-complete-control-of-phonekiosk-mode-is-it-possible-how 
 ViewPager and fragments ??what's the right way to store fragment's state? http://stackoverflow.com/questions/7951730/viewpager-and-fragments-whats-the-right-way-to-store-fragments-state  intent.putExtra Message.class.getName selectedMessage startActivity intent BasePagerActivity aka helper public class BasePagerActivity.. 
 android - need some clarifications of fragments vs activities and views http://stackoverflow.com/questions/10478233/android-need-some-clarifications-of-fragments-vs-activities-and-views  you press something in a Fragment you would typically call StartActivity with data on it. The intent is passed on to all fragments of.. 
 Application restart - Activity Entry Point http://stackoverflow.com/questions/11243019/application-restart-activity-entry-point  . As an example if your task stack looks like this StartActivity ActivityB ActivityC ActivityD and your task goes to the background.. 
 Android - restore last viewed Activity http://stackoverflow.com/questions/1450019/android-restore-last-viewed-activity  in a blank Activity at the beginning. Something like this StartActivity public class StartActivity extends Activity @Override public.. beginning. Something like this StartActivity public class StartActivity extends Activity @Override public void onCreate Bundle savedInstanceState.. 
 How can I use the animation framework inside the canvas? http://stackoverflow.com/questions/4938822/how-can-i-use-the-animation-framework-inside-the-canvas  import android.view.View public class StartActivity extends Activity @Override public void onCreate Bundle savedInstanceState.. 
 Images in ScrollView in android http://stackoverflow.com/questions/4990682/images-in-scrollview-in-android  LinearLayout And then use code to scroll it public class StartActivity extends Activity private LinearLayout container private int.. 
 Moving an image through a linearlayout http://stackoverflow.com/questions/5058449/moving-an-image-through-a-linearlayout  87px android layout_x 300px AbsoluteLayout LinearLayout StartActivity.java public class StartActivity extends Activity @Override protected.. LinearLayout StartActivity.java public class StartActivity extends Activity @Override protected void onCreate Bundle savedInstanceState.. 
 Make certain area of bitmap transparent on touch http://stackoverflow.com/questions/5368774/make-certain-area-of-bitmap-transparent-on-touch  import android.view.View public class StartActivity extends Activity @Override public void onCreate Bundle savedInstanceState.. 
 How do I restart an Android Activity http://stackoverflow.com/questions/1397361/how-do-i-restart-an-android-activity   How do I restart an Android Activity I tried the following but the activity simply quits. public static void restartActivity Activity act Intent intent new Intent intent.setClass act act.getClass act.startActivity intent act.finish   android android.. quits. public static void restartActivity Activity act Intent intent new Intent intent.setClass act act.getClass act.startActivity intent act.finish   android android activity   share improve this question  I did my theme switcher like this Intent intent.. android activity   share improve this question  I did my theme switcher like this Intent intent getIntent finish startActivity intent Basically I'm calling finish first and I'm using the exact same intent this activity was started with. That seems.. 
 How do I pass data between activities in Android? http://stackoverflow.com/questions/2091465/how-do-i-pass-data-between-activities-in-android 
 How to send email from my Android application? http://stackoverflow.com/questions/2197741/how-to-send-email-from-my-android-application  recipient@example.com i.putExtra Intent.EXTRA_SUBJECT subject of email i.putExtra Intent.EXTRA_TEXT body of email try startActivity Intent.createChooser i Send mail... catch android.content.ActivityNotFoundException ex Toast.makeText MyActivity.this There.. 
 How can I open a URL in Android's web browser from my application? http://stackoverflow.com/questions/2201917/how-can-i-open-a-url-in-androids-web-browser-from-my-application  than within my application I tried this try Intent myIntent new Intent Intent.ACTION_VIEW Uri.parse download_link startActivity myIntent catch ActivityNotFoundException e Toast.makeText this No application can handle this request Please install a webbrowser.. share improve this question  Try this Intent browserIntent new Intent Intent.ACTION_VIEW Uri.parse http www.google.com startActivity browserIntent That works fine for me. As for the missing http I'd just do something like this if url.startsWith http url.startsWith.. 
 Launching Google Maps Directions via an intent on Android http://stackoverflow.com/questions/2662531/launching-google-maps-directions-via-an-intent-on-android  Intent android.content.Intent.ACTION_VIEW Uri.parse http maps.google.com maps saddr 20.344 34.34 daddr 20.5666 45.345 startActivity intent You can use an actual street address instead of latitude and longitude. However this will give the user a dialog.. 
 How to render PDF in Android http://stackoverflow.com/questions/2883355/how-to-render-pdf-in-android  Intent.ACTION_VIEW  intent.setDataAndType path application pdf  intent.setFlags Intent.FLAG_ACTIVITY_CLEAR_TOP  try  startActivity intent   catch ActivityNotFoundException e  Toast.makeText OpenPdf.this   No Application Available to View PDF   Toast.LENGTH_SHORT.. 
 Android - How To Override the “Back” button so it doesn't Finish() my Activity? http://stackoverflow.com/questions/3141996/android-how-to-override-the-back-button-so-it-doesnt-finish-my-activity  Intent Intent.ACTION_MAIN setIntent.addCategory Intent.CATEGORY_HOME setIntent.setFlags Intent.FLAG_ACTIVITY_NEW_TASK startActivity setIntent  return  However the above code still seems to allow my Activity to be destroyed How can I stop my Activity from.. 
 Android and MJPEG http://stackoverflow.com/questions/3205191/android-and-mjpeg  i new Intent IntentTest.this OtherActivity.class i.putExtra MAC myListView.getItemAtPosition position .toString  startActivity i   Second activity package com.test import com.test.mjpeg.mjpegsample.MjpegView. import com.test.parser.JSONParse public.. 
 Android Launch an application from another application http://stackoverflow.com/questions/3872063/android-launch-an-application-from-another-application 
 Install Application programmatically on Android http://stackoverflow.com/questions/4604239/install-application-programmatically-on-android  new Intent Intent.ACTION_VIEW .setDataAndType Uri.parse file path to your.apk  application vnd.android.package archive startActivity promptInstall source Intent goToMarket new Intent Intent.ACTION_VIEW .setData Uri.parse market details id com.package.name.. source Intent goToMarket new Intent Intent.ACTION_VIEW .setData Uri.parse market details id com.package.name startActivity goToMarket source However you cannot install .apks without user's explicit permission not unless the device and your program.. 
 Android: install .apk programmatically [duplicate] http://stackoverflow.com/questions/4967669/android-install-apk-programmatically  promptInstall new Intent Intent.ACTION_VIEW .setData Uri.parse PATH app.apk  .setType application android.com.app  startActivity promptInstall installation is not working catch IOException e  Toast.makeText getApplicationContext Update error Toast.LENGTH_LONG.. Uri.fromFile new File Environment.getExternalStorageDirectory download app.apk application vnd.android.package archive startActivity intent That is correct now my autoupdate is working thanks for help and sorry for bother you.  share improve this answer.. 
 Android YouTube app Play Video Intent http://stackoverflow.com/questions/574195/android-youtube-app-play-video-intent 
 Trying to attach a file from SD Card to email http://stackoverflow.com/questions/587917/trying-to-attach-a-file-from-sd-card-to-email  Uri.parse file sdcard dcim Camera filename.jpg sendIntent.putExtra Intent.EXTRA_TEXT Enjoy the photo startActivity Intent.createChooser sendIntent Email So if I launch using the Gmail menu context It shows the attachment lets me type who.. sPhotoUri Uri.parse file sPhotoFileName emailIntent.putExtra Intent.EXTRA_STREAM Uri.parse file sPhotoFileName startActivity Intent.createChooser emailIntent Send mail... From adb logcat V DumbDumpersMain 3972 sPhotoUri file sdcard DumbDumpers DumbDumper.jpg.. 
 Android: Taking complete control of phone(kiosk mode), is it possible? How? http://stackoverflow.com/questions/7121508/android-taking-complete-control-of-phonekiosk-mode-is-it-possible-how 
 ViewPager and fragments ??what's the right way to store fragment's state? http://stackoverflow.com/questions/7951730/viewpager-and-fragments-whats-the-right-way-to-store-fragments-state  Intent intent new Intent this StreamActivity.class intent.putExtra Message.class.getName selectedMessage startActivity intent BasePagerActivity aka helper public class BasePagerActivity extends FragmentActivity BasePagerAdapter mPagerAdapter.. 
 android - need some clarifications of fragments vs activities and views http://stackoverflow.com/questions/10478233/android-need-some-clarifications-of-fragments-vs-activities-and-views 
 Application restart - Activity Entry Point http://stackoverflow.com/questions/11243019/application-restart-activity-entry-point  only the topmost activity in the task. In your case MainActivity . As an example if your task stack looks like this StartActivity ActivityB ActivityC ActivityD and your task goes to the background and Android kills the process when the user returns to.. 
 Android - restore last viewed Activity http://stackoverflow.com/questions/1450019/android-restore-last-viewed-activity  do a check then start the correct Activity... maybe even put in a blank Activity at the beginning. Something like this StartActivity public class StartActivity extends Activity @Override public void onCreate Bundle savedInstanceState super.onCreate savedInstanceState.. Activity... maybe even put in a blank Activity at the beginning. Something like this StartActivity public class StartActivity extends Activity @Override public void onCreate Bundle savedInstanceState super.onCreate savedInstanceState get last open.. 
 How can I use the animation framework inside the canvas? http://stackoverflow.com/questions/4938822/how-can-i-use-the-animation-framework-inside-the-canvas  android.graphics.Canvas import android.os.Bundle import android.text.format.Time import android.view.View public class StartActivity extends Activity @Override public void onCreate Bundle savedInstanceState super.onCreate savedInstanceState setContentView.. 
 Images in ScrollView in android http://stackoverflow.com/questions/4990682/images-in-scrollview-in-android  800dp android src @drawable sky_bgr ImageView LinearLayout LinearLayout And then use code to scroll it public class StartActivity extends Activity private LinearLayout container private int currentX private int currentY @Override public void onCreate.. 
 Moving an image through a linearlayout http://stackoverflow.com/questions/5058449/moving-an-image-through-a-linearlayout  @drawable greekship android maxWidth 176px android maxHeight 87px android layout_x 300px AbsoluteLayout LinearLayout StartActivity.java public class StartActivity extends Activity @Override protected void onCreate Bundle savedInstanceState super.onCreate.. 176px android maxHeight 87px android layout_x 300px AbsoluteLayout LinearLayout StartActivity.java public class StartActivity extends Activity @Override protected void onCreate Bundle savedInstanceState super.onCreate savedInstanceState setContentView.. 
 Make certain area of bitmap transparent on touch http://stackoverflow.com/questions/5368774/make-certain-area-of-bitmap-transparent-on-touch  import android.os.Bundle import android.view.MotionEvent import android.view.View public class StartActivity extends Activity @Override public void onCreate Bundle savedInstanceState super.onCreate savedInstanceState setContentView.. 
 |