Contetn provider problem

Put your problem here if it does not fit any of the other categories.

Contetn provider problem

Postby jagtap.jj1 » Tue Oct 14, 2008 8:13 am

Hi

I have created mine content provider for storing note just like notepad application.

I am using this mime type "vnd.android.cursor.dir/vnd.igloo.note"
But when I create note it gives exception "process 'package name' has stoped unexpectedly" ;Even though it
creates untitled note(showing list of untitled note in list view) , and when I try to open untitled note it again gives error "process 'package name' has stoped unexpectedly".

The Edit, insert, and pick actions are not working, if anybody know the solution plz reply me.

In "vnd.google.note" note is type in android for supporting note it would be any name.

In Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/notes"); notes is what ? Is it name of Db table?

Plz clear me if some one know.






Regards
Jagtap jalandar
Mail: jagtap.jj@gmail.com
java-android developer
User avatar
jagtap.jj1
Senior Developer
Senior Developer
 
Posts: 124
Joined: Fri Aug 22, 2008 11:52 am
Location: India(Mumbai)

Top

Postby MrSnowflake » Tue Oct 14, 2008 8:23 am

Look through you LogCat as there will be a lot of info about the problem, like exceptions and such.
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Postby jagtap.jj1 » Tue Oct 14, 2008 11:45 am

MrSnowflake wrote:Look through you LogCat as there will be a lot of info about the problem, like exceptions and such.


This what logcat showing, I am not able to get it. If Do u have any suggestions for this logcat reply me

D/ActivityManager( 49): Uninstalling process igloo1.android.activenote
D/ActivityManager( 49): Force removing process ProcessRecord{43494b38 igloo1.android.activenote/10017} (igloo1.android.activenote/10017)
D/ActivityManager( 49): Received spurious death notification for thread androi
d.os.BinderProxy@434e14e8
I/ActivityManager( 49): Starting activity: Intent { action=android.intent.acti
on.MAIN categories={android.intent.category.HOME} flags=0x10200000 comp={com.and
roid.launcher/com.android.launcher.Launcher} }
I/ActivityManager( 49): Starting activity: Intent { action=android.intent.acti
on.MAIN flags=0x10200000 comp={igloo1.android.activenote/igloo1.android.activeno
te.ActiveNoteList} }
I/ActivityManager( 49): Start proc igloo1.android.activenote for activity iglo
o1.android.activenote/.ActiveNoteList: pid=337 uid=10017 gids={}
I/ActivityManager( 49): Displayed activity igloo1.android.activenote/.ActiveNo
teList: 3469 ms
I/ActivityManager( 49): Starting activity: Intent { action=android.intent.acti
on.EDIT data=content://igloo1.android.activenote.ActiveNote_Pad/notes/14 comp={i
gloo1.android.activenote/igloo1.android.activenote.ActiveNoteEditor} }
I/ActivityManager( 49): Process igloo1.android.activenote (pid 337) has died.
I/ActivityManager( 49): Start proc igloo1.android.activenote for activity iglo
o1.android.activenote/.ActiveNoteList: pid=345 uid=10017 gids={}
I/ActivityManager( 49): Starting activity: Intent { action=android.intent.acti
on.EDIT data=content://igloo1.android.activenote.ActiveNote_Pad/notes/11 comp={i
gloo1.android.activenote/igloo1.android.activenote.ActiveNoteEditor} }
I/ActivityManager( 49): Process igloo1.android.activenote (pid 345) has died.
I/ActivityManager( 49): Start proc igloo1.android.activenote for activity iglo
o1.android.activenote/.ActiveNoteList: pid=353 uid=10017 gids={}
I/ActivityManager( 49): Starting activity: Intent { action=android.intent.acti
on.INSERT data=content://igloo1.android.activenote.ActiveNote_Pad/notes comp={ig
loo1.android.activenote/igloo1.android.activenote.ActiveNoteEditor} }
I/ActivityManager( 49): Process igloo1.android.activenote (pid 353) has died.
I/ActivityManager( 49): Start proc igloo1.android.activenote for activity iglo
o1.android.activenote/.ActiveNoteList: pid=361 uid=10017 gids={}

Regards
jagtap
Last edited by jagtap.jj1 on Tue Oct 14, 2008 11:54 am, edited 1 time in total.
java-android developer
User avatar
jagtap.jj1
Senior Developer
Senior Developer
 
Posts: 124
Joined: Fri Aug 22, 2008 11:52 am
Location: India(Mumbai)

Postby MrSnowflake » Tue Oct 14, 2008 11:52 am

Copy-paste more.
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Postby jagtap.jj1 » Sat Oct 18, 2008 1:20 pm

Thank you for your intrinsic suggestion of examining LogCat, after though scrutinizing logcat I got the solution.

Regards
jagtap
java-android developer
User avatar
jagtap.jj1
Senior Developer
Senior Developer
 
Posts: 124
Joined: Fri Aug 22, 2008 11:52 am
Location: India(Mumbai)

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 21 guests