[Q]Custom Settings and Viper - Galaxy S 5 Q&A, Help & Troubleshooting

Hello,
I have a Pyrana settings that launches several utilitaires.Je would add Viper but I can not find the command to start? an idea?
Link to xml:
<PreferenceScreen android:icon="@drawable/ic_viper" android:title="Viper">
<intent android:targetPackage="com.vipercn.viper4android_v2" android:action="android.intent.action.MAIN" android:targetClass="???????????????????" />
</PreferenceScreen>
Thank you in advance

Related

[Q] Market requires versionCode.... positive 32-bit integer in AndroidManifest

What does that mean ?! Here is the full error I get when submitting my proggy to the market;
ERRORS;
error#1- Market requires versionCode to be set to a positive 32-bit integer in AndroidManifest.xml
error#2- Market requires versionName to be set in AndroidManifest.xml
<><><><><><><><>
My Manifest; ( I replaced my app info with gen info for the forum)
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mydomain.myapp"
android:versionCode="1"
android:versionName="1">
<uses-sdk android:minSdkVersion="7" />
<uses-sdk android:targetSdkVersion="8" />
<uses-sdk android:maxSdkVersion="9" />
<activity android:name=".myapp"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:screenOrientation="landscape">
<application android:label="@string/myapp" android:icon="@drawable/myicon">
<uses-feature android:name="android.hardware.touchscreen" android:required="true"/>
<uses-feature android:name="android.hardware.camera" android:required="false"/>
<uses-feature android:name="android.hardware.wifi" android:required="false"/>
<uses-feature android:name="android.hardware.sensor.accelerometer" android:required="false"/>
<uses-feature android:name="android.hardware.location.gps" android:required="false"/>
<uses-feature android:name="android.hardware.bluetooth" android:required="false"/>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</application>
</activity>
</manifest>
<><><><><>
Any help would be wonderful, thanks taking the time to read this post

[Q] how to add permissions to android manifest?

