Android :: Detecting When Launched By An Alias
Sep 2, 2009
I'm trying to figure out how my Activity can detect if it was launched by an alias as opposed to by the main icon.
Is it possible to do this?
CODE:............
alias1 and alias2 appear as expected in the Launcher, but I don't see any way in multipleEntryPointTestActivity to tell which of these icons launched the application.
View 2 Replies
Mar 24, 2009
Is there a way to alias the path to my custom view class (perhaps in its <styleable>) so I can say <MyGreatView> in the XML, instead of <com.myco.myapps.MyGreatView>
View 3 Replies
View Related
May 14, 2010
Does anyone know the syntax for an XML file for a single bitmap drawable resource? What I'm looking to do is "alias" a drawable in my app. I have need for the same image with 2 different names, and rather than including the image twice in my res/drawable directory, I'd rather alias it (it's fairly large). In other words, instead of:
res/drawable/name1.png res/drawable/name2.png
I'd like to have:
res/drawable/name1.png res/drawable/name2.xml
where name2.xml looks SOMETHING like this:
<?xml version="1.0" encoding="UTF-8" ?> <bitmap src="@drawable/name1" />
Is this possible? If so, any idea what the syntax should be? I can't find it in the docs, and I've had no luck with trial-and-error.
You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
View 6 Replies
View Related
Oct 4, 2010
Is there an app for my Droid X that will allow me to send mail with my alias?
View 2 Replies
View Related
Mar 16, 2009
I need to execute some operation when the specific application is launched, it is possible to get notification when an application is to be launched, or after it is launched?
View 11 Replies
View Related
Jan 24, 2010
I have updated my android sdk to 2.1 version and was trying to build one application on that target.My application was bulid properly bt i am unable to launch tha emulator with the target 2.1. Its showing the message as:- "System image file too large for device's hardware configuration <74MB
View 2 Replies
View Related
Aug 31, 2009
I am studying android's code, I can find how ResolverActivity or ChooserActivity is being launched? how do they get launched?
View 4 Replies
View Related
Jul 19, 2010
Is there any way to get the instance of a launched activity(or any view in that activity )of a application in another application.
View 1 Replies
View Related
Jun 30, 2010
Is there a way of recieving a notification of some sort when a activity is launched. I'd like to monitor which applications are used and how often. Is is possible to register for some broadcast telling me when an application is launched, installed, unistalled etc? I believe I found a discussion or solution to this yesterday when I was looking for something else, but I'm not able to find it today.
View 3 Replies
View Related
Apr 16, 2010
Is is possible to get back a result intent when launching an Intent from a Notification? Similar to the way startActivityForResult() works ?
View 3 Replies
View Related
Jun 4, 2010
I'm trying to display a map using that rotates according to the phone's orientation. I have rewrite a part of the google sample to use a SensorEventListner instead of a SensorListener.
My Problem is when I try to use the findViewByID() method to display the map my application crashes on start. If I use MapView(Context, String) to create my view it works fine. Did I miss something to use main.xml layout file ? What's wrong with this ?
Here is my code :.......................
View 3 Replies
View Related
Nov 2, 2010
I am reading one simple web page, but when I launched my application after 2-3 min it show me output as: The operation timed out. Here ia my code...........
View 10 Replies
View Related
Jun 22, 2010
I am wondering whether is possible to use a BroadcastReceiver to listen for an Activity being launched. I have no control of the Activity I need to know about as it is from the Android platform.
View 3 Replies
View Related
Aug 31, 2010
Is there any differences between M100S and M110S? My app uses camera component. codes are as follows. So I wonder if app is crashed because of the difference between the devices or my codes are wrong.Code...
View 1 Replies
View Related
Dec 7, 2009
For some reason now when I launch shopsavvy the flash on my Behold2 keeps going off every 5 seconds and I am unable to scan the barcode.
View 1 Replies
View Related
Jan 24, 2010
On all the ads and blurb for the HTC Hero, its proudly announced that the device has a flash player. Going through the list of files (via Astro) there is indeed a file named 'HTCflashplayer'. So what exactly is this flash-player for? Does it need to be extracted and launched somehow? Because it sure as hell doesn't play much flash!
View 1 Replies
View Related
Jul 2, 2009
I have uploaded application to market and met weird problem which I never received before - when I click "Open" button when the application is installed I receive error dialog and the application is forced to close. I do not have this problem when start application from desktop launcher panel. I have already receive 2 stars for that though the exception even comes not from my cod - very unpleasant surprize from market app.
Application uses vibration and declares corresponding uses-permission "android.permission.VIBRATE" - this is what the exception tells me about, but I can't see such problem with other apps that use vibration on market.
Here the exception:
CODE:..............
Here is application manifest:
CODE:.........................
View 2 Replies
View Related
Jun 9, 2010
Applications can have any number of launchable activities. I know how to get the list of these activities via PackageManager.
Is there a way to determine which activities can be launched via startActivity?
For example, the Documents To Go app has different activities that will start Word, Excel, Powerpoint, PDF, etc... I am able to launch all o these just fine.
However, it also contains some activities that I am not able to launch with startActivity... If I attempt to do this I get a SecurityException.
I want to be able to determine which activities I can safely launch and which I cannot so I only present the user with a list of activities that I can safely launch from within my application...
View 1 Replies
View Related
Feb 24, 2009
I download android's codes and build it for simulator. The simulator can be launched successfully, but it always popup "SORRY! Application Messaging (in process com.android.Message)...", or similar popup information. Do u know how to resolve it? By the way, how can I integrate it with eclipse? When I use eclipse, it reports many errors as following:
Description Resource Path Location Type Project 'android' is missing required library:
'out/target/common/obj/ JAVA_LIBRARIES/framework_intermediates/classes-compiled.jar' android Build path Build Path Problem Project 'android' is missing required library:
'out/target/common/obj/ JAVA_LIBRARIES/framework_intermediates/classes.jar' android
Build path Build Path Problem Project 'android' is missing required library:
'out/target/common/obj/ JAVA_LIBRARIES/framework_intermediates/javalib.jar' android
Build path Build Path Problem Project 'android' is missing required source folder: 'development/ tools/activitycreator/src' android
Build path Build Path Problem Project 'android' is missing required source folder: 'out/target/ common/obj/JAVA_LIBRARIES/framework_intermediates/src/core/java' android
Build path Build Path Problem Project 'android' is missing required source folder:
'out/target/ common/obj/JAVA_LIBRARIES/framework_intermediates/src/im/java' android
Build path Build Path Problem Project 'android' is missing required source folder:
'out/target/ common/obj/JAVA_LIBRARIES/framework_intermediates/src/location/ java' android
Build path Build Path Problem Project 'android' is missing required source folder:
'out/target/ common/obj/JAVA_LIBRARIES/framework_intermediates/src/media/java' android
Build path Build Path Problem Project 'android' is missing required source folder:
'out/target/ common/obj/JAVA_LIBRARIES/framework_intermediates/src/telephony/ java' android
Build path Build Path Problem Project 'android' is missing required source folder:
'out/target/ common/obj/JAVA_LIBRARIES/framework_intermediates/src/wifi/java' android
Build path Build Path Problem
View 5 Replies
View Related
Dec 3, 2009
Like the title says, I need to detect when my app loses focus because another app is launched (Phone call comes in, or user hits Home etc.).
Overriding Activity.OnStop does not work because that is called even when switching activities within my app.
View 3 Replies
View Related
Oct 1, 2010
There are many queries on the perfect development board. I felt this information might be helpful to many newbies and experienced programmers alike! PandaBoard Early Adopter Program has been launched! PandaBoard is an open OMAP4 mobile development platform. PEAP (PandaBoard Early Adopter Program) is the fastest way you can get access to a PandaBoard. It is intended to build a range of open source community projects before the boards ship out to general public. PEAP is open to all.
PEAP web-site is accessible at: http://pandaboard.org
More details about PEAP are available at:
http://www.omappedia.org/wiki/PandaBoard_Early_Adopter_Program
You can request a PandaBoard by submitting your project proposal. PEAP program runs for a month. Get your creativity together, think of cool projects and submit them on
http://pandaboard.org.
At the above URL you will also find support mechanism, i.e. PandaBoard IRC Channel and PandaBoard group. Please submit any questions that cannot be asked on the IRC/ group to
omap...@gmail.com.
View 2 Replies
View Related
Aug 13, 2010
I want to run some code when an app is launched, so my broadcast receiver has to be notified when user open any app.
View 1 Replies
View Related
Aug 8, 2010
I am trying to root my phone, but I can't get the system recovery to come up. I'm following the Universal Eris Root for Dummies thread here and it said to power off and then power up while pressing the volume up key. This does not launch the system recovery for me, just boots up like normal.
View 4 Replies
View Related
Sep 30, 2009
Is that normal that Images indexed in the MediaStore do not have thumbnails generated until the Gallery app is launched and the user actively navigates to the bucket where the image is stored ?
I think it's quite odd as I thought thulbnails generation was part of media indexing.
View 9 Replies
View Related
Mar 24, 2009
I am just starting on an Android app and I am puzzled about why my Task activity stack is being reset any time the application is launched from the Home screen. I used the ADT tools to create the application in Eclipse. The main activity is ".UserLaunch" and it starts the activity ".About" when the user presses a button. If the user then presses HOME and then relaunches the app, .UserLaunch is displayed and is the only thing on the stack.
.UserLaunch has the launchMode singleTask. .About is standard. According to the documentation at http://developer.android.com/guide/topics/fundamentals.html#lmodes: "However, a "singleTask" activity may or may not have other activities above it in the stack. If it does, it is not in position to handle the intent, and the intent is dropped. (Even though the intent is dropped, its arrival would have caused the task to come to the foreground, where it would remain.) "The Task stack should be brought to the foreground and .About should still be displayed. I added Logging to all of the lifecycle events (edited to remove timestamps and shorten DEBUG/ and INFO/ to D/ and I/) and you can see that when HOME is pressed, .About cycles through onPause and onStop (as expected). Then when the app is again launched, .About is destroyed and .UserLaunch is restarted D/UserLaunch:(670): onCreate() D/UserLaunch:(670): onStart() D/UserLaunch:(670): onResume() I/ActivityManager(52): Displayed activity com.cequint.cityid/.UserLaunch: 4910 ms I/ActivityManager(52): Starting activity: Intent { comp= {com.cequint.cityid/com.cequint.cityid.About} } D/UserLaunch:(670): onPause() D/About(670): onCreate() D/About(670): onStart() D/About(670): onResume() I/ActivityManager(52): Displayed activity com.cequint.cityid/.About: 1031 ms D/UserLaunch:(670): onStop() I/ActivityManager(52): Starting activity: Intent { action=android.intent.action.MAIN categories= {android.intent.category.HOME} flags=0x10200000 comp= {com.android.launcher/com.android.launcher.Launcher} } D/About(670): onPause() D/About(670): onStop() D/dalvikvm(670): GC freed 413 objects / 34128 bytes in 72ms I/ActivityManager(52): Starting activity: Intent { action=android.intent.action.MAIN categories= {android.intent.category.LAUNCHER} flags=0x10200000 comp= {com.cequint.cityid/com.cequint.cityid.UserLaunch} } D/About(670): onDestroy() D/UserLaunch:(670): onRestart() D/UserLaunch:(670): onStart() D/UserLaunch:(670): onResume() Here is the relevant section of the Manifest: <application android:icon="@drawable/icon" android:label="@string/ app_name"> <activity android:name=".UserLaunch" android:label="@string/app_name" android:launchMode="singleTask" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name=".About" android:launchMode="standard"> </activity> </application> Anyone have any ideas why this is always resetting the Activity Stack?
View 11 Replies
View Related
Feb 19, 2010
Is there anyway to go back to a previously launched Activity while running an Instrumentation test? Currently, when I use sendKeyDownUpSync( KeyEvent.KEYCODE_BACK);, this forces my test to exit, rather than go back to the previous Activity.
View 2 Replies
View Related
Jul 7, 2010
I have a single bitmap with several individual pictures in (each one is an option) and I would like to detect when the user touches these pictures. I am using the event.getX and event.getY to detect where is pressed, I know the top left X Y and bottom right location of each of the pictures. What is the best way of detecting which one is pressed? (i.e. tieing up the event press and which picture has been pressed?
View 2 Replies
View Related
Oct 29, 2010
Cyberon Voice Commander provides a natural and reliable interface to enhance the communication between people and mobile phones. It is one of the most popular products from Cyberon Corp. Now French, German, UK and Iitalin version of Cyberon Voice Commander are launched in the Android Market, and more than 16 kinds of language are scheduled to be launched in the near future. It not only benefits worldwide consumers to speak their native language, but also make mobile phone more useful. Multi-language version of Cyberon Voice Commander supports Android 1.5 and above verions, selling USD5.99 in Android Market .
Main Features:
1) With Speaker-Independent (SI) recognition technology, users can use directly without any training or recording in advance.
2) Through Cyberon Voice Commander, you can control your mobile phone with voice, such as dialing to contact, check time, navegating an application and so on.
3) In addition to accurate identification, Cyberon Voice Commander also provides a number of possible recognition results, so that you can operate it in more convenient way.
4) Cyberon Voice Commander supports Bluetooth headfree with Android 2.2 version. It ensures user's safety when they are driving.
5) No network connectivity is required for using Cyberon Voice Commander.
View 1 Replies
View Related
Jun 3, 2009
There are return values and such that allow handling if SensorManager sensors and location providers aren't available, but what about the camera and microphone for audio recording? Is there a way to detect those in software, or are we just to assume that every device running Android (even the rumored set-top box) is going to have a camera and microphone and try to use them?
In the case of the camera, it would seem that Camera.open() returning null would indicate the lack of hardware. I don't know if that assumption is valid or not, though, considering it isn't documented as such.
In the case of the microphone, though, I don't see anything that could possibly be checked. The same goes for the camera if you're wanting to do video with the MediaRecorder class.
View 2 Replies
View Related
Oct 31, 2010
I have hooked in a ScaleGestureDetector to an OnTouchListener as instructed in Android documentation. For some reason the ScaleGestureDetector does not always detect end of a pinch gesture. This happens mostly when pinching fast from large to small.
The effect is that after I have released both fingers the detector does not fire the gesture end event. If I touch the screen with one afterwards it still thinks I'm continuing the scale gesture (keeps firing onScale events). I have to do another gesture to get the detector to fire end event.
I have added logs to the OnTouchListener and when the scale gesture gets stuck I still get motion events normally when using one finger and event.getPointerCount() is 1.
I have made sure that I don't have any other listeners intervening. View that has the onTouchListener is not the only view on screen but this effect happens also when I'm very careful to begin and end the gesture inside this one view.
Is there any way to improve the end detection?
Or if there a way for me to manually set the ScaleGestureDetector to fire onScaleEnd and change scaleGestureDetector.isInProgress() to false?
View 1 Replies
View Related