Android Question AppUpdating : Error in manifest

GMan

Well-Known Member
Licensed User
Longtime User
After loading the AppUpdate example the IDE gives me an error:
B4X:
Error parsing manifest:
Modul eu.dgconsulting.appupdating.newinst2_br nicht gefunden (Manifesteditor)
I find a depending part in the manifest, but wihout the "_br" at the end of it:
B4X:
AddReceiverText(eu.dgconsulting.appupdating.newinst2,
  <intent-filter>
  <action android:name="android.intent.action.PACKAGE_REPLACED" />
    <data android:scheme="package" />
  </intent-filter>)

I also read mostly all in the forum, but didnt find a solution
 

GMan

Well-Known Member
Licensed User
Longtime User
Found the solution, changed the manifest text part to this:

B4X:
AddReceiverText(newinst2,
  <intent-filter>
  <action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
    <data android:scheme="package" />
  </intent-filter>)
 
Upvote 0

GMan

Well-Known Member
Licensed User
Longtime User
Now it works (so far, but no installing after checking and downoad (all successful).
B4X:
java.lang.IllegalArgumentException: Failed to find configured root that contains /data/data/tricon.mbc.de/files/shared/tmp.apk
 
Upvote 0

GMan

Well-Known Member
Licensed User
Longtime User
OK, cutted the errors out, all worked well:

B4X:
---- AppUpdating.ReadCurVN
    Current Version: 3.15
UpdateComplete - time: 15:27:09
---- AppUpdating.ReadWebVN
IsValidComplete start
before
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
after

Webserver's info file content:
ver=3.25

<ChangeLog>
ver 3.25 - bug fixes
</ChangeLog>
<FileSize>
1875098
</FileSize>

Web version number: 3.25
UpdateComplete - time: 15:27:12
---- AppUpdating.DownloadApk
Donload ok? true

Copy2 (saving) ok? TRUE
    new apk version downloaded and ready to install
UpdateComplete - time: 15:27:31

---- AppUpdating.InstallApk
    user asked to install new apk
UpdateComplete - time: 15:27:36
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **

but:
- then the App-Installer opens and asked for updating
- I granted YES, it installs but....after i click OPEN after installing NOTHING happens.

The new App does not start itself and when i start the installed (updated?) app its updated, but shows the old version....
 
Last edited:
Upvote 0

udg

Expert
Licensed User
Longtime User
Hi @GMan , did you solved last problem?

I'm not sure to understand what happens when you confirm the updating operation. Does it somewhat freeze (I mean, not app rebooting with the new version is happening)? Maybe a new OS restriction?

Your last sentence: does it refer to manually launching the app from the Home screen? If yes, how can it be both updated and showing the old version number?
 
Last edited:
Upvote 0

GMan

Well-Known Member
Licensed User
Longtime User
No, it doesnt freeze.
I click INSTALL, it installs
I click (after that) OPEN to start.

But it didnt.
WHen i look at the "taskmanager" i see the App (without startsecreen) in the back.
When i click THAT one, ist starts

I made an Testapp with an extra button on it that will be downloaded.
I am running local a version without that button - after updaten (as described here) the button is there but: shows old version
 
Upvote 0
Top