Hey guys,
First timer here made a small test app recently, then i realized that wen u install the apk the permissions were not shown even though i wrote them in the manifest following the permissions guide in android.developer.com... i would like some help with this, a video tutorial will do great but screenshots guide will do fine aswell.
thanks in advance guys
Do it like this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
... >
<uses-sdk
... />
[COLOR="Blue"]<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />[/COLOR]
<application
... >
<activity
... >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!-- Your other components -->
</application>
</manifest>
However, some permissions won't be shown as they are development or system permissions which cannot be granted to normal apps.
Which one are you talking about?
Mocolocoroco said:
Hey guys,
First timer here made a small test app recently, then i realized that wen u install the apk the permissions were not shown even though i wrote them in the manifest following the permissions guide in android.developer.com... i would like some help with this, a video tutorial will do great but screenshots guide will do fine aswell.
thanks in advance guys
Click to expand...
Click to collapse
if you are using eclipse as die you may use the "Manifest" Editor which can easy generate your manifest and your permissions.
If you are using Android Studio with latest SDK then there is an Auto completing.
If you want to add permissions be carefulll. some devices will not be able to download your app.
Use use-feature and disable required if you still want the app listed in playstore for devices which has (for example) no Bluetooth or camera
Here is an example of one of my apps.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="de.seiboldsoft.myapp
android:versionCode="10"
android:versionName="1">
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="17" />
<permission
android:name="de.seiboldsoft.myapp.permission.C2D_MESSAGE"
androidrotectionLevel="signature" />
<uses-feature
android:name="android.hardware.camera.autofocus"
android:required="false" />
<uses-feature
android:name="android.hardware.camera.flash"
android:required="false" />
<uses-feature android:name="android.hardware.location" />
<uses-feature
android:name="android.hardware.location.gps"
android:required="false" />
<uses-feature
android:name="android.hardware.microphone"
android:required="false" />
<uses-feature
android:name="android.hardware.camera"
android:required="false" />
<uses-feature
android:name="android.hardware.telephony"
android:required="false" />
<uses-feature
android:name="android.hardware.bluetooth"
android:required="false" />
<uses-feature
android:name="android.hardware.touchscreen"
android:required="false" />
<uses-feature
android:name="android.hardware.wifi"
android:required="false" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.ACTION_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
<uses-permission android:name="android.permission.SEND_SMS" />
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.READ_SMS" />
<uses-permission android:name="android.permission.WRITE_SMS" />
<uses-permission android:name="android.permission.SEND_SMS" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS" />
<uses-permission android:name="android.permission.BATTERY_STATS" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="de.seiboldsoft.theftspy.permission.C2D_MESSAGE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.READ_CALL_LOG" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.WRITE_CONTACTS" />
<uses-permission android:name="android.permission.INSTALL_PACKAGES" />
<uses-permission android:name="android.permission.DELETE_PACKAGES" />
<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="com.android.vending.BILLING" />
<uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="com.android.vending.BILLING" />
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
<uses-permission android:name="android.permission.ACCESS_SUPERUSER" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.UPDATE_DEVICE_STATS" />
<uses-permission android:name="android.permission.BIND_ACCESSIBILITY_SERVICE" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/myapp"
android:largeHeap="true"
android:logo="@drawable/ic_launcher"
android:launchMode="singleTop"
android:theme="@android:style/Theme.Black">
<receiver
android:name="com.google.android.gcm.GCMBroadcastReceiver"
androidermission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="de.seiboldsoft.myapp" />
</intent-filter>
</receiver>
<activity
android:name=".activities.StartAcitvity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:label="@string/myapp"
android:launchMode="singleInstance"
android:theme="@style/Theme.Transparent">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service android:name="GCMIntentService" />
<activity android:name=".modules.AlarmActivity"></activity>
<service
android:name="AndroidService"
android:exported="false"
android:label="@string/myapp" />
<service android:name=".modules.ModulCamera" />
<!-- cropped lots of stuff -->
</application>
</manifest>
thanks
but do any of these permissions listed show on screen wen the user tries to install m apk?
Mocolocoroco said:
but do any of these permissions listed show on screen wen the user tries to install m apk?
Click to expand...
Click to collapse
Most permissions are shown when the app is installed. However, not all are shown.
Which one do you have problems with?
i tried this for starters
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.FLASHLIGHT"/>
<android.permission-group.ACCESSIBILITY_FEATURES />
and none of them seem to appear wen i install,any suggestions?
Mocolocoroco said:
i tried this for starters
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.FLASHLIGHT"/>
<android.permission-group.ACCESSIBILITY_FEATURES />
and none of them seem to appear wen i install,any suggestions?
Click to expand...
Click to collapse
Maybe you put them into the wrong place of the XML. Could you please provide more of the file?
(You can delete all Activities except one if you want to. But please let one tag of each kind stay there so that we see whether it is in the right place or not. )
<uses-sdk
....
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.FLASHLIGHT"/>
<android.permission-group.ACCESSIBILITY_FEATURES />
<application
...
<activity
<intent-filter>
</activity>
</application>
</manifest>
Mocolocoroco said:
<uses-sdk
....
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.FLASHLIGHT"/>
<android.permission-group.ACCESSIBILITY_FEATURES />
<application
...
<activity
<intent-filter>
</activity>
</application>
</manifest>
Click to expand...
Click to collapse
You've got a <manifest> tag at the beginning, too, right?
Are you able to install the app?
The only thing left which I can offer is that you send one of us your project and we will check it.
You can remove all stuff that is not related to this. And then we will try.
Everything else is difficult. You know, we're not sitting next to you.
yea i hav the <manifest open and yes im able to install the app aswell....and how will i send u the manifest file? or do u want the apk?
Mocolocoroco said:
yea i hav the <manifest open and yes im able to install the app aswell....and how will i send u the manifest file? or do u want the apk?
Click to expand...
Click to collapse
Well, with the apk I can check whether I see the permissions.
With the manifest I can try it out myself.
You can upload it to dropbox or something like that and send me the download link via PM.
alrite it will take awhile cause ill hav to make a dropbox account...shall i upload the manifest file in a word or how do i send the manifest to you?
Mocolocoroco said:
alrite it will take awhile cause ill hav to make a dropbox account...shall i upload the manifest file in a word or how do i send the manifest to you?
Click to expand...
Click to collapse
Just upload the xml.
If you want it to be accessible for everyone, you can also post it as an attachement on XDA.
I'll wait.
the xml file is not getting uploaded ill just pm u the dropbox links now
Mocolocoroco said:
the xml file is not getting uploaded ill just pm u the dropbox links now
Click to expand...
Click to collapse
Thanks. Got your PM and the file. You can delete the apk if you want to.
OK. Tested the manifest you sent to me.
To do that I created a new project and replaced the manifest. I installed it on an emulator and went to the settings. This is what I see for the app:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Will test it on a real device now.
On the device I see the permissions, too.
Should I send you the project files?
yea if u cud send them that would be great...and how do i use them to change my current project???
Mocolocoroco said:
yea if u cud send them that would be great...and how do i use them to change my current project???
Click to expand...
Click to collapse
My test project.
I don't know how much this will help you. Could you please post a screenshot of your directory structure (or send it to me via PM)?
Maybe that is the problem.
what do you mean by the directory structure? as in the package explorer?

