This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.photodiary; | |
import android.content.Context; | |
import android.view.*; | |
import android.app.*; | |
import android.widget.*; | |
import java.util.*; | |
public class DiaryAdapter extends BaseAdapter { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.photodiary; | |
import android.os.Bundle; | |
import android.provider.MediaStore; | |
import android.app.Activity; | |
import android.content.Intent; | |
import android.graphics.Bitmap; | |
import android.view.Menu; | |
import android.view.MenuItem; | |
import android.view.View; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
08-29 18:07:47.076: E/AndroidRuntime(3184): FATAL EXCEPTION: main | |
08-29 18:07:47.076: E/AndroidRuntime(3184): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1888, result=-1, data=Intent { act=inline-data (has extras) }} to activity {com.example.photodiary/com.example.photodiary.NewEntryActivity}: java.lang.NullPointerException | |
08-29 18:07:47.076: E/AndroidRuntime(3184): at android.app.ActivityThread.deliverResults(ActivityThread.java:3319) | |
08-29 18:07:47.076: E/AndroidRuntime(3184): at android.app.ActivityThread.handleSendResult(ActivityThread.java:3362) | |
08-29 18:07:47.076: E/AndroidRuntime(3184): at android.app.ActivityThread.access$1100(ActivityThread.java:141) | |
08-29 18:07:47.076: E/AndroidRuntime(3184): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1282) | |
08-29 18:07:47.076: E/AndroidRuntime(3184): at android.os.Handler.dispatchMessage(Handler.java:99) | |
08-29 18:07:47.076: E/AndroidRuntime(3184): at android.os.Looper.loop(Looper.java:137) | |
08-29 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// swap the keybindings for paste and paste_and_indent | |
{ "keys": ["super+v"], "command": "paste_and_indent" }, | |
{ "keys": ["super+shift+v"], "command": "paste" } |
OlderNewer