Android Sip application call from Contacts / PhoneBook - android

I'm currently developing an application using sip which is actually working.
However, I would like to allow people to call from "PhoneBook/Contact",
I saw a few application, like csip simple, where it works. I can click on the phone number, then a little dialog box appears and I can choose between several application.
I already did some research on StackOverflow and I found one solution which does not work.
I wonder if I made a mistake in my manifest, could you help me ?
<?xml version='1.0' encoding='utf-8'?>
<manifest android:hardwareAccelerated="true" android:versionCode="1" android:versionName="0.0.1" package="com.example.SIPProject" xmlns:android="http://schemas.android.com/apk/res/android">
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
<application android:hardwareAccelerated="true" android:icon="#drawable/icon" android:label="#string/app_name" android:supportsRtl="true">
<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="#string/activity_name" android:launchMode="singleTop" android:name="MainActivity" android:theme="#android:style/Theme.Black.NoTitleBar" android:windowSoftInputMode="adjustResize">
<intent-filter android:label="#string/launcher_name">
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter android:priority="10">
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.DIAL" />
<action android:name="android.intent.action.CALL" />
<action android:name="android.intent.action.DIALER" />
<category android:name="android.intent.category.DEFAULT" />
<action android:name="android.intent.action.CALL_PRIVILEGED" />
<data android:scheme="tel" />
</intent-filter>
</activity>
<service android:name="com.example.sip.SipManagerService" />
<receiver android:name="com.example.sip.SipOnboot">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.USER_PRESENT" />
</intent-filter>
</receiver>
</application>
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="22" />
<service android:name="com.example.sip.SipManagerService" />
<receiver android:name="com.example.sip.SipOnboot">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.USER_PRESENT" />
</intent-filter>
</receiver>
<uses-permission android:name="android.permission.CALL_PRIVILEGED" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.CONFIGURE_SIP" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS" />
<uses-feature android:name="android.hardware.telephony" android:required="true" />
<uses-permission android:name="android.permission.USE_SIP" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<use-feature android:name="android.hardware.sip.voip" android:required="true" />
<use-feature android:name="android.hardware.wifi" android:required="true" />
<use-feature android:name="android.hardware.microphone" android:required="true" />
</manifest>
Thanks

For SIP calls, i think the data type should be like this
<data android:scheme="sip" />
For reference check this
SipDroid

Related

why i can my App not starting or see over App menu?

