Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Side by Side Diff: platform_tools/android/app/src/com/skia/SkiaSampleActivity.java

Issue 15855006: prepare skia for shared library build on android (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rebasing Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright 2012 Google Inc. 2 * Copyright 2012 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 package com.skia; 8 package com.skia;
9 9
10 import android.app.ActionBar; 10 import android.app.ActionBar;
(...skipping 24 matching lines...) Expand all
35 @Override 35 @Override
36 public void onCreate(Bundle savedInstanceState) { 36 public void onCreate(Bundle savedInstanceState) {
37 super.onCreate(savedInstanceState); 37 super.onCreate(savedInstanceState);
38 38
39 setContentView(R.layout.layout); 39 setContentView(R.layout.layout);
40 mTitle = (TextView) findViewById(R.id.title_view); 40 mTitle = (TextView) findViewById(R.id.title_view);
41 mSampleView = new SkiaSampleView(this); 41 mSampleView = new SkiaSampleView(this);
42 mSlideList = new ArrayAdapter<String>(this, android.R.layout.simple_expa ndable_list_item_1); 42 mSlideList = new ArrayAdapter<String>(this, android.R.layout.simple_expa ndable_list_item_1);
43 43
44 try { 44 try {
45 System.loadLibrary("skia_android");
45 System.loadLibrary("SampleApp"); 46 System.loadLibrary("SampleApp");
46 47
47 LinearLayout holder = (LinearLayout) findViewById(R.id.holder); 48 LinearLayout holder = (LinearLayout) findViewById(R.id.holder);
48 holder.addView(mSampleView, new LinearLayout.LayoutParams( 49 holder.addView(mSampleView, new LinearLayout.LayoutParams(
49 ViewGroup.LayoutParams.MATCH_PARENT, 50 ViewGroup.LayoutParams.MATCH_PARENT,
50 ViewGroup.LayoutParams.MATCH_PARENT)); 51 ViewGroup.LayoutParams.MATCH_PARENT));
51 52
52 setupActionBar(); 53 setupActionBar();
53 54
54 } catch (UnsatisfiedLinkError e) { 55 } catch (UnsatisfiedLinkError e) {
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 (DownloadManager) getSystemService(Context.DOWNLOAD_SERVICE); 192 (DownloadManager) getSystemService(Context.DOWNLOAD_SERVICE);
192 new Thread("Add PDF to downloads") { 193 new Thread("Add PDF to downloads") {
193 @Override 194 @Override
194 public void run() { 195 public void run() {
195 final String mimeType = "application/pdf"; 196 final String mimeType = "application/pdf";
196 manager.addCompletedDownload(title, desc, true, mimeType, path, length, true); 197 manager.addCompletedDownload(title, desc, true, mimeType, path, length, true);
197 } 198 }
198 }.start(); 199 }.start();
199 } 200 }
200 } 201 }
OLDNEW
« no previous file with comments | « platform_tools/android/app/src/com/skia/SkiaIntentService.java ('k') | platform_tools/android/bin/android_setup.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698