trananh1992 / auto-update-apk-client

Automatically exported from code.google.com/p/auto-update-apk-client
0 stars 0 forks source link

null update problem #45

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is probably more user training than an issue, but I don't see a forum or 
anywhere to ask questions or get help other than here...so I will post.

I have developed a library throught a project in eclipse that i use with most 
of my apps.  Instead of adding your source files to each project, i just added 
it to the library instead.  Now I am getting these "null update" issues.  In my 
logcat I see the following complaint "unable to find application label".   Here 
is my logcat output:

05-23 11:41:16.058: W/AutoUpdateApk(3866): unable to find application label
05-23 11:41:16.097: V/AutoUpdateApk(3866): md5sum: 
fa4e34c1675483a218133536fb5a40b5
05-23 11:41:16.175: V/AutoUpdateApk(3866): checking if there's update on the 
server
05-23 11:41:17.894: V/AutoUpdateApk(3866): got a reply from update server
05-23 11:41:19.636: V/AutoUpdateApk(3866): got a package from update server
05-23 11:41:38.417: V/AutoUpdateApk(3866): update check finished in 22219ms
05-23 11:41:38.488: V/AutoUpdateApk(3866): md5sum: 
1e1db310669afbe21ed0e0af1dd164ec
05-23 11:42:31.089: W/AutoUpdateApk(3866): unable to find application label
05-23 11:43:01.574: W/AutoUpdateApk(3866): unable to find application label

I would really like to avoid having to the source files in every application.

Please advise

Original issue reported on code.google.com by bric...@gmail.com on 23 May 2013 at 11:52

GoogleCodeExporter commented 9 years ago
There are two different approaches to this problem:

1. pass the correct context, so the AutoUpdateAPK can use this context to find 
the application label

2. set the application label manually using .setName(String name)

Original comment by lenik.terenin on 27 May 2013 at 8:21