I have a problem.
I have a signed apk generated and installed but
I can't start the App from installing and I can't see it in the app menu.
I can only see it in the settings app menu.
Why cant I see it or starting?
The app can be started via the debugger.
Can you help me?
The operating system is Android 7 and 5.
Here is my manifesto:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.xxxxxx"
android:versionCode="12"
android:versionName="4.0.0">
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.NFC"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.READ_PROFILE" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.FLASHLIGHT" />
<uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CLEAR_APP_CACHE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS" />
<uses-permission android:name="com.android.browser.permission.WRITE_HISTORY_BOOKMARKS" />
<uses-permission android:name="android.permission.SET_WALLPAPER" />
<uses-feature
android:name="android.hardware.camera"
android:required="true" />
<uses-feature
android:name="android.hardware.camera.front"
android:required="true" />
<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.screen.portrait"
android:required="true" />
<uses-feature
android:name="android.hardware.wifi"
android:required="false" />
<uses-feature
android:name="android.hardware.touchscreen"
android:required="true" />
<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:xlargeScreens="true" />
<application
android:name="com.control.xxxx.xxxxx"
android:allowBackup="true"
android:hardwareAccelerated="false"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:largeHeap="true"
android:persistent="true"
android:theme="#style/AppTheme">
<!-- Activities -->
<activity
android:name=".MainActivity"
android:label="#string/app_name"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.nfc.action.NDEF_DISCOVERED"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:mimeType="text/plain"/>
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".ScannerActivity"
android:label="#string/title_activity_qrcode_scanner"
android:noHistory="true"
android:screenOrientation="portrait" />
<activity
android:name=".HelpActivity"
android:label="#string/help_title"
android:noHistory="true"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.Holo" />
<activity
android:name="com.control.installation.ConfigActivity"
android:label="#string/install_title"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.Holo"
android:windowSoftInputMode="stateHidden|adjustPan" />
<activity
android:name=".CameraHideActivity"
android:label="#string/title_activity_camera_hide"
android:noHistory="true"
android:screenOrientation="portrait" />
<activity
android:name=".ProjectListActivity"
android:label="#string/title_activity_project_list"
android:noHistory="true"
android:screenOrientation="portrait" />
<activity
android:name="com.control.camerahidetexts.CamHideConfiguratorActivity"
android:label="#string/title_config_hideactivity"
android:noHistory="true"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.DeviceDefault.Dialog" />
<activity
android:name="com.control.personalmessages.PersMsgActivity"
android:label="#string/pm_title"
android:noHistory="true"
android:screenOrientation="portrait" />
<activity
android:name="com.control.language.LanguageActivity"
android:label="#string/title_languageactivity"
android:noHistory="true"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.DeviceDefault.Dialog" />
<activity
android:name=".ButtonActivity"
android:label="#string/button_settings"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.Holo" />
<!-- Receivers -->
<receiver android:name="com.control.personalmessages.PersMsgReceiver" />
<receiver android:name="com.control.broadcastreceiver.AppRestartReceiver" />
<receiver android:name="com.control.camerahidetexts.CamHideConfigTextsReceiver" />
<receiver android:name="com.control.livepackets.LivepaketReceiver" />
<receiver android:name="com.control.projecttransponderlists.ListUpdateReceiver" />
<receiver android:name="com.control.timestamps.TimestampReceiver" />
<receiver android:name="com.control.projecttransponderlists.ListUpdateDoneReceiver" />
<receiver android:name="com.control.log.LogReceiver" />
<receiver android:name="com.control.broadcastreceiver.BootUpReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</receiver>
<!-- Services -->
<service android:name="com.control.personalmessages.SetPersonalMessagesToReadService" />
<service android:name="com.control.personalmessages.DownloadPersMsgService" />
<service android:name="com.control.personalmessages.FinishPMDownloadService" />
<service android:name="com.control.camerahidetexts.CamHideConfigTextsService" />
<service android:name="com.control.projecttransponderlists.ProjectListService" />
<service android:name="com.control.projecttransponderlists.TransponderListService" />
<service android:name="com.control.projecttransponderlists.LinkTransponderProjectListService" />
<service android:name="com.control.projecttransponderlists.ListUpdateService" />
<service android:name="com.control.projecttransponderlists.ListUpdateDoneService" />
<service android:name="com.control.timestamps.TimestampService" />
<service android:name="com.control.log.LogSendService" />
<service android:name="com.control.livepackets.LivepaketService" />
</application>
Update
i found the problem, it was android:mimeType but why?
Can you explain it to me?
You probably forgot launch mode. Write this in your AndroidManifest.xml inside application element
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
replace .MainActivity with your activity name

Why is Cordova app incompatible with device?

