,  ,

Context - Android


 
Android list, http://www.cyberforum.ru/android-dev/thread1521580.html
. , . . ...
Android , , , The Simpsons Tapped Out ( ), , 0, , ... http://www.cyberforum.ru/android-dev/thread1521477.html
Android
, , View, , , ,...
Android SimpleCursorAdapter?
SimpleCursorAdapter (deprecated) ?? 2 Camera ...
Android if() switch() http://www.cyberforum.ru/android-dev/thread1521333.html
if switch? ListPreference typeScreenTimeOut = (ListPreference) findPreference("pref_type_screen_time_out_tile"); final EditTextPreference subscriptionPref =...
Android Fragment View View?? View ??

Amrel
9 / 9 / 2
: 14.05.2015
: 62
29.08.2015, 16:03  []
!
YuraAAA
application android:name.
:
XML
1
2
        <activity android:name=".DbNumberMessage">
        </activity>

SQL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
08-29 15:56:53.128    7455-7468/com.mediatek.atci.service E/ATCIJ﹕ Couldn't find 'atci-serv-fw' socket after 16 times, continuing to retry silently
08-29 15:57:50.801      502-518/system_process E/CellLocation﹕ create GsmCellLocation
08-29 15:57:50.802      502-519/system_process E/CellLocation﹕ create GsmCellLocation
08-29 15:57:50.807      502-519/system_process E/CellLocation﹕ create GsmCellLocation
08-29 15:58:26.714      502-559/system_process E/InputDispatcher﹕ channel '41c61400 org.example.harrix.smsreader/org.example.harrix.smsreader.MainSmsList (server)' ~ Channel is unrecoverably broken and will be disposed!
08-29 15:58:26.714      502-559/system_process E/InputDispatcher﹕ channel '41c91610 org.example.harrix.smsreader/org.example.harrix.smsreader.MainSmsList (server)' ~ Channel is unrecoverably broken and will be disposed!
08-29 15:58:26.799      502-522/system_process E/ActivityManager﹕ Error getting package info: org.example.harrix.smsreader
    android.content.pm.PackageManager$NameNotFoundException: org.example.harrix.smsreader
            at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:80)
            at com.android.server.am.ActivityManagerService.startProcessLocked(ActivityManagerService.java:2280)
            at com.android.server.am.ActivityManagerService.startProcessLocked(ActivityManagerService.java:2223)
            at com.android.server.am.ActivityStack.startSpecificActivityLocked(ActivityStack.java:867)
            at com.android.server.am.ActivityStack.resumeTopActivityLocked(ActivityStack.java:1903)
            at com.android.server.am.ActivityStack.resumeTopActivityLocked(ActivityStack.java:1493)
            at com.android.server.am.ActivityStack.finishCurrentActivityLocked(ActivityStack.java:4112)
            at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:4010)
            at com.android.server.am.ActivityManagerService.forceStopPackageLocked(ActivityManagerService.java:4411)
            at com.android.server.am.ActivityManagerService.access$400(ActivityManagerService.java:179)
            at com.android.server.am.ActivityManagerService$2.handleMessage(ActivityManagerService.java:1225)
            at android.os.Handler.dispatchMessage(Handler.java:99)
            at android.os.Looper.loop(Looper.java:153)
            at com.android.server.am.ActivityManagerService$AThread.run(ActivityManagerService.java:1575)
08-29 15:58:26.804      502-522/system_process E/ActivityManager﹕ Error getting package info: org.example.harrix.smsreader
    android.content.pm.PackageManager$NameNotFoundException: org.example.harrix.smsreader
            at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:80)
            at com.android.server.am.ActivityManagerService.startProcessLocked(ActivityManagerService.java:2280)
            at com.android.server.am.ActivityManagerService.startProcessLocked(ActivityManagerService.java:2223)
            at com.android.server.am.ActivityStack.startSpecificActivityLocked(ActivityStack.java:867)
            at com.android.server.am.ActivityStack.resumeTopActivityLocked(ActivityStack.java:1903)
            at com.android.server.am.ActivityStack.resumeTopActivityLocked(ActivityStack.java:1493)
            at com.android.server.am.ActivityStack.finishCurrentActivityLocked(ActivityStack.java:4112)
            at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:4010)
            at com.android.server.am.ActivityManagerService.forceStopPackageLocked(ActivityManagerService.java:4411)
            at com.android.server.am.ActivityManagerService.access$400(ActivityManagerService.java:179)
            at com.android.server.am.ActivityManagerService$2.handleMessage(ActivityManagerService.java:1225)
            at android.os.Handler.dispatchMessage(Handler.java:99)
            at android.os.Looper.loop(Looper.java:153)
            at com.android.server.am.ActivityManagerService$AThread.run(ActivityManagerService.java:1575)
