[Question] Toggle tunnelbear vpn conection - Tasker Tips & Tricks

I want to be able to connect to tunnelbear vpn via adb command. Can anybody help me find a command to connect and disconnect tunnelbear vpn?
This is the manifest of tunnelbear:
HTML:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:"http://schemas.android.com/apk/res/android" android:versionCode="137" android:versionName="v137" android:installLocation="internalOnly" package="com.tunnelbear.android" platformBuildVersionCode="24" platformBuildVersionName="7.0">
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="23" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="com.android.vending.BILLING" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-feature android:glEsVersion="20000" android:required="true" />
<application android:label="0x7f070025" android:icon="0x7f0200b0" android:name="com.tunnelbear.android.TunnelBear" android:allowBackup="false" android:hardwareAccelerated="true" android:supportsRtl="true">
<meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="AIzaSyDmT5Qzsz2p8C3JigTu5QVKgDNgj_oNWhc" />
<meta-data android:name="com.google.android.gms.version" android:value="0x7f0c0000" />
<activity android:theme="0x7f0d000a" android:name="com.tunnelbear.android.TbearMainActivity" android:launchMode="singleTop" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:theme="0x7f0d0004" android:name="com.tunnelbear.android.TbearSplashActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:theme="0x7f0d000c" android:name="com.tunnelbear.android.wizard.WizardActivity" android:configChanges="keyboardHidden|orientation|screenSize" android:windowSoftInputMode="30" />
<activity android:theme="0x7f0d0006" android:name="com.tunnelbear.android.AchievementActivity" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:theme="0x7f0d000c" android:name="com.tunnelbear.android.RegistrationActivity" android:configChanges="keyboardHidden|orientation|screenSize" android:windowSoftInputMode="30" />
<activity android:theme="0x7f0d0008" android:name="com.tunnelbear.android.purchase.PurchaseActivity" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:theme="0x7f0d0008" android:name="com.tunnelbear.android.options.OptionsActivity" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:theme="0x7f0d0008" android:name="com.tunnelbear.android.freedata.FreeDataActivity" android:configChanges="keyboardHidden|orientation|screenSize" android:windowSoftInputMode="10" />
<activity android:theme="0x7f0d0008" android:name="com.tunnelbear.android.DowngradeActivity" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:theme="0x7f0d000c" android:name="com.tunnelbear.android.TunError" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:theme="0x7f0d0008" android:name="com.tunnelbear.android.bugreport.BugReportActivity" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:theme="0x7f0d0008" android:name="com.tunnelbear.android.CountrySelectActivity" android:exported="true" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:theme="0x7f0d000d" android:name="com.tunnelbear.android.CaptivePortalActivity" android:configChanges="keyboardHidden|orientation|screenSize" />
<service android:name="de.blinkt.openvpn.OpenVpnService" android:permission="android.permission.BIND_VPN_SERVICE">
<intent-filter>
<action android:name="android.net.VpnService" />
</intent-filter>
</service>
<service android:label="0x7f070025" android:icon="0x7f0200e9" android:name="com.tunnelbear.android.TBQuickSettingsTileService" android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
<meta-data android:name="android.service.quicksettings.ACTIVE_TILE" android:value="true" />
<intent-filter>
<action android:name="android.service.quicksettings.action.QS_TILE" />
</intent-filter>
</service>
<activity android:theme="0x7f0d0009" android:label="0x7f070127" android:name="de.blinkt.openvpn.LaunchVPN" android:taskAffinity="" android:excludeFromRecents="true" android:launchMode="singleTask">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<receiver android:name="com.tunnelbear.android.widget.TunnelBearWidgetProvider">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data android:name="android.appwidget.provider" android:resource="0x7f050002" />
</receiver>
<receiver android:name="com.tunnelbear.android.network.StartNetworkServiceReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
</intent-filter>
</receiver>
<receiver android:name="com.tunnelbear.android.PackageReceiver">
<intent-filter>
<action android:name="android.intent.action.PACKAGE_REMOVED" />
<action android:name="android.intent.action.PACKAGE_ADDED" />
<data android:scheme="package" />
</intent-filter>
</receiver>
<service android:name="com.tunnelbear.android.Registration" />
<service android:name="com.tunnelbear.android.network.NetworkService" />
<activity android:theme="@*android:style/Theme.Translucent.NoTitleBar" android:name="com.google.android.gms.common.api.GoogleApiActivity" android:exported="false" />
</application>
</manifest>
I tried something like:
am start com.tunnelbear.android/de.blinkt.openvpn.LaunchVPN
but it didn't work.
BTW, i'm rooted if it helps...

