I read a lot from stack about permissions ( like here ) but i'm still stuck...
I want to add these three permissions to my app :
android.permission.ACCESS_WIFI_STATE
android.permission.ACCESS_NETWORK_STATE
android.permission.INTERNET
So i added this to my tiapp.xml :
<android xmlns:android="http://schemas.android.com/apk/res/android"/>
<manifest>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
</android>
And titanium studio says that manifest contains not valid content and one of the value :
{sdk-version, deployment-targets, id, name, version, publisher, url, description, copyright, icon, persistent-wifi, prerendered-icon, statusbar-style, statusbar-hidden, fullscreen, navbar-hidden, analytics, guid, iphone, android, ios, mobileweb, blackberry, tizen, ivi, property, modules, plugins}
is expected...
Then I tried :
<manifest android:versionName="1.0.0">
But the prefix 'android' of the attribute 'android:versionName' associated to an element type 'manifest' isn't bounded
Any ideas ?
Well the error was a basic one :
see this line :
<android xmlns:android="http://schemas.android.com/apk/res/android"/>
well just remove the "/"
^^ :
<android xmlns:android="http://schemas.android.com/apk/res/android">