We want to connect wifi through a shortcut of keyboard just pressing key from keyboard wifi listing appear. Then we select SSID and fill password and connect with network. We are using this method but not working right now
</keybind>
<keybind key="A-q">
<action name="Execute">
<command>wlan0</command>
</action>
</keybind>
<keybind key="A-q">
<action name="Execute">
<command>wlan0</command>
</action>
</keybind
try this, getting rid of the top and botttom </keybind>
If doesn't work, check out this on trying to set up keybinds:
http://openbox.org/wiki/Help:Bindings#Key_bindings
Related
I want to set a custom notification icon to appear in my notifications panel for my flutter app when i use fcm(firebase cloud messaging) but there is only a grey circle that appears and no icon .
After Searching for a long time i finally found the answer and here it is:
Create a custom notification icon using this tool.
Paste the generated list of icons in android/app/src/main/res.
Go to your manifest android/app/src/main/AndroidManifest.xml and add the following meta data in the application (not activity) tag:
<meta-data
android:name="com.google.firebase.messaging.default_notification_icon"
android:resource="#drawable/ic_notification" />
<meta-data
android:name="com.google.firebase.messaging.default_notification_color"
android:resource="#color/colorPrimary" />
If you don't have a colors.xml in res/values, create one:
Done! It should work, let me know if it doesn't.
Discussion for the question is here.
I have build a TWA as described at https://developers.google.com/web/updates/2019/02/using-twa
I want to remove the bottom navigation bar. I have read that it can only be done programmatically with IMMERSIVE mode : https://developer.android.com/training/system-ui/immersive.html
So i need to add a Class associated to the activity "android.support.customtabs.trusted.LauncherActivity" and to add the hideSystemUI() code in onCreate() i guess.
How to do that ?
Here is the manifest :
....
<activity
android:name="android.support.customtabs.trusted.LauncherActivity"
android:theme="#style/Theme.LauncherActivity"
android:label="#string/app_name">
....
How to code the immersive mode for this activity ?
Using Bubblewrap
When using Bubblewrap (recommended), you will be asked which display mode the application should use as part of the init command.
If you have already initialized the application, modify twa-manifest.json, set display to fullscreen.
In AndroidManifest.xml
When building the application yourself and using the default LauncherActivity, you can get set the following meta-tag as part of the Activity definition in AndroidManifest.xml:
<meta-data android:name="android.support.customtabs.trusted.DISPLAY_MODE"
android:value="immersive" />
I am trying to show the Quick Contact Badge from a home screen widget which shows the favourite contact pictures in a grid layout. I went through the tips here but still I cannot figure it out.
When I click on a contact I always get the following error:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.gridwidget/com.example.gridwidget.ContactBadge}: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.android.contacts.action.QUICK_CONTACT
despite I am calling the 'ContactsContract.QuickContact.showQuickContact();' from an activity.
This intent is causing the problem: com.android.contacts.action.QUICK_CONTACT
I tried to add it in my manifest file without success:
<activity
android:name="com.example.gridwidget.ContactBadge"
android:label="#string/title_activity_contact_badge"
android:theme="#android:style/Theme.NoDisplay" >
<intent-filter>
<action android:name="com.android.contacts.action.QUICK_CONTACT" />
<action android:name="com.example.gridwidget.BADGE_ACTION" />
</intent-filter>
</activity>
Any suggestion? Since I am showing a collection, I used the RemoteViewsService pattern as described here
Thanks
I found the problem. The URI I was passing to ContactsContract.QuickContact.showQuickContact() was badly formatted.
It is working properly now
Is there a way to enable the new "Global HTTP Proxy" on a non-supervised iPhone running iOS 6?
Thanks!
I recall it correcly, it's only possoble via WiFi: Go to the Settings app, tap Wi-Fi, find the network you are connected to and then tap the blue disclosure arrow to configure the network. Scroll down to the HTTP Proxy setting, tap Manual.
I have an activity A (i want that work in background) that start activity B with code
moveTaskToBack(false);
Intent intent = new Intent(context.getActivity(), BActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK );
startActivity(intent);
In manifest i have
<activity android:name="ru.nekit.BActivity"
android:label="B"
android:taskAffinity="ru.nekit"/>
When start activity B and press Home button i see that there is two launcher icons
Question how can i do that wiil be only one launche icon?
Your app may have multiple activities found in your launcher based upon your manifest file and the XML attribute:
<intent-filter>
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
For each activity that you list containing this attribute, you will have another icon found within the Launcher for that activity. Make sure you only have this attribute set for the activity you want to display in the launcher.
You may also have installed multiple versions of your app when developing if you ended up changing the application name somewhere along the way. Be sure to uninstall all previous versions.