You can use the AutoInput plugin to "press" the connect and disconnect buttons.

Vagelis1608 said:
You can use the AutoInput plugin to "press" the connect and disconnect buttons.
Click to expand...
Click to collapse
I'd rather to do that from a command line and not within tasker

Related

[Q] Landscape orientation is not working correct

Application works fine in Portrait orientation on phones, emulator and NOOK but when it turns to Landscape NOOK shows the same width as in Portrait - 2/3 of the middle of the screen. Phone and emulator are working fine.
Any idea what can be fixed on NOOK?
Portrait layout:
<LinearLayout xmlns:android="..."
androidrientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView android:layout_width="fill_parent"
android:layout_height="wrap_content" android:text="Portrait" />
<EditText android:layout_width="fill_parent"
android:layout_height="wrap_content" android:text="text" android:id="@+id/text"></EditText>
</LinearLayout>
Landscape layout:
<LinearLayout xmlns:android="..."
androidrientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView android:layout_width="fill_parent"
android:layout_height="wrap_content" android:text="Landsacpe" />
<EditText android:layout_width="fill_parent"
android:layout_height="wrap_content" android:text="text" android:id="@+id/text"></EditText>
</LinearLayout>
Manifest:
<manifest xmlns:android="..."
package="t.t"
android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".Test"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<uses-sdk android:minSdkVersion="3" />
</manifest>

Need Help In Adding Icon For Apex Launcher Themee

