Wish Looking for tool to code additional codes in Manifest Editor

Theera

Expert
Licensed User
Longtime User
I think the Manifest editor should have tool to help adding codes for non-expert as same as snippets code (To make it easy) i.e.
B4X:
AddApplicationText(
  <provider
  android:name="android.support.v4.content.FileProvider"
  android:authorities="$PACKAGE$.provider"
  android:exported="false"
  android:grantUriPermissions="true">
  <meta-data
  android:name="android.support.FILE_PROVIDER_PATHS"
  android:resource="@xml/provider_paths"/>
  </provider>
)
CreateResource(xml, provider_paths,
   <files-path name="name" path="shared" />
)
 

aeric

Expert
Licensed User
Longtime User
I never need a special tool.
I just copy and paste the code.
 

Theera

Expert
Licensed User
Longtime User
I never need a special tool.
I just copy and paste the code.
Yes, but no -experts don't know how to code , if there is snippets, I think that be better.
 

Sandman

Expert
Licensed User
Longtime User
I would say that snippets aren't really there to help people that can't code actually produce code. Snippets exist to simplify life and speed up coding for people that can code.

Meaning the best way forward is still to learn how to code.
 

aeric

Expert
Licensed User
Longtime User
The ideal way is to keep the examples. In each example, the manifest file is already added.
 

Theera

Expert
Licensed User
Longtime User
I have tried to prompt in Claude Ai
"I need to permissionopen camera for manifest editor's B4A, How to code it?"
Please answer to me that can solved the problem, or not? (I'm not expert in coding)

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="your.package.name"> <!-- Camera Permission --> <uses-permission android:name="android.permission.CAMERA"/> <!-- Optional: Storage permissions if you want to save photos --> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> <!-- Declare camera feature --> <uses-feature android:name="android.hardware.camera" android:required="true"/> <uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/> </manifest>
 

Theera

Expert
Licensed User
Longtime User
When I have tested with DeepSeek , the result is
'This code should be added to the Manifest Editor
AddManifestText(
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="33"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
AddApplicationText(
<activity
android:name=".main"
android:label="MyApp"
android:theme="@android:style/Theme.Holo.Light">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>)
AddPermission(android.permission.CAMERA)
Which one is correct?
 

Theera

Expert
Licensed User
Longtime User
This question is different from your original wish.
You should post it in question forum.
Originally, I was looking for a solution. I didn't think DeepSeek ai might be the solution, but I'm still not sure if it actually works.
 
Top