08-29 15:58:27.279    5460-5460/com.android.mms E/SpannableStringBuilder﹕ SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
08-29 15:58:27.285    5460-5460/com.android.mms E/SpannableStringBuilder﹕ SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
08-29 15:58:27.300    5460-5460/com.android.mms E/SpannableStringBuilder﹕ SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
08-29 15:58:27.315    5460-5460/com.android.mms E/SpannableStringBuilder﹕ SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
08-29 15:58:27.330    5460-5460/com.android.mms E/SpannableStringBuilder﹕ SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
08-29 15:58:27.345    5460-5460/com.android.mms E/SpannableStringBuilder﹕ SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
08-29 15:58:28.278    7558-7558/com.android.vending E/dalvikvm﹕ Could not find class 'android.app.AppOpsManager', referenced from method com.google.android.gms.common.GooglePlayServicesUtil.zza
08-29 15:58:28.505      880-880/com.google.process.gapps E/NetworkScheduler.SchedulerReceiver﹕ Invalid parameter app
08-29 15:58:28.505      880-880/com.google.process.gapps E/NetworkScheduler.SchedulerReceiver﹕ Invalid package name : Perhaps you didn't include a PendingIntent IN the extras?
08-29 15:58:28.606    7602-7602/com.estrongs.android.pop E/ObjectHelper﹕ Can't find method:setCompatibilityInfo
08-29 15:58:28.875      880-880/com.google.process.gapps E/NetworkScheduler.SchedulerReceiver﹕ Invalid parameter app
08-29 15:58:28.875      880-880/com.google.process.gapps E/NetworkScheduler.SchedulerReceiver﹕ Invalid package name : Perhaps you didn't include a PendingIntent IN the extras?
08-29 15:58:36.040      502-514/system_process E/CellLocation﹕ CREATE GsmCellLocation
08-29 15:58:36.042      502-519/system_process E/CellLocation﹕ CREATE GsmCellLocation
08-29 15:58:36.044      502-519/system_process E/CellLocation﹕ CREATE GsmCellLocation
08-29 15:58:36.153      830-987/com.google.process.location E/CellLocation﹕ CREATE GsmCellLocation
08-29 15:58:36.161     862-1007/com.google.android.gms.persistent E/CellLocation﹕ CREATE GsmCellLocation
08-29 15:58:36.173     862-1007/com.google.android.gms.persistent E/CellLocation﹕ CREATE GsmCellLocation
08-29 15:58:40.234    7710-7710/org.example.harrix.smsreader E/AndroidRuntime﹕ FATAL EXCEPTION: main
    java.lang.RuntimeException: Unable TO START activity ComponentInfo{org.example.harrix.smsreader/org.example.harrix.smsreader.MainActivity}: java.lang.NullPointerException
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2306)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2358)
            at android.app.ActivityThread.access$600(ActivityThread.java:156)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1340)
            at android.os.Handler.dispatchMessage(Handler.java:99)
            at android.os.Looper.loop(Looper.java:153)
            at android.app.ActivityThread.main(ActivityThread.java:5297)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:511)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
            at dalvik.system.NativeStart.main(Native Method)
     Caused BY: java.lang.NullPointerException
            at android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:229)
            at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:224)
            at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:164)
            at org.example.harrix.smsreader.DbNumberMessage.loadDB(DbNumberMessage.java:44)
            at org.example.harrix.smsreader.MainActivity.onCreate(MainActivity.java:35)
            at android.app.Activity.performCreate(Activity.java:5122)
            at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1081)
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2270)
************at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2358)
************at android.app.ActivityThread.access$600(ActivityThread.java:156)
************at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1340)
************at android.os.Handler.dispatchMessage(Handler.java:99)
************at android.os.Looper.loop(Looper.java:153)
************at android.app.ActivityThread.main(ActivityThread.java:5297)
************at java.lang.reflect.Method.invokeNative(Native Method)
************at java.lang.reflect.Method.invoke(Method.java:511)
************at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
************at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
************at dalvik.system.NativeStart.main(Native Method)
08-29 15:58:40.341      502-522/system_process E/AppErrorDialog﹕ Failed TO GET ILowStorageHandle instance
08-29 15:58:59.401      502-514/system_process E/CellLocation﹕ CREATE GsmCellLocation
08-29 15:58:59.402      502-519/system_process E/CellLocation﹕ CREATE GsmCellLocation
08-29 15:58:59.404      502-519/system_process E/CellLocation﹕ CREATE GsmCellLocation
08-29 15:58:59.511      830-987/com.google.process.location E/CellLocation﹕ CREATE GsmCellLocation
08-29 15:58:59.524     862-1007/com.google.android.gms.persistent E/CellLocation﹕ CREATE GsmCellLocation
08-29 15:58:59.530     862-1007/com.google.android.gms.persistent E/CellLocation﹕ CREATE GsmCellLocation
:
Java
1
2
3
       dbHelper = new DBHelper(this);
 
        SQLiteDatabase db = dbHelper.getWritableDatabase(); // 44 
0
 
- , ,
-
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
@Mail.ru