Android :: How To Call Inbuilt Camera Application?
Oct 8, 2009Being a newbie to Android I can't work out how to call the camera application (or you can say camera preview?) when I click a button in my custom application.

Being a newbie to Android I can't work out how to call the camera application (or you can say camera preview?) when I click a button in my custom application.
I wanted to know whether we can call Android's inbuilt ContactList. ?
View 1 Replies View RelatedI want to call camera application from my own application, take video. Then I want to get the video back and return to my application. How Can I do it?
View 3 Replies View RelatedI want to design an application that would use the android's inbuilt "Maps " application . I want to add the extra functionality to this application . Like , in my application , It would take 2 User inputs (i) Where the user currently is (ii) and where he wants to go (destination) . and I'll show the public transport options available for his journey . ( I'll hard code this part of the program) . But I want this application to have an extra functionality that this application will also show the traffic route of his journey . but for this part I want to use the inbuilt "Maps" application . Is there any way I can do that .
View 2 Replies View RelatedI am trying to look for a torrent solution. I have transdroid right now, and it is able to communicate with my seedbox and I can manage torrents that are already loaded on there. My problem is adding new torrents from my private websites. I have noticed that torrent-fu will allow you to search some of the public websites for new torrents, but that doesn't work for me. Right now I have to download the .torrrent file with my default browser.
And it saves the file as "unknown.torrent" then I have to open it with transdroid. This question is worded weird, but basically what I would like, is a torrent app with built in private torrent site searching / downloading. Or the ability to have my dolphin browser, recognise the .torrent extension, and associate transdroid with that.
I was wondering, is there anyway a developer can hide or exclude a certain app permissions from being seen by Android market users? And are the permissions for an app controlled or regulated by Google? Another question I have - Is there anyway to restrict PDF files from opening in the default browser? This is a problem when I am on a search engine and accidentally click a link that's a pdf file- I don't want pdf's downloaded without asking me permission atleast. And my last question, is there a way to view current extensions that are installed in the browser.? Where is androids inbuilt file manager? Does uninstalling an application completely take off everything related to that app from your phone?
View 2 Replies View RelatedMy 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 RelatedI am trying to open an image / picture in the Gallery built-in app from inside my application. I have a URI of the picture (the picture is located on the SD card).
View 3 Replies View RelatedI've just got my new Samsung Galaxy S I9000 phone which looks awesome. I had been using a Nokia N97 Mini which had behaved OK and I've been using Joikuspot as a WIFI tether which is important because of my need for the internet during the day. I was really please to find that the Galaxy has an inbuilt tether application in the Mobile AP however I cannot get it to work and wondered if any one else had any issues? The Mobile AP kicks in ok and I can find it on my laptop however when I try to connect it just tells me that it cannot connect and goes into trying to diagnose the problem. I tried to bypass this by inputting the wireless connection manually but when I do it tells me the security option is wrong but does this for every option in the list.
View 1 Replies View RelatedI am writing an android 1.5 application which starts just after boot-up. This is a service and should take a picture without preview. This app will log the light density in some areas whatever. I was able to take a picture but the picture was black.
After googling like crazy, i came across a bug thread about it. If you don't generate a preview, the image will be black since android camera needs preview to setup exposure and focus. I've created a surfaceview and listener but the onSurfaceCreated event never gets fired.
I guess the reason is, the surface is not being created visually. I've also seen some examples of calling the camera statically with MediaStore.CAPTURE_OR_SOMETHING which takes a picture and saves in the desired folder with two lines of code but it doesn't take a picture too.
Do i need to use ipc and bindservice to call this function or do you have any suggestion to achieve my goal (taking a picture without preview) and if so, would you give me a small piece of code as example?
I have downloaded a file manager application called "AndExplorer" inside my Android emulator.
My goal is to call this application inside my current custom application.
Could someone tell me how we could use the inbuilt camcorder api for our applications? I am trying to use the camcorder application to record videos for my own application. I would really appreciate an example of how to use it.
View 5 Replies View RelatedLike the Eclipse has a nice graphics integration runner for Android Test project, which does show how tests have run and what the errors or.. is there a built in (which runs with in Android simulator) test runner or any open source version of test ruuners pl.
Command Line version which runs though ADB is horrible.. had to search to even to figure out how many tests have run and what their fate is :)
I need to use some inbuild drawable I found in
http://developer.android.com/reference/android/R.drawable.html
I set drawable @drawable/ic_input_add to a button in my layout xml file. The add icon appears on the button of layout editor. But there is a error of that xml file said that
Description Resource Path Location Type ERROR Error: No resource found that matches the given name (at 'drawableLeft' with value '@drawable/ic_input_add'). spend_list.xml / AccountBook/res/layout line 5 Android AAPT Problem. How to use a inbuild drawable?
Smart-phones have built in ROM and RAM separately. Also a few phones has virtual memory support too. I would like to know what these memories are basically used for. I understand that RAM is available to user processes. But why do they have a big chunk of ROM? E.g. The wiki page for Droid Incredible says
512 MB DDR RAM
1 GB ROM (748 MB free to user) - what's this free to user?
plus 8 GB moviNAND - typically used for data storage
I am using vpnc on my computer to connect on my university VPN. Once again, the configuration is not straightforward, but, mainly, I use IPSec, I have an ID for the VPN, a gateway URL, a secret word, IKE Authmode of PSK, IKE DH Group, Xauth username, Xauth password, I need to enable Single DES, and I have two 'target networks'.
The fact is that Android (2.1)'s built-in VPN does not ask me all these info. It keeps asking for a pre-shared key (this is evidently the contrary of the certificate method), but I do not have such a pre-shared key. Connecting (to the VPN) through my computer works perfectly. What can I do to make Android compatible with the VPN?
Is there any inbuilt function to load PDF or DOC file.. Tried using Webview but content was not displayed...
View 7 Replies View RelatedI want to use a function for image recognition i don't want to make an algorithm.
please suggest me a function where i could compare two images and tell whether these images belong to the same object.
I want to add a external third party jar file in the inbuilt android app.I've added the LOCAL_CLASSPATH variable in Android.mk due to which the compilation goes fine. But during runtime, it is not able to find the class definiation which is in the JAR.Which is the variable I need to set to add the third party JARs in the .dex/.apk ?
View 3 Replies View RelatedI would like to know if it is possible to launch my application whenever a new entry is written to phone call log (i.e. out-going, in-coming or missed call). I wrote an application to manage the call log entries as per user preferences by listening to the publication of android.intent.action.PHONE_STATE events. My application is working fine as long as its process is running. However if the user has stopped my application with a task-killer application, then the log entries can not be managed as my app itself was not running. I need a way to make sure that my application is launched in the background if it is not already running when the android.intent.action.PHONE_STATE occurs. Or is it possible to launch my application as a service that always runs?
View 2 Replies View RelatedDoes anyone use them and are they still needed? I have heard that Android has built in virus protection. In another I read that Android is not capable of getting viruses. Can anyone elaborate on this?
View 3 Replies View RelatedI saw some previous posts on not using the task killers etc.... I wanted to ask whether one should end a particular ongoing active process or not or even for that matter "end all" active applications..... I know these active apps don't have any CPU usage but active apps r meant to use power rite? So should I use end or end all in the inbuilt task manager/power monitor widget or not to save my battery usage??
View 7 Replies View RelatedI am hard to impress and this device really impresses me. No bugs or issues yet that I haven't been able to fix. Camera works great. Screen is beautiful. Everything is solid. Call quality is great. Signal is rock solid (better, in fact, than my old LG, which was itself good). GPS is crazy accurate (can tell which couch I'm sitting on within the same room).
Motorola, Google, and Verizon is a team that's hard to match if the owner is ready to invest the time in setting up the device properly.
Does anyone know of any apps that can disable the camera? My work does not allow camera phones.
View 8 Replies View RelatedHow to make camera work for the android file system. When am I clicking camera application button, only square blocks are coming in the LCD screen.
View 2 Replies View RelatedStrange behaviour with emulator running with Cupcake. When emulator is launched (via ADT), a SD card is mounted correctly, and I click on Camera, I have a black screen and nothing happens, I got the famous error with Wait or Force close wait, wait, wait nothing happens. I create with AVD the target 3. I'm on Windows XP SP2.
View 9 Replies View RelatedHow do I pass an Intent from my application to the Camera application to bring it to the foreground?
View 4 Replies View RelatedWhen I was using the camera application, the ERROR: Please insert SD card before using camera jumped out because the driver of sd card haven't been porting properly. Is there anyway to use android camera application without sd card?
View 2 Replies View RelatedI've been trying to write an application that uses the Camera App to take a picture. So far, the only thing I've been able to get back successfully is a tiny bitmap picture. I've found several other posts related to this topic that have code that is reported to work, but it does not work for me. I'm hoping someone can steer me in the right direction. Below is the code I am using currently, but it causes the application to blow up.
private void takePicture(final int x, final int y, String description) {
// create a file on the SD card
File file = new File(Environment.getExternalStorageDirectory(),
"tmp_" + String.valueOf(System.currentTimeMillis()) + ".jpg");
// Create the URI that tells the camera where to put the picture.
mOutputFileUri = Uri.fromFile(file);
statusLine.setText("URI => " + mOutputFileUri);
mIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE)
.putExtra(MediaStore.EXTRA_OUTPUT, mOutputFileUri)
.putExtra(PIC_X, x) // x coordinate of square
.putExtra(PIC_Y, y) // y coordinate of square
.putExtra(PIC_DESCRIP,description)
.putExtra("return-data", true) ;
startActivityForResult(mIntent, PIC_FROM_CAMERA);
}
Ultimately, I want to be able to get the picture back and do two things with it: create a 64x64 icon that is displayed by the Android application, and upload the picture to a web application. I'm running this on the emulator using Android 2.0
I am trying to compile and run the Android Camera for sdk 1.6 (also called API level 4 or Donut release). While there is no minSdkVersion in the AndroidManifest, it clearly does not run on a donut device. In fact, if compiled with sdk 2.2 the camera will crash with a NoSuchMethodError execption on an avd or a G1 with sdk 1.6. I tried also checking out the [donut-release] tag, but, strangely, it won't even compile giving many errors like:
[javac] /home/mrucci/camtest2/src/com/android/camera/ImageManager.java:41: cannot find symbol
[javac] symbol : class DrmStore
[javac] location: package android.provider
[javac] import android.provider.DrmStore;
[javac] ^
[javac] /home/mrucci/camtest2/src/com/android/camera/Util.java:32: cannot find symbol
[javac] symbol : class MediaMetadataRetriever
[javac] location: package android.media
[javac] import android.media.MediaMetadataRetriever;
[javac] ^
[javac] /home/mrucci/camtest2/src/com/android/camera/MenuHelper.java:29: cannot find symbol
[javac] symbol : class ExifInterface
[javac] location: package android.media
[javac] import android.media.ExifInterface;
...
[javac] ^
[javac] /home/mrucci/camtest2/src/com/android/camera/ActionMenuButton.java:81: cannot find symbol
[javac] symbol : variable mScrollX
[javac] location: class com.android.camera.ActionMenuButton
[javac] mScrollX + mRight - mLeft),
[javac] ^
[javac] /home/mrucci/camtest2/src/com/android/camera/ActionMenuButton.java:81: cannot find symbol
[javac] symbol : variable mRight
[javac] location: class com.android.camera.ActionMenuButton
[javac] mScrollX + mRight - mLeft),
In particular, I really do not understand why ExifInterface is used in the "donut" tag when it has been introduced since API level 5.