qle Member Licensed User Longtime User Jan 10, 2013 #1 Hi, I have been using preferenceactivity with out problem for quite a while. But since upgrading to 2.30, new projects get error Code: Copy 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 Code: Copy AddApplicationText(<activity android:name="anywheresoftware.b4a.objects.preferenceactivity"/>) It does not fix the problem. Any advice is appreciated. Lee.
Hi, I have been using preferenceactivity with out problem for quite a while. But since upgrading to 2.30, new projects get error Code: Copy 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 Code: Copy AddApplicationText(<activity android:name="anywheresoftware.b4a.objects.preferenceactivity"/>) It does not fix the problem. Any advice is appreciated. Lee.
Erel B4X founder Staff member Licensed User Longtime User Jan 10, 2013 #2 Project - "Do Not Overwrite Manifest File" Click to expand... Do not use this option. It is only kept for backwards compatibility. Make sure that AndroidManifest.xml is not read only. If it doesn't work then please post the complete text in the compilation window. Upvote 0
Project - "Do Not Overwrite Manifest File" Click to expand... Do not use this option. It is only kept for backwards compatibility. Make sure that AndroidManifest.xml is not read only. If it doesn't work then please post the complete text in the compilation window.
qle Member Licensed User Longtime User Jan 10, 2013 #3 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 Code: Copy 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
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 Code: Copy 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.
Erel B4X founder Staff member Licensed User Longtime User Jan 10, 2013 #4 Can you upload your project (File - Export as zip)? Upvote 0
qle Member Licensed User Longtime User Jan 10, 2013 #5 Project attached (this is simply the tutorial code cut and pasted into a new project) Thank you Erel. Attachments PrefTest.zip PrefTest.zip 6.4 KB · Views: 279 Upvote 0
Project attached (this is simply the tutorial code cut and pasted into a new project) Thank you Erel.
Erel B4X founder Staff member Licensed User Longtime User Jan 10, 2013 #6 You have added: Code: Copy AddApplicationText(<Activity android:name="anywheresoftware.b4a.objects.preferenceactivity"/>) It should be: Code: Copy AddApplicationText(<activity android:name="anywheresoftware.b4a.objects.preferenceactivity"/>) Upvote 0
You have added: Code: Copy AddApplicationText(<Activity android:name="anywheresoftware.b4a.objects.preferenceactivity"/>) It should be: Code: Copy AddApplicationText(<activity android:name="anywheresoftware.b4a.objects.preferenceactivity"/>)
qle Member Licensed User Longtime User Jan 11, 2013 #7 Thank you Erel, It was a cut and paste from the tutorial page. http://www.b4x.com/forum/basic4andr...orials/10608-preferenceactivity-tutorial.html The page has ...<activity android:... Thank you for your time and help! edit: For what ever reason, its working fine this morning with either line using the manifest editor to edit, strange, but happy its back working! Lee. Last edited: Jan 11, 2013 Upvote 0
Thank you Erel, It was a cut and paste from the tutorial page. http://www.b4x.com/forum/basic4andr...orials/10608-preferenceactivity-tutorial.html The page has ...<activity android:... Thank you for your time and help! edit: For what ever reason, its working fine this morning with either line using the manifest editor to edit, strange, but happy its back working! Lee.
Erel B4X founder Staff member Licensed User Longtime User Jan 11, 2013 #8 The tutorial code is correct. Upvote 0