I am developing an hybrid app using Ionic Framework. The app works fine and I have published it to app store which I did not exclude any device from it.
Recently I bought a very cheap brand 7 inch tablet PC running on Android 4.4.2. I am able to build and install directly into the tablet. The app works fine on it. But why is that when I check on Google play store, I can't see my app listing from that device. When I try to access my app from browser, the app store says "This app is incompatible with your device".
Why is it incompatible as the app works fine when I manually install to it? How can I get my app listed on the device? What are the settings can I change?
AndroidManifest.xml
<?xml version='1.0' encoding='utf-8'?>
<manifest android:hardwareAccelerated="true" android:versionCode="5" android:versionName="0.0.5" package="com.company.appname" xmlns:android="http://schemas.android.com/apk/res/android">
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<application android:hardwareAccelerated="true" android:icon="#drawable/icon" android:label="#string/app_name" android:supportsRtl="true">
<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="#string/activity_name" android:launchMode="singleTop" android:name="MainActivity" android:screenOrientation="portrait" android:theme="#android:style/Theme.Black.NoTitleBar" android:windowSoftInputMode="adjustResize">
<intent-filter android:label="#string/launcher_name">
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="com.company.appname.MESSAGE" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="#string/fb_app_id" />
<activity android:label="#string/fb_app_name" android:name="com.facebook.LoginActivity" android:theme="#android:style/Theme.Translucent.NoTitleBar" />
<activity android:label="#string/multi_app_name" android:name="com.synconset.MultiImageChooserActivity" android:theme="#android:style/Theme.Holo.Light" />
<receiver android:name="com.pushbots.google.gcm.GCMBroadcastReceiver" android:permission="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="com.company.appname" />
</intent-filter>
</receiver>
<receiver android:name="com.pushbots.plugin.PushHandler" />
<receiver android:name="com.pushbots.push.DefaultPushHandler" />
<service android:name="com.pushbots.push.GCMIntentService" />
<activity android:name="org.cloudsky.cordovaPlugins.ZBarScannerActivity" android:screenOrientation="portrait" android:theme="#android:style/Theme.Black.NoTitleBar.Fullscreen" />
</application>
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="22" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
<uses-permission android:name="com.android.launcher.permission.UNINSTALL_SHORTCUT" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<permission android:name="com.company.appname.permission.C2D_MESSAGE" android:protectionLevel="signature" />
<uses-permission android:name="com.company.appname.permission.C2D_MESSAGE" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-feature android:name="android.hardware.camera" />
<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.camera.front" android:required="false" />
<uses-permission android:name="android.permission.CAMERA" />
</manifest>

Gradle script xml transformation

I'm writting a gradle script and i need to modify my androidManifest in this script.
I don't know how to do that, i need to change 2 properties in this manifest.
I have tried to use a regEx with a ant.replaceregexp but i can't write my regEx to replace only the android:name of the activity node.
There is a better way to modify it or no ?
Maybe i can use a XML parser but i don't know how to write my file after.
Here you can find my manifest :
<?xml version='1.0' encoding='utf-8'?>
<manifest android:hardwareAccelerated="true" android:versionCode="10402" android:versionName="1.4.2" android:windowSoftInputMode="adjustPan" package="com.yyyyyy.xxxxxx" xmlns:android="http://schemas.android.com/apk/res/android">
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
<uses-permission android:name="android.permission.INTERNET" />
<application android:debuggable="true" android:hardwareAccelerated="true" android:icon="#drawable/icon" android:label="#string/app_name">
<!--GradleActivity--><activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="#string/app_name" android:launchMode="singleTop" android:name="xxxxxx" 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>
<service android:name="com.yyyyyy.xxxxxx.TrackingService">
</service>
<receiver android:name="com.yyyyyy.xxxxxx.BootCompletedIntentReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
<activity android:exported="true" android:name="com.plugin.gcm.PushHandlerActivity" />
<receiver android:name="com.plugin.gcm.CordovaGCMBroadcastReceiver" android:permission="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="com.yyyyyy.xxxxxx" />
</intent-filter>
</receiver>
<service android:name="com.plugin.gcm.GCMIntentService" />
</application>
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="18" />
<uses-feature android:name="android.hardware.telephony" android:required="false" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
<uses-permission android:name="android.permission.SEND_SMS" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.PREVENT_POWER_KEY" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<permission android:name="com.yyyyyy.xxxxxx.permission.C2D_MESSAGE" android:protectionLevel="signature" />
<uses-permission android:name="com.yyyyyy.xxxxxx.permission.C2D_MESSAGE" />
</manifest>
I want to change the " < activity> =>android:name = xxxxx" property to " < activity> =>android:name = zzzzzzz"
Thanks.
You can use this regex with groups:
/(<activity.*android:name=")(\w+)(.*">)/gm
And this subtitution:
\1zzzzz\3
Link:
https://regex101.com/r/vI7sK3/5

