Re: Encountered a problem on Android SQLite Database and ContentProvider - Tutorial, package.

112 views
Skip to first unread message

Lars Vogel

unread,
Jul 13, 2012, 1:09:05 AM7/13/12
to vog...@googlegroups.com
Hi,

I suggest to use the package name as suggested in the tutorial.

Best regards, Lars

2012/7/13 Mickhellelle <mishae...@gmail.com>:
> Hi I have encountered an error on part 4 of your tutorial using SQLite regarding the package name. Originally I have a package name (com.example.test) already but when I run the project the name of the package is changed to com.example.test.ImageDataSource and dataSource is the file that is needed to be created for the tutorial.
>
> Here is the error shown on the Logcat:
> 07-13 01:32:16.875: E/AndroidRuntime(292): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.test/com.example.test.ImageDataSource}: java.lang.InstantiationException: com.example.test.ImageDataSource
>
> Please guide me on what the error is about so I could make the tutorial work. Thanks in advance.
>
>
> --
> You received this message because you are subscribed to the Google Groups "vogella" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/vogella/-/W1aecr8wP0kJ.
> To post to this group, send email to vog...@googlegroups.com.
> To unsubscribe from this group, send email to vogella+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/vogella?hl=en.
>

Lars Vogel

unread,
Jul 24, 2012, 5:40:21 AM7/24/12
to vog...@googlegroups.com
Good to know that my tutorial examples work. If you use this as a
guide for your implementation you should be able to fix your error.

2012/7/16 Mickhellelle <mishae...@gmail.com>:
> On Friday, July 13, 2012 1:09:05 PM UTC+8, vogella wrote:
>> Hi,
>>
>> I suggest to use the package name as suggested in the tutorial.
>>
>> Best regards, Lars
>>
>> 2012/7/13 Mickhellelle &lt;mishae...@gmail.com&gt;:
>> &gt; Hi I have encountered an error on part 4 of your tutorial using SQLite regarding the package name. Originally I have a package name (com.example.test) already but when I run the project the name of the package is changed to com.example.test.ImageDataSource and dataSource is the file that is needed to be created for the tutorial.
>> &gt;
>> &gt; Here is the error shown on the Logcat:
>> &gt; 07-13 01:32:16.875: E/AndroidRuntime(292): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.test/com.example.test.ImageDataSource}: java.lang.InstantiationException: com.example.test.ImageDataSource
>> &gt;
>> &gt; Please guide me on what the error is about so I could make the tutorial work. Thanks in advance.
>> &gt;
>> &gt;
>> &gt; --
>> &gt; You received this message because you are subscribed to the Google Groups &quot;vogella&quot; group.
>> &gt; To view this discussion on the web visit https://groups.google.com/d/msg/vogella/-/W1aecr8wP0kJ.
>> &gt; To post to this group, send email to vog...@googlegroups.com.
>> &gt; To unsubscribe from this group, send email to vogella+u...@googlegroups.com.
>> &gt; For more options, visit this group at http://groups.google.com/group/vogella?hl=en.
>> &gt;
>
> Hi I have changed to your package name and it worked. But can I use the codes in my project? What must I do to make it work even though I did not use your package name?
>
> --
> You received this message because you are subscribed to the Google Groups "vogella" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/vogella/-/BuiUj9t4LA8J.
Reply all
Reply to author
Forward
0 new messages