[Q] what is “BasicDream” in android ICS? - Android Q&A, Help & Troubleshooting

I read the Launcher source code which version is ICS. There is a RocketLauncher class which extends BasicDream. what is BasicDream? what can BasicDream do? I can find this line import android.support.v13.dreams.BasicDream;, but I can't find any information about it on Internet. Please give me some information to understand it. Thanks!
I found those code in launcher manifest.xml <activity android:name="com.android.launcher2.RocketLauncher" android:label="@string/dream_name" android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.DREAM" /> </intent-filter> </activity>
There is a new category android.intent.category.DREAM, what is it used to do? That RocketLauncher is an Activity?

Related

[Q] ADW Theme - Help...

Alright so to start off i have eclipse, the android sdk, and all that other good stuff setup properly.
Now the problem is i keep getting an error in the androidmanifest.xml saying
<uses-sdk android:minSdkVersion="4"/>
The error message when clicked upon is, <uses-sdk> tag appears after <application> tag.
I have tried multiple versions of the sdk build including 2.2 (as the guide suggest) and changing the minimum sdk requirement but i always seem to run into this exact same problem. Any ideas? Oh and also im using this template
AnderWeb-ADW.Theme-Template-d8491c4
Heres the entire AndroidManifest.xml...
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="Red.Glow.Adw"
android:versionCode="1"
android:versionName="1.0"
android:installLocation="internalOnly">
<application android:label="@string/theme_title" android:icon="@drawable/theme_icon">
<activity android:name=".main"
android:label="@string/theme_title">
<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>
<intent-filter>
<action android:name="org.adw.launcher.icons.ACTION_PICK_ICON" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="red.glow.adw.docks"
android:label="@string/theme_title"
android:icon="@drawable/theme_icon">
<intent-filter>
<action android:name="android.intent.action.PICK" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
</intent-filter>
</activity>
<provider android:name="red.glow.adw.docksProvider" android:authorities="red.glow.adw.docksProvider" />
</application>
<uses-sdk android:minSdkVersion="4"/>
</manifest>
Ehh figured it out.. AnderWeb's template build was throwing me up a ton of errors but kaydensigh's template works great.

[Q] fix force close on boot- need help

Ive gotten pretty far on my own launcher.I used this code to make it so when you click home your launcher appears:
<activity
android:label="@string/app_name"
android:name=".yourclassname.java" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
This works but when i reboot and click on my launcher it force closes. To fix this temporarily i just click on my app from a different launcher. Anyone have an idea on how to fix this? THANKS

Please Help, Settings crash I don't know why

Hi, earlier in my quest to create a Home Screen app, I have stumbled upon this code which was brilliant in order to let me do exactly what I wish to do. it couldn't work better than it does.
However ever since I included this when I run it on a tablet the following message appears "Settings have stopped working" the app continues functioning without any worries, however this is really bad because I don't want it to lhave these errors since I'm plannning on distributing the application....
<activity
android:name="com.myapp.launcher.MainActivity"
android:exported="true"
/>
<activity-alias
android:name="LauncherAlias1"
android:targetActivity="com.myapp.launcher.MainActivity"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity-alias>
<activity-alias
android:name="LauncherAlias2"
android:enabled="false"
android:targetActivity="com.myapp.launcher.MainActivity"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity-alias>

[Q] Missing Adactivity error message

Hi i'm very new at this so please bare with me, successfully made my first decompilation with apk tool and after modifying and and recompiling the apk on the bottom of the apk where the ad banner should be there is a message that reads: "Missing AdActivity with android:configChanges in AndroidManifest.xml."
This is what my Android Manifest looks like :
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="7" android:versionName="@string/version" package="com.tt.radio"
xmlns:android="schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.ACTION_HEADSET_PLUG" />
<application android:theme="@style/AppTheme" android:label="@string/app_name" android:icon="@drawable/icon" android:allowBackup="true">
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
<activity android:theme="@*android:style/Theme.Black.NoTitleBar" android:label="@string/app_name" android:name="com.tt.radio.SplashActivity" android:screenOrientation="portrait" android:configChanges="keyboardHidden|orientation">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:theme="@*android:style/Theme.Black.NoTitleBar" android:label="@string/app_name" android:name="com.tt.radio.MainActivity" android:launchMode="singleInstance" android:screenOrientation="portrait" android:configChanges="keyboardHidden|orientation" />
<service android:name="com.tt.radio.AudioSignal" android:enabled="true" />
<activity android:theme="@*android:style/Theme.Black.NoTitleBar" android:name="com.tt.radio.FbActivity" android:configChanges="keyboardHidden|orientation" />
<activity android:theme="@*android:style/Theme.Black.NoTitleBar" android:name="com.tt.radio.TwActivity" android:configChanges="keyboardHidden|orientation" />
<activity android:theme="@*android:style/Theme.Black.NoTitleBar" android:name="com.tt.radio.AboutActivity" android:configChanges="keyboardHidden|orientation" />
<activity android:theme="@*android:style/Theme.Black.NoTitleBar" android:name="com.tt.radio.back" />
<activity android:name="com.google.android.gms.ads.AdActivity" android:screenOrientation="portrait" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode" />
</application>
</manifest>
Any help would be much appreciated.
Duneglow
No one can help me with this?
Hi there ! I have the same issue as well. Are you managed to solve that problem so far ?
Sent from my LG-LS980 using XDA Free mobile app

[Question] Toggle tunnelbear vpn conection

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...

Categories

Resources