Why permissions does not work with my .apk in play store?

When developping my Android app (with cordova), I have a strange behaviour:
When transfering the app from my computer to the tablet in debug mode, everything works well.
But when I upload it on Google Play Store, then downloading it to my tablet, it seems permissions are missing.
Indeed, I set 5 permissions in my AndroidManifest.xml:
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.FLASHLIGHT" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
But after that, when installing the app from the play store, a pop up says the app need only 2 permissions:
Camera
Device ID
Then, I accept, I install it, but when I launch the app, it can not access internet.
Here is the entire Manifest:
<?xml version='1.0' encoding='utf-8'?>
<manifest android:hardwareAccelerated="true" android:versionCode="20100" android:versionName="2.1.0" package="com.ionicframework.magnetiztablet479260" xmlns:android="http://schemas.android.com/apk/res/android">
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
<application android:hardwareAccelerated="true" android:icon="#drawable/icon" android:label="#string/app_name">
<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="#string/activity_name" android:launchMode="singleTop" android:name="CordovaApp" android:theme="#android:style/Theme.Black.NoTitleBar" android:windowSoftInputMode="adjustResize">
<intent-filter android:label="#string/launcher_name">
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:clearTaskOnLaunch="true" android:configChanges="orientation|keyboardHidden" android:exported="false" android:name="com.google.zxing.client.android.CaptureActivity" android:screenOrientation="landscape" android:theme="#android:style/Theme.NoTitleBar.Fullscreen" android:windowSoftInputMode="stateAlwaysHidden">
<intent-filter>
<action android:name="com.phonegap.plugins.barcodescanner.SCAN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity android:label="#string/share_name" android:name="com.google.zxing.client.android.encode.EncodeActivity">
<intent-filter>
<action android:name="com.phonegap.plugins.barcodescanner.ENCODE" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity android:label="#string/share_name" android:name="com.google.zxing.client.android.HelpActivity">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="19" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.FLASHLIGHT" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-feature android:name="android.hardware.camera" android:required="false" />
</manifest>

NFC auto-open android application

I have been instructed to get an NFC tag to open an app that I'm creating using phonegap and I'm adding the following code to my AndroidManifest.xml file.
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="http"
android:host="hesdev.nixtel.com"
android:pathPrefix=""
android:priority="1000"
/>
</intent-filter>
I want the NFC tag to open the app and bring it to the front. A URL similar to this is written to my tag:
hesdev.nixtel.com?nfc=kj43hg4g32o2j34hb3g43j453
My question is why is it not working for me? When I scan the NFC tag it should open my application right? It isn't. It opens the web-browser on the tab and brings me to said URL.
edit
This is my full manifest file...
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.healthe_scan"
android:versionCode="1"
android:versionName="1.0" >
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:resizeable="true"
android:anyDensity="true"
/>
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.WRITE_CONTACTS" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.BROADCAST_STICKY" />
<!--uses-permission android:name="android.permission.NFC" />
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/-->
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name="com.example.healthe_scan.MainActivity"
android:label="#string/app_name"
android:configChanges="orientation|keyboardHidden">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="http"
android:host="hesdev.nixtel.com"
android:pathPrefix=""
android:priority="1000"
/>
</intent-filter>
</activity>
<activity
android:name="org.apache.cordova.DroidGap"
android:label="#string/app_name"
android:configChanges="orientation|keyboardHidden">
<intent-filter></intent-filter>
</activity>
</application>
</manifest>
~7 hours down the drain...
There was nothing wrong with the code- it was my tags that weren't working properly. Whatever my tag writer was doing it would open the browser and direct it to the designated URL but wasn't starting the app. I changed my tag writer to this one...
https://play.google.com/store/apps/details?id=com.nxp.nfc.tagwriter&hl=en
and it worked straight away.

Categories

Resources