Upgrade to Pro — share decks privately, control downloads, hide ads and more …

O que há de novo no Android N

O que há de novo no Android N

Silvio Santos

July 07, 2016
Tweet

More Decks by Silvio Santos

Other Decks in Programming

Transcript

  1. JobScheduler js = (JobScheduler)context.getSystemService(
 Context.JOB_SCHEDULER_SERVICE);
 
 JobInfo job = new

    JobInfo.Builder(MY_BACKGROUND_JOB,
 new ComponentName(context, MyJobService.class))
 .setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED)
 .setRequiresCharging(true)
 .build(); js.schedule(job);
  2. 
 
 StorageManager sm = (StorageManager)getSystemService( Context.STORAGE_SERVICE); 
 StorageVolume volume

    = sm.getPrimaryVolume();
 Intent intent = volume.createAccessIntent( Environment.DIRECTORY_PICTURES);
 startActivityForResult(intent, request_code);
  3. JIT

  4. AOT

  5. ?