android schedule task to execute at specific time daily-ThrowExceptions

Exception or error: I am wanting to change my ringtone volume at specific time each day. I used a calendar to specify the time, and I am attempting to use alarmManager to execute it. Here is what I have. (I am a noobie go easy on me) package com.example.ringervolume.app; import android.app.Activity; import android.app.AlarmManager; import android.app.PendingIntent; …

android – Passing Bitmap to Another activity ends in RunTimeException-ThrowExceptions

Exception or error: I am trying to pass Bitmap to another Activity, and I am displaying the same image from the other Activity using ImageView . And this is how I pass the Bitmap. protected void onActivityResult(int requestCode, int resultCode, Intent data) { // TODO Auto-generated method stub super.onActivityResult(requestCode, resultCode, data); if (resultCode == RESULT_OK …

android – setRepeating() of AlarmManager repeats after 1 minute no matter what the time is set (5 seconds in this case, API 18+)-ThrowExceptions

Exception or error: I have set the repeat time to 5 seconds. The first toast appears after 5 seconds, but all the next once repeat after 1 minute. I tried the code with setRepeating() as well, it still doesn’t work. here is my code: public void constructJob(){ Intent alertIntent = new Intent(this, AlarmManagerService.class); PendingIntent pendingIntent …

android – When I run Thread second time: java.lang.IllegalThreadStateException: Thread already started-ThrowExceptions

Exception or error: This question already has answers here: Why does an IllegalThreadStateException occur when Thread.start is called again (7 answers) Closed 6 years ago. I have Thrad and Handler: Handler handler = new Handler() { @Override public void handleMessage(android.os.Message msg) { super.handleMessage(msg); //do somethink } }; Thread thread = new Thread(new Runnable() { @Override …