[Q] How to insert admob in app help me

hi guys
could you help me to put the banner in my app.
I also followed the guides but I still can not insert
You might even see me lines of code please
thanks
what problem are you getting????
Atleast tell the problem or provide the code where you are facing problem.
Simple:
1) Install Google AdMob Ads SDK (you can use Android SDK Manager for that)
2) Add GoogleAdMobAdsSdk.jar to your project (Project Properties>>Java Build Path>>Add External JARs…)
3) In the Manifest add ACCESS_NETWORK_STATE and INTERNET permissions, and also an activity inside application tag, like that:
Code:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:debuggable="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:label="@string/app_name"
android:name=".BillingSampleActivity" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:name="com.google.ads.AdActivity" />
</application>
4) Get Publisher ID from AdMob
5) Add banner to your layout
Code:
<com.google.ads.AdView
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ads:adSize="BANNER"
ads:adUnitId="your_admob_publisher_id"
ads:loadAdOnCreate="true" />
Thats it!
GRYMALA said:
Simple:
1) Install Google AdMob Ads SDK (you can use Android SDK Manager for that)
2) Add GoogleAdMobAdsSdk.jar to your project (Project Properties>>Java Build Path>>Add External JARs…)
3) In the Manifest add ACCESS_NETWORK_STATE and INTERNET permissions, and also an activity inside application tag, like that:
Code:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:debuggable="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:label="@string/app_name"
android:name=".BillingSampleActivity" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:name="com.google.ads.AdActivity" />
</application>
4) Get Publisher ID from AdMob
5) Add banner to your layout
Code:
<com.google.ads.AdView
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ads:adSize="BANNER"
ads:adUnitId="your_admob_publisher_id"
ads:loadAdOnCreate="true" />
Thats it!
Click to expand...
Click to collapse
Nice answer! Thanks for this.

built app, installs on Moto X but Icon is missing

I just got done building my app in A.S. I ran the clean gradle and no errors came back. The app installs on my Moto X fine, it's listed in Settings/Apps and says the 5MB size but never shows on any of the home screens nor the main applications list among other icons.
Has Anyone seen this before?
Android Studio: v0.61 (Win7) SDK tools: v22.6.4 SDK build-tools 19.1 Google Play services Rev 17
thank you
Ryan
xmattoxx said:
I just got done building my app in A.S. I ran the clean gradle and no errors came back. The app installs on my Moto X fine, it's listed in Settings/Apps and says the 5MB size but never shows on any of the home screens nor the main applications list among other icons.
Has Anyone seen this before?
Android Studio: v0.61 (Win7) SDK tools: v22.6.4 SDK build-tools 19.1 Google Play services Rev 17
thank you
Ryan
Click to expand...
Click to collapse
Here's my androidmanifest file:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.thirtyfate.flashlight"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.FLASHLIGHT" />
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />
<uses-feature android:name="android.hardware.camera.flash" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" />
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<activity
android:name="com.thirtyfate.flashlight.MainActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.Black.NoTitleBar" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<activity
android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />
</manifest>

CarrierConfig VoLTE / VoWiFi

Hi all
I'm running a Nexus 6P on a carrier which does not support volte / vowifi officially. But I managed to get all the specific values for this carrier. But the big question is, how to implement those values into the phone?
I did some research and found out that some parameters are specified in the carrierconfig app. An example:
HTML:
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<carrier_config_list>
<carrier_config>
<int name="vvm_port_number_int" value="1808" />
<string name="vvm_destination_number_string">122</string>
<string name="carrier_vvm_package_name_string">com.tmobile.vvm.application</string>
<boolean name="carrier_volte_available_bool" value="true" />
<string name="vvm_type_string">vvm_type_cvvm</string>
<boolean name="carrier_volte_tty_supported_bool" value="false" />
<boolean name="carrier_wfc_ims_available_bool" value="true" />
<boolean name="carrier_ims_gba_required_bool" value="true" />
<int name="maxMessageSize" value="1048576" />
<int name="maxImageWidth" value="2592" />
<int name="maxImageHeight" value="1944" />
<int name="volte_replacement_rat_int" value="3" />
</carrier_config>
</carrier_config_list>
Search for platform/packages/apps/CarrierConfig to find it
So I tried to decompile the carrierconfig app and add my carrier aswell, but unfortunately I can not install the app again (parsing error, defect package). But where is the rest of the data stored (P-CSCF address, used algorithms, ePDG address and so on) ?? How was VoLTE / VoWiFi Calling brought to AOSP roms for EE and T-Mobile USA??
Thanks for your help!

Categories

Resources