I am Adding Lux app icon in my Apex launcher theme
What I did is I added
<item component="ComponentInfo{com.vito.lux/com.vito.lux.DashBoard}" drawable="com_vito_lux"/>
in theme but i am little confused in Activity name
here is androidmanifest of LUX app
lots of activity names which one i choose
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="51" android:versionName="0.51" package="com.vito.lux"
xmlns:android="http://schemas.android.com/apk/res/android">
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="14" android:installLocation="internalOnly" />
<application android:label="@string/app_name" android:icon="@drawable/icon" android:name=".LuxApp" android:logo="@drawable/icon" android:hardwareAccelerated="true">
<activity android:theme="@style/Theme.PopupWindow" android:label="Lux Dash" android:name=".Dashboard" android:launchMode="singleInstance">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:theme="@style/PreferencesTheme" android:label="Settings" android:name=".Preferences">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</activity>
<activity android:theme="@style/Theme.Welcome" android:label="Debug" android:name=".Debug">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</activity>
<receiver android:name=".Widget">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
<action android:name="android.appwidget.action.APPWIDGET_ENABLED" />
<action android:name="com.vito.lux.Widget.adjustLabel" />
<action android:name="com.vito.lux.Widget.setPrimaryListener" />
</intent-filter>
<meta-data android:name="android.appwidget.provider" android:resource="@xml/widget" />
</receiver>
<activity android:theme="@style/Theme.PopupWindow" android:label="Configure" android:name=".Configure">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</activity>
<activity android:theme="@style/Theme.Welcome" android:label="Lux Splash Screen" android:name=".Splash">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</activity>
<activity android:theme="@style/Theme.Welcome" android:label="Lux Tutorial" android:name=".Tutorial" android:noHistory="true">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</activity>
<activity android:theme="@style/Theme.PopupWindow" android:label="Lux Calibrate" android:name=".Calibrate" android:noHistory="true">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</activity>
<receiver android:name=".IntentManager">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.ACTION_PACKAGE_REPLACED" />
<action android:name="android.intent.action.ACTION_POWER_CONNECTED" />
<action android:name="android.intent.action.ACTION_POWER_DISCONNECTED" />
</intent-filter>
<meta-data android:name="android.appwidget.provider" android:resource="@xml/widget" />
</receiver>
<activity android:theme="@style/PreferencesTheme" android:label="General Settings" android:name=".PreferencesGeneral" android:noHistory="true">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</activity>
<activity android:theme="@style/PreferencesTheme" android:label="Advanced" android:name=".PreferencesAdvanced">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</activity>
<activity android:theme="@style/PreferencesTheme" android:label="Sample Collection" android:name=".PreferencesDataCollection" android:noHistory="true">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</activity>
<activity android:label="Backup and Restore" android:name=".BackupRestore">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</activity>
<activity android:theme="@style/Theme.Clear" android:label="" android:name=".ChangeBright" android:noHistory="true">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</activity>
<activity android:theme="@style/Theme.Welcome" android:label="Edit Samples" android:name=".EditLux" android:noHistory="true">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</activity>
<activity android:label="" android:name=".LuxLumaList" android:noHistory="true">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</activity>
<activity android:theme="@style/LuxPage" android:label="" android:name=".CompatModeList">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</activity>
<activity android:theme="@style/LuxListDialog" android:label="" android:name=".CompatModeAddDialog">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</activity>
<activity android:label="" android:name=".ActivityOverlay" android:noHistory="true">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</activity>
<activity android:theme="@style/Theme.Welcome" android:label="" android:name=".Wizard" android:noHistory="true">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</activity>
<service android:name=".AutobrightService">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</service>
<service android:name=".LuxApp">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</service>
<service android:name="com.vito.lux.Widget$Update" android:configChanges="orientation|screenLayout|uiMode">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</service>
<service android:name=".CompatibilityCheck">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</service>
<service android:name=".ScreenCheck">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</service>
<service android:name=".NightModeService">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</service>
<meta-data android:name="com.google.android.backup.api_key" android:value="AEdPqrEAAAAIhUIV218r51g-xwWV1BeqBZ0FUUTfHFHWSUHirQ" />
</application>
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.GET_TASKS" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-feature android:name="android.hardware.sensor.light" android:required="true" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera" />
</manifest>
...or you could just program the icon to the program. I cant help how but i do know that you dont need all that code just to change an icon. Ask your Best friend...g00gle
Sent from the phone of Gamers
nitinvaid said:
I am Adding Lux app icon in my Apex launcher theme
What I did is I added
<item component="ComponentInfo{com.vito.lux/com.vito.lux.DashBoard}" drawable="com_vito_lux"/>
in theme but i am little confused in Activity name
here is androidmanifest of LUX app
lots of activity names which one i choose
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="51" android:versionName="0.51" package="com.vito.lux"
xmlns:android="http://schemas.android.com/apk/res/android">
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="14" android:installLocation="internalOnly" />
<application android:label="@string/app_name" android:icon="@drawable/icon" android:name=".LuxApp" android:logo="@drawable/icon" android:hardwareAccelerated="true">
<activity android:theme="@style/Theme.PopupWindow" android:label="Lux Dash" android:name=".Dashboard" android:launchMode="singleInstance">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:theme="@style/PreferencesTheme" android:label="Settings" android:name=".Preferences">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</activity>
<activity android:theme="@style/Theme.Welcome" android:label="Debug" android:name=".Debug">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</activity>
<receiver android:name=".Widget">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
<action android:name="android.appwidget.action.APPWIDGET_ENABLED" />
<action android:name="com.vito.lux.Widget.adjustLabel" />
<action android:name="com.vito.lux.Widget.setPrimaryListener" />
</intent-filter>
<meta-data android:name="android.appwidget.provider" android:resource="@xml/widget" />
</receiver>
<activity android:theme="@style/Theme.PopupWindow" android:label="Configure" android:name=".Configure">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</activity>
<activity android:theme="@style/Theme.Welcome" android:label="Lux Splash Screen" android:name=".Splash">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</activity>
<activity android:theme="@style/Theme.Welcome" android:label="Lux Tutorial" android:name=".Tutorial" android:noHistory="true">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</activity>
<activity android:theme="@style/Theme.PopupWindow" android:label="Lux Calibrate" android:name=".Calibrate" android:noHistory="true">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</activity>
<receiver android:name=".IntentManager">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.ACTION_PACKAGE_REPLACED" />
<action android:name="android.intent.action.ACTION_POWER_CONNECTED" />
<action android:name="android.intent.action.ACTION_POWER_DISCONNECTED" />
</intent-filter>
<meta-data android:name="android.appwidget.provider" android:resource="@xml/widget" />
</receiver>
<activity android:theme="@style/PreferencesTheme" android:label="General Settings" android:name=".PreferencesGeneral" android:noHistory="true">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</activity>
<activity android:theme="@style/PreferencesTheme" android:label="Advanced" android:name=".PreferencesAdvanced">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</activity>
<activity android:theme="@style/PreferencesTheme" android:label="Sample Collection" android:name=".PreferencesDataCollection" android:noHistory="true">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</activity>
<activity android:label="Backup and Restore" android:name=".BackupRestore">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</activity>
<activity android:theme="@style/Theme.Clear" android:label="" android:name=".ChangeBright" android:noHistory="true">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</activity>
<activity android:theme="@style/Theme.Welcome" android:label="Edit Samples" android:name=".EditLux" android:noHistory="true">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</activity>
<activity android:label="" android:name=".LuxLumaList" android:noHistory="true">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</activity>
<activity android:theme="@style/LuxPage" android:label="" android:name=".CompatModeList">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</activity>
<activity android:theme="@style/LuxListDialog" android:label="" android:name=".CompatModeAddDialog">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</activity>
<activity android:label="" android:name=".ActivityOverlay" android:noHistory="true">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</activity>
<activity android:theme="@style/Theme.Welcome" android:label="" android:name=".Wizard" android:noHistory="true">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</activity>
<service android:name=".AutobrightService">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</service>
<service android:name=".LuxApp">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</service>
<service android:name="com.vito.lux.Widget$Update" android:configChanges="orientation|screenLayout|uiMode">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</service>
<service android:name=".CompatibilityCheck">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</service>
<service android:name=".ScreenCheck">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</service>
<service android:name=".NightModeService">
<intent-filter>
<action android:name="android.intent.action.RUN" />
<category android:name="android.intent.category.RUN" />
</intent-filter>
</service>
<meta-data android:name="com.google.android.backup.api_key" android:value="AEdPqrEAAAAIhUIV218r51g-xwWV1BeqBZ0FUUTfHFHWSUHirQ" />
</application>
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.GET_TASKS" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-feature android:name="android.hardware.sensor.light" android:required="true" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera" />
</manifest>
Click to expand...
Click to collapse
why don't use logcat :good: it's more helpful :victory:

