Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Intent myIntent = new Intent(cxt, alarmView.class);
- myIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
- PendingIntent proximityIntent = PendingIntent.getActivity(cxt, records.get(pos).process,myIntent, 0);
- locationManager.addProximityAlert(records.get(pos).x,
- records.get(pos).y, records.get(pos).r, // metry
- -1, proximityIntent);
- @Override
- public void onCreate(Bundle savedInstanceState)
- {
- super.onCreate(savedInstanceState);
- /**** Turn the screen on and show your activity ****/
- android.view.Window window = getWindow();
- window.addFlags(android.view.WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);
- window.addFlags(android.view.WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);
- window.setContentView(R.layout.activity_alarm_view);
- /***************************************************/
- /**** Rest of your code as it is ****/
- /* ---------------------------- ****/
- /************************************/
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement