General :: Can Android Modifier Key Fallback On Action?
Oct 23, 2012
I'm working on an input device that has a button that I'd like to act both as a home button when pressed by itself, but also work as a modifier for the other buttons on the device. I know you can do this in the kcm file with other buttons, and have something like:
Code:
key ESCAPE {
base: fallback BACK
alt, meta: fallback HOME
ctrl: fallback MENU
}
Is it possible to have something like:
Code:
key CTRL_LEFT {
base: fallback HOME
{SOMETHING HERE}: CTRL_LEFT
}
So that I can press that button with another button and have it not fallback on HOME?
View 1 Replies
Sep 23, 2010
I want to start an activity as a dialog, which can be simply done by: <activity android:theme="@android:style/Theme.Dialog">
But I want to do control the dialog, so I've to do it programmatically. Basically I want to modify this property of dialog: mCanceledOnTouchOutside = true
This will make the dialog cancel itself when touched outside of it's bounds. (Basically I want to replicate the popup behavior). The issue is I can't simply create a dialog and set it's layout since I need a call to activity (to initialized datasets)
View 3 Replies
View Related
Nov 3, 2010
I want to show some notification when android phone is connected to system. I implemented BroadcastReceiver for listening to event android.intent.action.ACTION_UMS_CONNECTED in my application But it is not working. Is it possible to capture this event.
View 3 Replies
View Related
Oct 31, 2010
I thought that Action was preeminent during intent resolution and if the intent had the same action as the intent filter, it would be considered a match regardless of data, if the filter did not specify anything. So I was very surprised to find that supplying action+data where filter had only action, causes it to fail. In the code below, if you comment out line 47 so that data is *not* sent, only then it resolves correctly. To get it to work with the data (an id that is simply a String), what mime type should I specify in the intent filter?
View 11 Replies
View Related
Apr 27, 2012
how to add a spinner to the action bar of an app. I looked everywhere online for at least 2 hours with no step by step tutorials. I also looked on the Android Developers site and that got me closer, but i still didn't get it. I am very very new to developing android apps.Basically i have four main screens on my app. Their names are "Mobs," "Animals," "Mods," "Updates." I want to be able to click the title of my app from ANYWHERE inside the app, and be able to have those for options drop down. When they are clicked, i want it to take me to the corresponding screen.
View 7 Replies
View Related
Oct 18, 2012
Where in kernel source I should look at events that causes screen off and on? I know there is early_suspend and resume but it looks like my phone awake state is much more longer so I try to find out how to bind to this events in kernel.
View 1 Replies
View Related
Feb 2, 2013
When an action is done in the middle of an animation of transition between screens, the animation is spoiled. Is needed to add a system that stops the animation, and begins the next action.
Using Samsung Galaxy Nexus with Android 4.2.1, Stock ROM from Factory Image.
I made a report to Google. [URL]
Some examples:
- Open an app and let many windows behind, for example: Settings > More > Networks > APN > [Your APN]. Press the back button of the navbar several times faster. The animations are spoiled and the phone shows ugly effects. Or press the back button slowly, and in the middle of the animation press back another time.
- Open an app and press the Recents button. Press the Recents button another time, and press it another time when the animation is being showed.
- Enter in Recents, press home and immediately press Recents button.
- Enter in an app and press an option, and press faster the location of the next option you are going, and you know previously where it is.
View 8 Replies
View Related
Sep 26, 2012
Is it possible to enable/disable action bar icons? The scenario is that on the action bar there are two search icons, but they do different jobs, one searches the contents of the app while the other filters the listview (searches the table of contents only).
So if a user only wanted to use only one search method, is it possible to make an option in the settings on the app to enable/disable action bar icons?
View 4 Replies
View Related
Feb 6, 2013
I'm on Note 2 with Android 4.1.2 and every time I click on a link in the stock browser (specially on youtube) the "Complete action using" keeps popping up.
I do selection "always" not to mention.
GT-N7100
View 3 Replies
View Related
Jan 14, 2013
I have a Sony Ericsson Xperia Neo (MT15i Hallon) with the newest Nightly CM10 installed. My problem is, that in Google Now, when I ask "What's this song" it says "This action is not supported in your country". I tried everything, changing language, timezone, default google search engine, nothing worked.
My question would be, is there a way to edit a file with rootexplorer to gain ability of using this feature?
View 2 Replies
View Related
Nov 17, 2013
My new LG G2. It has this shortcut if you long press volume up/down it starts quick memo/camera. But quick memo is useless for me I'd rather love to start a widget (a tasker task). I tryed several app's and xposed framework modules but I can't get a Widget working with the remapping.
How to remap the volume up hardware button to a tasker task widget?
View 2 Replies
View Related
May 20, 2012
I've been doing alot with the initialization routines in android just lately .
For all my efforts I have been unable to get the device-added init action trigger to fire,
Just to be clear this is set in init.rc and looks like the following,
Code:
on device-added-/dev/compass
start akmd
The above is taken from the init readme file which contains an example init.rc at the bottom
I did some further research and a quick search of the AOSP code. This revealed that the functionality is yet to be implemented. which obviously explains why the trigger wasn't being fired . The device-removed and service-exited triggers are also missing.
View 1 Replies
View Related
Jul 22, 2010
I'm new in Android development and I've a problem when I create my new activity.I want to use my activity before start it. For example, But, my "menu" and "MyActivity.class" aren't the same instance.
View 2 Replies
View Related
Jun 24, 2010
I am working on creating an Action Bar like the one from the new Android UI Patterns and I am running into a bit of trouble. I have a ViewSwitcher with two layouts in it. When the user taps the search button I animate between the two layouts. The problem is that the layouts are different sizes and I can't figure out how to make them take up the same amount of space. Here's what I mean. p.s. forgive the bad art, they are just place holders ;)
View 1 Replies
View Related
Nov 7, 2013
My current situation is that I have a phone with 2 camera apps on it, stock and camera FV-5.
Camera FV-5 is slower than the stock camera, so I only use it in situations which I need manual control.
Whenever I open whatsapp and try to send a photo, the app asks me which camera I want to use, with no option to always use stock. I don't want camera FV-5 to exist as an option, as I will open it if I want to use it.
Is there a way to remove an app from the list so that my phone does not recognise camera FV-5 as a camera?
View 4 Replies
View Related
Oct 3, 2009
I was wondering if its possible to have a broadcast receiver to listen when the app its in launches.I tried doing by creating a BroadcastReceiver to listen for the android.intent.action.MAIN action but it never gets called?Is there something I need to do or a different action I should be listening for?
View 3 Replies
View Related
Feb 2, 2010
I am using android.intent.action.ANSWER for receiving my call (android_OS). below i m giving code segment i used:
CODE:...........
in activity class i wrote
CODE:............
But i did not get any result. see my code and give me a feedback.
View 2 Replies
View Related
Feb 25, 2010
To make some action for some time I found that there are several choices:
use AlarmManager
use ScheduledExecutorService
use Handler's method postDelayed
What is big difference of all this? What is the best practice of making schedule action?
View 2 Replies
View Related
Jan 7, 2010
How to invoke call in android using ntent?...
View 2 Replies
View Related
Aug 14, 2009
Can you please tell me how to register SMS received action? I tried the following, but when I set up a breakpoint in onReceive() never get called. Please help if you have any idea.
import android.provider.Telephony.Sms.Intents;
registerReceiver(new MyReceiver, new IntentFilter(Intents.SMS_RECEIVED_ACTION));
private class MyReceiver extends BroadcastReceiver {
@Override public void onReceive(Context context, Intent intent) {
}
[Quote]
View 2 Replies
View Related
Nov 22, 2010
I have an app that crops faces - something the app can do in a nanosecond, but I want the user to think it takes a bit longer. So in a case on a button click.
Here is what I have:
CODE:........
The dialog shows fine, and the faces crop fine too. The problem is - when the user runs the app, the 2 happen simultaneously on the screen.
Is there a way to make it so the dialog appears, 3 seconds elapse on screen and then the cropFaces is run? That way it will look like it cropped the faces in a few seconds, and then the new page appears.
View 1 Replies
View Related
Aug 21, 2012
i need to make a lock app. so, that i 've to disable the action bar in my app...
View 2 Replies
View Related
Feb 15, 2009
I am using this code to send an email (with no errors in eclipse), but when I run it in the emulator, I get the "No applications can perform this action." error.String[] mailto = {prefemail}; // Create a new Intent to send messages Intent sendIntent = new Intent(Intent.ACTION_SEND); //Write the body of the Email String emailBody = ""; // Add attributes to the intent sendIntent.setType("message/rfc822"); endIntent.putExtra(Intent.EXTRA_EMAIL, mailto); sendIntent.putExtra(Intent.EXTRA_SUBJECT, "TrackMe Password"); sendIntent.putExtra(Intent.EXTRA_TEXT, emailBody); startActivity(Intent.createChooser(sendIntent, "Email sent.")); Do I need to install some mail app from it? I tried the K9 email app, installed it with adb, but I don't see any changes. Do I need to do something other than installing? Or is there another good program for it?
View 6 Replies
View Related
Apr 1, 2009
I'm trying to get an application / reciever / anything that can perform a task once every minute. I'm trying to use the intent-filter "android.intent.action.TIME_TICK" which, in theory, sends an Intent message every minute.
Does anyone have any code that uses the android.intent.action.TIME_TICK intent? I can't seem to get it to send the intent to my application and I can't find anything much on the internet. Has anyone used it successfully?
I have a manifest.xml as below.
CODE:...................
View 2 Replies
View Related
Jul 22, 2010
Code...
Doing something like this, but can't get notification.Reference said :
public static final String ACTION_PACKAGE_REMOVED
Since: API Level 1
Broadcast Action: An existing application package has been removed from the device. The data contains the name of the package. The package that is being installed does not receive this Intent
A need this intent to set uninstall password. Any suggestions?
View 1 Replies
View Related
Mar 12, 2009
When my application is running, a button is pressed.After my application processes this event, i want to continue to transfer this event to other applications. Is it possible? If yes, how to do that?
View 6 Replies
View Related
Feb 14, 2010
Can I receive a broadcast event in an activity? I've seen this done in broadcast receivers but not in an activity. In particular I would like to receive an event when a bluetooth device is found. ACTION_DISCOVERY_FINISHED.
Do I need to declare that in the activity intent filters? Should I be using permissions for that? How do I define the callback to handle that in the activity when i get receive the action?
View 2 Replies
View Related
Jul 2, 2010
Can you please tell me how can I launch the QuickContact action in android 2.1.
Like the one shown here:
http://1.bp.blogspot.com/_GTM_W5mVPTU/S-rk_0rla6I/AAAAAAAAADs/dUw4bDiagO4/s1600/Contacts.png
View 2 Replies
View Related
Mar 18, 2009
how can I detect Fling action in my own widget? I have implemented my widget as OnGestureListener.
And like in Gallery, I have a "GestureDetector mGestureDetector = new GestureDetector(this);"
For my onTouchEvent(), I have @Override public boolean onTouchEvent(MotionEvent event) {
// Give everything to the gesture detector boolean retValue = mGestureDetector.onTouchEvent(event); return retValue;
But my public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) is never get claeed.
View 3 Replies
View Related
Nov 17, 2010
If (in Android) I have an EditText box, how can I trigger an event when the user has finished entering data and hits return/Next?
I have tried using the code below but it seems to have no effect. I also get an 'The method onEditorAction(EditText, int, KeyEvent) from the type new extView.OnEditorActionListener(){} is never used locally' error.
myEditText.setOnEditorActionListener(new EditText.OnEditorActionListener() {
public boolean onEditorAction(EditText v, int actionId, KeyEvent event) {
if (actionId == EditorInfo.IME_ACTION_NEXT)}
View 3 Replies
View Related