I need help on my theme compatibility

I have made theme which works awesomely on Nova and ADW launcher, But apex launcher doesn't pick my themes and Go launcher even doesn't try to show my theme.
Here it is my manifest.xml, any idea what i'm missing?
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.ark.aeroglasstheme"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="14" />
<application android:icon="@drawable/icon" android:label="@string/theme_title">
<activity android:name="com.ark.aeroglasstheme.MainActivity" android:label="@string/theme_title">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="com.anddoes.launcher.THEME" />
<action android:name="android.intent.action.MAIN" />
<action android:name="com.gau.go.launcherex.theme" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.INFO" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="com.anddoes.launcher.THEME" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="com.fede.launcher.THEME_ICONPACK" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<action android:name="org.adw.launcher.THEMES"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
</application>
</manifest>

activity name

Hi anybody, anybody knows how to find activity name of SNote application as its AndroidManifest.xml is dropped below. Most of app's activity name is same as their package name but seems some apps' activity name is a bit difficult to find it. Any help would be appreciated, also if possible to tell me is there any method or something to find it out.
Thanks
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="1303292151" android:versionName="5r22151FV03" package="com.sec.android.app.snotebook"
xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.ACCOUNT_MANAGER" />
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.WRITE_CONTACTS" />
<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.READ_SYNC_STATS" />
<uses-permission android:name="android.permission.READ_SYNC_SETTINGS" />
<uses-permission android:name="android.permission.WRITE_MEDIA_STORAGE" />
<uses-permission android:name="android.permission.NFC" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="com.sec.android.widgetapp.q1_penmemo.permission.READ" />
<uses-permission android:name="com.sec.android.widgetapp.q1_penmemo.permission.WRITE" />
<uses-permission android:name="android.permission.READ_CALENDAR" />
<uses-permission android:name="android.permission.WRITE_CALENDAR" />
<uses-permission android:name="android.permission.CHANGE_COMPONENT_ENABLED_STATE" />
<uses-permission android:name="android.permission.REORDER_TASKS" />
<application android:theme="@style/CustomTheme" android:label="@string/app_name" android:icon="@drawable/launcher" android:name="com.infraware.SNote" android:debuggable="false" android:hardwareAccelerated="true" android:largeHeap="true">
<meta-data android:name="android.nfc.disable_beam_default" android:value="true" />
<activity android:icon="@drawable/launcher" android:name="com.infraware.filemanager.FmFileListActivity" android:launchMode="singleTop" android:configChanges="locale|keyboard|keyboardHidden|orientation|uiMode|screenSize" android:windowSoftInputMode="adjustPan" android:hardwareAccelerated="true" />
<activity android:icon="@drawable/launcher" android:name="com.infraware.filemanager.FmFileSyncActivity" android:screenOrientation="sensorLandscape" android:configChanges="locale|keyboard|keyboardHidden|orientation|uiMode|screenSize" android:hardwareAccelerated="true" />
<activity android:icon="@drawable/launcher" android:name="com.infraware.filemanager.FmFileTreeListActivity" android:launchMode="singleTop" android:configChanges="locale|keyboard|keyboardHidden|orientation|uiMode|screenSize" android:windowSoftInputMode="adjustPan" android:hardwareAccelerated="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SNOTE_GET_CONTENTS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SNOTE_PICK" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SNOTE_CREAT_TEMPLATE" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SNOTE_FILE_LIST_REFRESHE" />
</intent-filter>
</activity>
<activity android:theme="@*android:style/Theme.Translucent.NoTitleBar.Fullscreen" android:name="com.infraware.note.UxNotePickerActivity" android:configChanges="locale|orientation|uiMode|screenSize" />
<activity android:icon="@drawable/launcher" android:name="com.infraware.note.UxNoteActivity" android:configChanges="locale|keyboard|keyboardHidden|orientation|uiMode|screenSize|fontScale" android:windowSoftInputMode="stateAlwaysHidden|adjustResize" android:hardwareAccelerated="false" />
<uses-library android:name="com.google.android.maps" />
<activity android:icon="@drawable/launcher" android:name="com.infraware.common.helper.UiMapviewActivity" android:configChanges="locale|orientation|screenSize" android:hardwareAccelerated="true" />
<activity android:theme="@style/SNote.Theme.Transparent" android:icon="@drawable/launcher" android:name="com.infraware.note.UxInboundLauncherActivity" android:configChanges="locale|keyboard|keyboardHidden|orientation|uiMode|screenSize" android:hardwareAccelerated="true">
<intent-filter android:label="S Note">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="application/snb" />
</intent-filter>
<intent-filter android:label="S Note">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="application/octet-stream" />
<data android:scheme="content" />
<data android:host="gmail-ls" />
</intent-filter>
<intent-filter android:label="S Note">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="*/*" android:scheme="file" android:host="*" android:pathPattern=".*\\.snb" />
<data android:pathPattern=".*..*..*..*..*.snb" />
<data android:pathPattern=".*..*..*..*.snb" />
<data android:pathPattern=".*..*..*.snb" />
<data android:pathPattern=".*..*.snb" />
<data android:pathPattern=".*.snb" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.snote.launchbyshortcut" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/jpeg" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/png" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
<data android:mimeType="video/*" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.snote.FACEBOOK_SERVICE" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VOICETALK_VIEW_SMEMO" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity android:name="com.infraware.note.UiPageEditorActivity" />
<activity android:name="com.infraware.note.UiPagePickerActivity" />
<activity android:name="com.infraware.note.UiInternalPagePickerActivity" />
<activity android:name="com.infraware.uxcontrol.uicontrol.UiSmemoSelectActivity" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:icon="@drawable/launcher" android:name="com.infraware.filemanager.search.FmSearchresultActivity" android:launchMode="singleTop" android:configChanges="locale|keyboard|keyboardHidden|orientation|uiMode|screenSize" android:windowSoftInputMode="stateUnspecified|adjustUnspecified" android:hardwareAccelerated="true" />
<activity android:theme="@*android:style/Theme.Translucent.NoTitleBar" android:name="com.infraware.common.helper.EvPreOpenHelperActivity" android:configChanges="locale|keyboard|keyboardHidden|orientation|uiMode|screenSize" />
<activity android:name="com.infraware.note.UiExternalPagePickerActivity" android:configChanges="locale|orientation|uiMode|screenSize" />
<activity android:theme="@style/CustomTheme" android:icon="@drawable/launcher" android:name="com.infraware.note.UiSettingsActivity" android:hardwareAccelerated="true" />
<activity android:name="com.infraware.uxcontrol.uicontrol.UiClipArtDialogFragmentActivity" />
<activity android:name="com.infraware.uxcontrol.uicontrol.UiShapeDialogFragmentActivity" />
<activity android:theme="@*android:style/Theme.DeviceDefault" android:icon="@drawable/launcher" android:name="com.infraware.note.UiAddTagActivity" android:configChanges="locale|orientation|screenSize" android:windowSoftInputMode="adjustResize" android:hardwareAccelerated="true" />
<service android:name="com.infraware.filemanager.webstorage.google.WSGoogleServiceSNote" android:exported="false">
<intent-filter>
<action android:name="com.sec.android.app.snotebook.WS_GOOGLE" />
</intent-filter>
</service>
<service android:name="com.infraware.filemanager.webstorage.evernote.WSEvernoteServiceSNote" android:exported="false">
<intent-filter>
<action android:name="com.sec.android.app.snotebook.WS_EVERNOTE" />
</intent-filter>
</service>
<activity android:icon="@drawable/launcher" android:name="com.infraware.uxcontrol.uicontrol.tutorial.Tutorial" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:name="com.diotek.update.LanguageUpdateActivity" />
<activity android:icon="@drawable/launcher" android:name="com.infraware.note.UiFavoriteSearchResultActivity" />
<activity android:icon="@drawable/launcher" android:name="com.infraware.note.UiFavoritesDialogActivity" />
<activity android:icon="@drawable/launcher" android:name="com.infraware.note.UiTagSearchListActivity" />
<activity android:theme="@*android:style/Theme.Translucent.NoTitleBar" android:name="com.infraware.uxcontrol.uicontrol.UiImageFilterDialogFragment" />
<receiver android:name="com.infraware.receiver.SignOutReceiver">
<intent-filter>
<action android:name="android.intent.action.SAMSUNGACCOUNT_SIGNOUT_COMPLETED" />
<action android:name="android.intent.action.SAMSUNGACCOUNT_SIGNIN_COMPLETED" />
<action android:name="android.intent.action.SNOTE_SYNC_COMPLETE" />
</intent-filter>
</receiver>
<receiver android:name="com.infraware.widget.SNoteWidgetProvider">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data android:name="android.appwidget.provider" android:resource="@xml/snote_widget_info" />
</receiver>
<service android:name="com.infraware.service.SnoteBackGroundRunningService" />
<service android:name="com.infraware.widget.SNoteTemplateWidgetService" android:permission="android.permission.BIND_REMOTEVIEWS" android:exported="false" />
<service android:name="com.infraware.widget.SNoteNoteWidgetService" android:permission="android.permission.BIND_REMOTEVIEWS" android:exported="false" />
<receiver android:label="@string/direct_widget" android:name="com.infraware.widget.SNoteDirectWidgetProvider">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data android:name="android.appwidget.provider" android:resource="@xml/snote_direct_widget_info" />
</receiver>
<activity android:theme="@style/widget_popup_window" android:name="com.infraware.widget.UiWidgetSelectTemplate" android:taskAffinity="" android:excludeFromRecents="true" android:launchMode="singleInstance" android:hardwareAccelerated="true" />
<receiver android:name="com.infraware.common.ReceiverClipboard">
<intent-filter>
<action android:name="android.intent.action.CLIPBOARD_TO_MEMO_INSERT" />
<action android:name="android.intent.action.SMEMO_TO_SNOTE" />
<action android:name="com.sec.android.app.snotebook.MAKE_NEW_NOTE" />
</intent-filter>
</receiver>
<receiver android:label="@string/widget3_name" android:name="com.infraware.widget.SNoteWidgetProvider3">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
<action android:name="android.intent.action.SNOTE_UPDATE_LOCK_INFO" />
</intent-filter>
<meta-data android:name="android.appwidget.provider" android:resource="@xml/snote_widget3_info" />
<meta-data android:name="com.sec.android.appwidget.widgetinfo" android:resource="@xml/snote_widget3_metadata" />
</receiver>
<service android:name="com.infraware.widget.SNoteWidgetProvider3$SNoteWidgetService" android:exported="false" android:configChanges="locale|keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize" />
<activity android:theme="@*android:style/Theme.Translucent.NoTitleBar.Fullscreen" android:name="com.infraware.widget.Widget3NotePickerActivity" android:configChanges="locale|orientation|uiMode|screenSize">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<service android:name="com.infraware.service.SNoteUtilService" android:exported="false">
<intent-filter>
<action android:name="com.infraware.snoteutil.FILE" />
</intent-filter>
</service>
<receiver android:name="com.infraware.note.SNoteScrapbookProbider">
<intent-filter>
<action android:name="android.intent.action.ADD_SCRAPBOOK" />
<data android:mimeType="image/jpeg" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.ADD_SCRAPBOOK" />
<data android:mimeType="image/png" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.ADD_SCRAPBOOK" />
<data android:mimeType="text/plain" />
</intent-filter>
</receiver>
<receiver android:name="com.infraware.common.ReceiverBootComplete">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</receiver>
<service android:name="com.diotek.smemo.SMemoMigrationService" android:exported="false" />
<activity android:name="com.infraware.note.UxServiceReceiverActivity" />
<activity android:name="com.diotek.smemo.SMemoMigrationRestartActivity" android:configChanges="locale|keyboard|keyboardHidden|orientation|uiMode|screenSize">
<intent-filter>
<action android:name="android.intent.action.RESTART_MIGRAITON" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>
</manifest>
I do it by using log cat..
#logcat -c
#logcat
then open snote and find in the logs..
Maybe android.intent.category.default but I think it would be easier to find using launcher that can make custom action shortcuts.
Sent from galaxy s4 zoom
jakuburban said:
Maybe android.intent.category.default but I think it would be easier to find using launcher that can make custom action shortcuts.
Sent from galaxy s4 zoom
Click to expand...
Click to collapse
nokiamodeln91 said:
I do it by using log cat..
#logcat -c
#logcat
then open snote and find in the logs..
Click to expand...
Click to collapse
For Snote it seems impossible I have tried several methods. Logcat, xshortcut, but none gave me the activity.
Sent from my SM-N9005 using Tapatalk

