Detect If Camera Is Launched?
Jan 29, 2013
I'm creating an app that launches the video camera using the following code...
[HIGH] Intent intent = new Intent("android.media.action.VIDEO_CAMERA");
startActivityForResult(intent, 1);[/HIGH]
I only want to launch this if the video camera is not open. I've run into the issue of having multiple video camera screens open.
View 1 Replies
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
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
Oct 14, 2010
How to detect if there is a front camera and if there is how to reach and use front camera ?
View 1 Replies
View Related
Oct 13, 2010
How to check if the android phone has a front camera too? I'd tried to use some help form https://docs.google.com/View?id=dhtsnvs6_57d2hpqtgr but Camera camera = FrontFacingCamera.getFrontFacingCamera(); sometimes works sometimes not.
View 1 Replies
View Related
Jun 24, 2010
How can I detect the presence of camera on an Android device?
View 11 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
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
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
Jan 15, 2010
I have an application that launch a thread when a ToggleButton is pressed, but if I press the home button, a new activity is started (I can return to the first activity if I press the back button), but I want to recovery the first activity launched state, which have the reference of the initial thread.
This is my code:
org.test.test.java:
////////////////////////////////////////
package org.test;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.TextView;
import android.widget.ToggleButton;
[code]....
View 5 Replies
View Related
Jul 21, 2012
Various parts of the Android system or Android apps are designed to launch a program, but aren't capable of launching an application shortcut. For example, they're willing to run a timer application, but they aren't willing to run its "start timer now" shortcut. One example is the samsung ICS lock screen, which is neat in other respects but suffers from this really lame limitation.
Is there an app that can be configured to run another app's shortcut? For example, I could configure the lock screen to launch "Fast Shortcut Helper", and fast shortcut helper will have already been configured to run the "start timer now" shortcut.
View 2 Replies
View Related
Dec 6, 2009
My camera stopped working. When I click my camera application I get the message "The application camera (process com.android.camera) has stopped unexpectedly. Please try again". It's just a blank screen?
View 3 Replies
View Related
May 18, 2010
I use Taskiller to "kill" or end active programs that I'm not using, so as to reduce battery drain. I notice with 2.1 that every time I power up, lots of apps are launched automatically. This wasn't the case with 1.9. Anybody know if there's a way to prevent this?
View 11 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
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
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