I ActivityTaskManager: Displayed com.Slack/.ui.walkthrough.WalkthroughActivity: +3s59ms
I ActivityTaskManager: Displayed com.Slack/.ui.HomeActivity: +1s946ms
| adb help // List all comands | |
| == Adb Server | |
| adb kill-server | |
| adb start-server | |
| == Adb Reboot | |
| adb reboot | |
| adb reboot recovery | |
| adb reboot-bootloader |
| // When initializing Criteo | |
| try { | |
| // initialization code | |
| } catch (Exception e) { | |
| // all exceptions will be caught (the checked and unchecked) | |
| } | |
| // when accessing Criteo object | |
| @Nullable | |
| private Criteo getCriteoSafely() { |
| <?xml version="1.0" encoding="utf-8"?> | |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| package="com.xxx" | |
| android:installLocation="auto" | |
| android:versionCode="30" | |
| android:versionName="1.0" > | |
| <uses-sdk android:minSdkVersion="7" android:targetSdkVersion="15" /> | |
| <uses-permission android:name="android.permission.INTERNET" /> |
| Intent intent = new Intent(MainScreen.this, TabbedView.class); | |
| Bundle bundle = new Bundle(); | |
| bundle.putParcelableArray(HEADLINES_FOR_SPORT_EXTRA, existingSportHeadlines.get(selectedSportName)); | |
| bundle.putParcelableArray(SCORES_FOR_SPORT_EXTRA, existingSportScores.get(selectedSportName)); | |
| bundle.putParcelableArray(SCHEDULE_FOR_SPORT_EXTRA, existingSportSchedule.get(selectedSportName)); | |
| intent.putExtras(bundle); | |
| intent.putExtra(SPORT_NAME_EXTRA, selectedSportName); |
| def perform | |
| begin | |
| code = IronWorkerNG::Code::Ruby.new | |
| code.merge_worker File.dirname(__FILE__) + '/c2dm_iron_worker.rb' | |
| code.merge_dir '../config' | |
| code.merge_gem 'activerecord' | |
| # Initialize the client | |
| client = IronWorkerNG::Client.new(:token => 'xxx', :project_id => 'xxx') | |
| # Upload the code |
| puts "IronWorker::Starting C2dmIronWorker at #{Time.now}" | |
| puts "IronWorker::We got following params #{params}" | |
| uri = URI.parse('https://android.clients.google.com/c2dm/send') | |
| params['c2dms'].each do |c| | |
| data = {} | |
| data['registration_id'] = c['c2dm']['registration_id'] | |
| data['collapse_key'] = `uuidgen`.strip.gsub('-', '') | |