Finding and using intent from manifest.xml

I am trying to understand intents better and have spent several hours trying to figure them out. I have been able to get several to work, but I am stuck on trying to activate the screensaver from the stock Clock app. Long pressing the app shows a "start screensaver" shortcut, but I can't seem to activate it by intent. Nova Launcher shortcuts don't list it. The manifest.xml file for the clock app has these two sections (excerpts below) that I assume should have the answer, but I can't seem to make any of these intents work.
<service
android:name=".Screensaver"
android:label="@string/app_label"
androidermission="android.permission.BIND_DREAM_SERVICE">
<intent-filter>
<action android:name="android.service.dreams.DreamService" />
<action android:name="android.app.action.NEXT_ALARM_CLOCK_CHANGED" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<meta-data
android:name="android.service.dream"
android:resource="@xml/screensaver_info" />
</service>
Click to expand...
Click to collapse
<receiver
android:name="com.android.alarmclock.DigitalAppWidgetProvider"
android:label="@string/digital_gadget">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
<action android:name="android.app.action.NEXT_ALARM_CLOCK_CHANGED" />
<action android:name="android.intent.action.DATE_CHANGED" />
<action android:name="android.intent.action.LOCALE_CHANGED" />
<action android:name="android.intent.action.SCREEN_ON" />
<action android:name="android.intent.action.TIME_SET" />
<action android:name="android.intent.action.TIMEZONE_CHANGED" />
<action android:name="com.android.deskclock.ALARM_CHANGED" />
<action android:name="com.android.deskclock.ON_DAY_CHANGE" />
<action android:name="com.android.deskclock.WORLD_CITIES_CHANGED" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/digital_appwidget" />
</receiver>
Click to expand...
Click to collapse
Is it possible to launch the screensaver by send intent on Tasker based on the information above? If so, could someone point me in the right direction?
The entire manifest.xml is online, but I don't have enough posts to share the link.
I don't think the clock app launches the screensaver. I think that's done via the screensaver (daydream). I think the intent in the clock app is to bind the clock screensaver to the daydream app. You may realize, the screen saver only functions when idle and charging or docked. The screen has to time out by itself, not by a power button press.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers

Categories

Resources