14 |
import android.graphics.Bitmap; |
import android.graphics.Bitmap; |
15 |
import android.graphics.BitmapFactory; |
import android.graphics.BitmapFactory; |
16 |
import android.net.ConnectivityManager; |
import android.net.ConnectivityManager; |
17 |
|
import android.net.Uri; |
18 |
import android.os.Environment; |
import android.os.Environment; |
19 |
import android.util.Log; |
import android.util.Log; |
20 |
import android.widget.RemoteViews; |
import android.widget.RemoteViews; |
58 |
//views.setTextViewText(R.id.caption, newData.caption); |
//views.setTextViewText(R.id.caption, newData.caption); |
59 |
|
|
60 |
|
|
61 |
|
Intent viewIntent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse("http://www.ekstrabladet.dk/side9/")); |
62 |
|
|
63 |
|
|
64 |
//View single file |
//View single file |
74 |
//viewIntent.setClassName("com.android.camera", "com.android.camera.GalleryPicker"); |
//viewIntent.setClassName("com.android.camera", "com.android.camera.GalleryPicker"); |
75 |
|
|
76 |
|
|
77 |
Intent viewIntent = new Intent(); |
/*Intent viewIntent = new Intent(); |
78 |
viewIntent.addCategory(Intent.CATEGORY_LAUNCHER); |
viewIntent.addCategory(Intent.CATEGORY_LAUNCHER); |
79 |
viewIntent.setAction(Intent.ACTION_MAIN); |
viewIntent.setAction(Intent.ACTION_MAIN); |
80 |
viewIntent.setComponent(new ComponentName("com.android.camera", ".GalleryPicker")); |
viewIntent.setComponent(new ComponentName("com.android.camera", ".GalleryPicker")); |
81 |
viewIntent.setFlags(0x10200000); |
viewIntent.setFlags(0x10200000);*/ |
82 |
|
|
83 |
|
|
84 |
|
|
171 |
FileOutputStream fos = new FileOutputStream(file); |
FileOutputStream fos = new FileOutputStream(file); |
172 |
fos.write(imageData); |
fos.write(imageData); |
173 |
fos.close(); |
fos.close(); |
174 |
|
} else { |
175 |
|
Log.i(TAG, "sdcard is not mounted"); |
176 |
} |
} |
177 |
} |
} |
178 |
|
|