Problem with preferenceactivity after updating to 2.30

qle

Member
Licensed User
Longtime User
Hi,
I have been using preferenceactivity with out problem for quite a while.

But since upgrading to 2.30, new projects get error
B4X:
android.content.ActivityNotFoundException: Unable to find explicit activity class {anywheresoftware.b4a.samples.preferenceactivity/anywheresoftware.b4a.objects.preferenceactivity}; have you declared this activity in your AndroidManifest.xml?

If i download the tutorial at
http://www.b4x.com/forum/basic4andr...orials/10608-preferenceactivity-tutorial.html

It will work, but if i toggle the Project - "Do Not Overwrite Manifest File"
It will then fail with the above error.

And i even if i add
B4X:
AddApplicationText(<activity android:name="anywheresoftware.b4a.objects.preferenceactivity"/>)

It does not fix the problem.

Any advice is appreciated.

Lee.
 

qle

Member
Licensed User
Longtime User
If i download the sample tutorial then the option is 'ticked' by default, i can compile the sample from the tutorial and it works.

But if i create a new project and use the Manifest Editor as recommend to add the line
B4X:
AddApplicationText(<activity android:name="anywheresoftware.b4a.objects.preferenceactivity"/>)

It does not seem to work.

So even if i create a new project, and copy paste the code from 'Main' in the tutorial and add the above line using the Manifest editor, it still does not work.

Lee.
 
Upvote 0

qle

Member
Licensed User
Longtime User
Project attached
(this is simply the tutorial code cut and pasted into a new project)

Thank you Erel.
 

Attachments

  • PrefTest.zip
    6.4 KB · Views: 155
Upvote 0
Top