Android :: Source Code Of Sample Camera Application?

Apr 2, 2010

I want a sample application for camera in android. If anybody developed any application please share with me along with source code.

Android :: Source Code of sample Camera Application?


Android :: Droid Camera Application Source Code?

Jul 9, 2009

Where can I get the android Camera application source code, I'm referring to the camera application that is already installed on my G1, not the camera API source code.

View 1 Replies View Related

Android :: Sample Source Code For Beginner

Apr 7, 2009

I'm trying to get my 1st android application (blackjack) going and am so confused with layouts button etc etc. Are there any sample source code for me to review? I have ran through the source that come with the SDK and the android source tree.Still pretty confused. am I stupid?

View 3 Replies View Related

Android :: Camera API Sample Code

Feb 17, 2009

I tried google's camera API sample code. I found there are 2 problems: 1> It only can take picture in Landscape orientation 2> After click the space "key", the application crashes.

XML: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical"> <SurfaceView android:id="@+id/surface" android:layout_width="fill_parent" android:layout_height="10dip" android:layout_weight="1"> </SurfaceView> </LinearLayout> Java code: /** * Copyright (c) 2007, Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License......

View 12 Replies View Related

Android :: Sample Code / Application Stopped Unexpectedly

Nov 8, 2009

The code seems no problem when I run it, but it stop unexpectedly in the emulator. I read some answer in the forum, It has to look at the logcat to see about the exception handler. But I do not really understand the logcat output. Please, developers, help me!. Below are the coding and my logcat output.

package com.example.testing; import android.app.Activity; import android.media.MediaPlayer; import android.os.Bundle; import android.util.Log; import android.widget.TextView; import android.widget.Toast; import com.example.testing.R;
public class testing extends Activity {
private static final String TAG = "MediaPlayerDemo";
private MediaPlayer mMediaPlayer;
private static final String MEDIA = "media";
private static final int LOCAL_AUDIO = 1;
private static final int STREAM_AUDIO = 2;
private static final int RESOURCES_AUDIO = 3;
private static final int LOCAL_VIDEO = 4;
private static final int STREAM_VIDEO = 5;
private String path;
private TextView tx;
@Override public void onCreate(Bundle icicle) {super.onCreate(icicle);
tx = new TextView(this);setContentView(tx);Bundle extras = getIntent().getExtras()
playAudio(extras.getInt(MEDIA));}
private void playAudio(Integer media)
{try {switch (media){case LOCAL_AUDIO:/**
* TODO: Set the path variable to a local audio file path.*/path = "/res/raw/test1";
if (path == "") {// Tell the user to provide an audio file URL.Toast.makeText(testing.this
"Please edit MediaPlayer_Audio Activity, "
+ "and set the path variable to your audio file path."
+ " Your audio file must be stored on sdcard.",Toast.LENGTH_LONG).show(); }
mMediaPlayer = new MediaPlayer();
mMediaPlayer.setDataSource(path);
mMediaPlayer.prepare();
mMediaPlayer.start();
break;case RESOURCES_AUDIO:/**
* TODO: Upload a audio file to res/raw folder and provide
* its resid in MediaPlayer.create() method.*/
mMediaPlayer = MediaPlayer.create(this, R.raw.test1);
mMediaPlayer.start();}
tx.setText("Playing audio...");}
catch (Exception e) {Log.e(TAG, "error: " + e.getMessage(), e);}}
@Override protected void onDestroy() {super.onDestroy();
// TODO Auto-generated method stub if (mMediaPlayer != null) { mMediaPlayer.release();mMediaPlayer = null;}}}

LOGCAT OUTPUT 11-08 06:40:03.647: INFO/DEBUG(539): debuggerd: Jun 30 2009 17:00:51 11-08 06:40:03.659: INFO/vold(538): Android Volume Daemon version 2.0 11-08 06:40:03.678: ERROR/vold(538): Error opening switch name path '/ sys/class/switch/test2' (No such file or directory) 11-08 06:40:03.678: ERROR/vold(538): Error bootstrapping switch '/sys/ class/switch/test2' (m) 11-08 06:40:03.678: ERROR/vold(538): Error opening switch name path '/ sys/class/switch/test' (No such file or directory) 11-08 06:40:03.678: ERROR/vold(538): Error bootstrapping switch '/sys/ class/switch/test' (m) 11-08 06:40:03.678: DEBUG/vold(538): Bootstrapping complete 11-08 06:40:03.817: ERROR/flash_image(544): can't find recovery partition 11-08 06:40:03.918: DEBUG/qemud(546): entering main loop 11-08 06:40:04.588: DEBUG/AndroidRuntime(541): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<< 11-08 06:40:04.588: DEBUG/AndroidRuntime(541): CheckJNI is ON 11-08 06:40:04.828: DEBUG/qemud(546): fdhandler_accept_event: accepting on fd 10 11-08 06:40:04.828: DEBUG/qemud(546): created client 0xe078 listening on fd 8 11-08 06:40:04.828: DEBUG/qemud(546): fdhandler_event: disconnect on fd 8 11-08 06:40:04.877: DEBUG/qemud(546): fdhandler_accept_event: accepting on fd 10 11-08 06:40:04.877: DEBUG/qemud(546): created client 0xf028 listening on fd 8 11-08 06:40:04.877: DEBUG/qemud(546): client_fd_receive: attempting registration for service 'gsm' 11-08 06:40:04.877: DEBUG/qemud(546): client_fd_receive: -> received channel id 1 11-08 06:40:04.887: DEBUG/qemud(546): client_registration: registration succeeded for client 1 11-08 06:40:05.108: INFO/(542): ServiceManager: 0xac38 11-08 06:40:05.127: INFO/AudioFlinger(542): AudioFlinger's thread ready to run for output 0 11-08 06:40:05.147: INFO/CameraService(542): CameraService started: pid=542 11-08 06:40:05.207: DEBUG/AndroidRuntime(541): --- registering native functions --- 11-08 06:40:05.528: INFO/Zygote(541): Preloading classes... 11-08 06:40:05.538: DEBUG/dalvikvm(541): GC freed 764 objects / 42216 bytes in 10ms 11-08 06:40:05.717: DEBUG/dalvikvm(541): GC freed 278 objects / 17160 bytes in 4ms 11-08 06:40:05.897: DEBUG/dalvikvm(541): GC freed 208 objects / 12696 bytes in 5ms 11-08 06:40:05.967: DEBUG/dalvikvm(541): Trying to load lib /system/ lib/libmedia_jni.so 0x0 11-08 06:40:06.107: DEBUG/dalvikvm(541): Added shared lib /system/lib/ libmedia_jni.so 0x0 11-08 06:40:06.107: DEBUG/dalvikvm(541): Trying to load lib /system/ lib/libmedia_jni.so 0x0 11-08 06:40:06.107: DEBUG/dalvikvm(541): Shared lib '/system/lib/ libmedia_jni.so' already loaded in same CL 0x0 11-08 06:40:06.107: DEBUG/dalvikvm(541): Trying to load lib /system/ lib/libmedia_jni.so 0x0 11-08 06:40:06.107: DEBUG/dalvikvm(541): Shared lib '/system/lib/ libmedia_jni.so' already loaded in same CL 0x0 11-08 06:40:06.107: DEBUG/dalvikvm(541): Trying to load lib /system/ lib/libmedia_jni.so 0x0 11-08 06:40:06.107: DEBUG/dalvikvm(541): Shared lib '/system/lib/ libmedia_jni.so' already loaded in same CL 0x0 11-08 06:40:06.119: DEBUG/dalvikvm(541): GC freed 462 objects / 29144 bytes in 6ms 11-08 06:40:06.527: DEBUG/dalvikvm(541): GC freed 3584 objects / 171648 bytes in 17ms 11-08 06:40:07.699: DEBUG/dalvikvm(541): GC freed 11329 objects / 400856 bytes in 27ms 11-08 06:40:08.007: DEBUG/dalvikvm(541): GC freed 10472 objects / 438272 bytes in 28ms 11-08 06:40:08.327: DEBUG/dalvikvm(541): GC freed 10975 objects / 459800 bytes in 33ms 11-08 06:40:09.327: DEBUG/dalvikvm(541): GC freed 14372 objects / 506896 bytes in 36ms 11-08 06:40:09.658: DEBUG/dalvikvm(541): GC freed 11314 objects / 481360 bytes in 36ms 11-08 06:40:09.847: DEBUG/dalvikvm(541): GC freed 5928 objects / 248640 bytes in 30ms 11-08 06:40:10.027: DEBUG/dalvikvm(541): GC freed 349 objects / 37032 bytes in 24ms 11-08 06:40:10.228: DEBUG/dalvikvm(541): GC freed 778 objects / 48376 bytes in 33ms 11-08 06:40:10.327: DEBUG/dalvikvm(541): GC freed 321 objects / 37288 bytes in 34ms 11-08 06:40:10.757: DEBUG/dalvikvm(541): GC freed 477 objects / 29584 bytes in 34ms 11-08 06:40:10.788: DEBUG/dalvikvm(541): Trying to load lib /system/ lib/libwebcore.so 0x0 11-08 06:40:10.869: DEBUG/dalvikvm(541): Added shared lib /system/lib/ libwebcore.so 0x0 11-08 06:40:11.048: DEBUG/dalvikvm(541): GC freed 441 objects / 26224 bytes in 35ms 11-08 06:40:11.147: DEBUG/dalvikvm(541): GC freed 506 objects / 41464 bytes in 33ms 11-08 06:40:11.248: DEBUG/dalvikvm(541): GC freed 537 objects / 38832 bytes in 38ms 11-08 06:40:11.368: DEBUG/dalvikvm(541): GC freed 342 objects / 22552 bytes in 35ms 11-08 06:40:11.457: DEBUG/dalvikvm(541): GC freed 338 objects / 18736 bytes in 38ms 11-08 06:40:11.567: DEBUG/dalvikvm(541): GC freed 629 objects / 32136 bytes in 36ms 11-08 06:40:12.518: DEBUG/dalvikvm(541): GC freed 14257 objects / 497280 bytes in 57ms 11-08 06:40:12.868: DEBUG/dalvikvm(541): GC freed 11164 objects / 469576 bytes in 53ms 11-08 06:40:13.188: DEBUG/dalvikvm(541): GC freed 7134 objects / 311424 bytes in 55ms 11-08 06:40:13.357: DEBUG/dalvikvm(541): GC freed 752 objects / 43224 bytes in 41ms 11-08 06:40:13.449: DEBUG/dalvikvm(541): GC freed 598 objects / 31496 bytes in 43ms 11-08 06:40:13.558: DEBUG/dalvikvm(541): GC freed 413 objects / 26336 bytes in 43ms 11-08 06:40:13.597: INFO/Zygote(541): ...preloaded 1166 classes in 8066ms. 11-08 06:40:13.648: DEBUG/dalvikvm(541): GC freed 313 objects / 19952 bytes in 46ms 11-08 06:40:13.648: INFO/Zygote(541): Preloading resources... 11-08 06:40:13.707: DEBUG/dalvikvm(541): GC freed 54 objects / 11248 bytes in 43ms 11-08 06:40:14.118: DEBUG/dalvikvm(541): GC freed 337 objects / 15008 bytes in 46ms 11-08 06:40:14.338: DEBUG/dalvikvm(541): GC freed 280 objects / 11768 bytes in 44ms 11-08 06:40:14.368: INFO/Zygote(541): ...preloaded 48 resources in 712ms. 11-08 06:40:14.397: INFO/Zygote(541): ...preloaded 15 resources in 23ms. 11-08 06:40:14.448: DEBUG/dalvikvm(541): GC freed 117 objects / 8448 bytes in 50ms 11-08 06:40:14.498: DEBUG/dalvikvm(541): GC freed 205 objects / 8104 bytes in 45ms 11-08 06:40:14.557: DEBUG/dalvikvm(541): GC freed 36 objects / 1400 bytes in 53ms 11-08 06:40:14.567: INFO/dalvikvm(541): Splitting out new zygote heap 11-08 06:40:14.588: INFO/dalvikvm(541): System server process 569 has been created 11-08 06:40:14.597: INFO/Zygote(541): Accepting command socket connections 11-08 06:40:14.651: INFO/jdwp(569): received file descriptor 10 from ADB 11-08 06:40:14.727: WARN/System.err(569): Can't dispatch DDM chunk 4d505251: no handler...
read more»

View 2 Replies View Related

Android :: Sample Code To Develop Fake Call Application In Droid?

Sep 15, 2010

I want to develop an fake call application in android. After clicking on button i have to receive a fake call with in a given time period. Is there any way to do this..
any clues or sample code...?

View 1 Replies View Related

Android :: How To Run Application Source Code?

Jun 5, 2010

For all of you android devs out there that have the Android simulator running on your computer, you know that there are a few built in apps that are already installed on your 'phone'. I had an idea for an app that would utilize a function that is already being done in the spare parts app that comes already installed. I went on to the android developer site, dug through the source code files, and found the spare parts app, and am now trying to set it up so that running it from eclipse on my machine actually runs the app in the simulator.

In other words, I want to be able to make changes to and adjust some of the things in that app for my own needs. But it won't compile, because of a number of different errors. How do I get that source code running on my local machine? Is there some special trick that I just don't know about? I thought that if I could get the source code than the rest would be easy, but it isn't being too easy.

View 1 Replies View Related

Android :: Default Application Source Code?

Nov 9, 2010

I have downloaded the Source code of Android 2.2. Where can I find the default application source code of Android (Calculator,Calender etc on pressing Home Button).

View 1 Replies View Related

Android :: Twitter Application Source Code

Jul 7, 2010

Where can I find the source code for the Android Twitter Application?

View 4 Replies View Related

Android :: License Source Code Of Application

Oct 16, 2010

I have an Android app and some company is interested in using part of it and rebranding it for its customers. One of the options would involve licensing the code to them for use in this specific case. Would you recommend doing that as a good option? What is the cost of licensing code in comparison to the cost of the original development. Should the license be for any use of the code, for using the codebase/year?

View 1 Replies View Related

Android :: Want Default Application Source Code

Oct 19, 2009

Is there any repositry for the default apps source code like Contacts,Launcher,etc.I do know about the android source.com. But i dont have a Linux or Mac box.Hence is there a place where i can download the default apps.

View 2 Replies View Related

Android :: Create New Application In Source Code Using Eclipse

Aug 6, 2010

I have eclair 2.1 source code and i have taken same on eclipse. I want create a new application in the existing eclair source code. I know , how to create an android application using android sdk on eclipse. But i don't know how to create an application with in eclair source code using eclipse.

View 2 Replies View Related

Android :: Where To Download TourIt Application Source Code

Aug 12, 2009

Can anyone tell me that where can i download the source code of TourIt application. I have read the busy coder's android development ebook. it was very nice if i get that application source code it would be helpful to reference.

their source code bundle don have this sample application.

View 2 Replies View Related

Android :: Build Dialer / Phone Application From Source Code?

Feb 9, 2010

I am trying to write test cases for "phone" native application , so i am trying to build that application from the source code...
It has some dependency with the Contacts app , i am not able to resolve that.

View 1 Replies View Related

Android :: Application Installer - Source Code Path For Software Installations Via Adb

Apr 5, 2010

My company is developing a new device that will run on Android. I'm tasked to develop the software installation process, including application installations and updates as well as system software updates. I want to leverage as much as possible from the Android SDK. I'm looking for any advice or references to help me get started. I've downloaded the source code for Android 2.1 and have been tracing the source code path for software installations via adb. The path has taken me through adb client -> adb server -> adb deamon - > PackageManagerService -> installd.

View 2 Replies View Related

Android :: Where To Download Sample Droid BSP(Source) For ARM?

Nov 17, 2009

I am looking for a ARM processor version of Android BSP to port it for one of my experimental boards.
Where can I download this?

View 1 Replies View Related

Android :: Can Use Android Source Code In Application (Commercial)

Aug 23, 2010

can i use android apps source code from google like calendar, todo list directly in my commercial application......

View 3 Replies View Related

General :: Add New Device Tree / Kernel Source Code To CM Source And Compile?

Apr 15, 2012

i have: CMW recovery, Kernel source code on local computer, full repo cm source + toolchains.

How to add my device tree, kernel source code to CM source and compile CM7 ROm?

View 3 Replies View Related

HTC Droid Eris :: Intent URI Code To Launch Camera Application?

May 2, 2010

im trying to find the code to launch the camera app and I cant figure it out.

View 3 Replies View Related

Android :: How To Compile Sample Code

May 20, 2010

I'm breaking into GUI programming with android, trying to compile and analyze Lunar Lander sample program. The instructions for using Eclipse say to select "Create project from existing source" but that option doesn't exist. If I select File->New->Project I can select "Java project from Existing Ant Buildfile". Using that I've tried selecting various xml files as "Ant Buildfile" but all give me the "The file selected is not a valid Ant buildfile" error.I just want to run GUI sample projects, preferably with Eclipse. Any useful tips will be appreciated.

View 2 Replies View Related

Android :: Sample Code Of Getting Brightness From Droid?

Mar 20, 2009

I want to use the system brightness in android,anybody can give me a sample code of getting the brightness from android.

View 18 Replies View Related

Android :: Clear All Cookies / Sample Code To Do This?

Oct 27, 2010

How can i clear all cookies?

could u give me a sample code to clear all cookies?

View 1 Replies View Related

Android :: Sample Code In GPL3 Release

Oct 7, 2010

I used some of the code from the Android sdk examples.Legally I know apache is compatible with GPL3 (license for my code), but what do I do about the copyright notice in the code?Do I keep the "Copyright (C) 2009 The Android Open Source Project" and apache license and just indicate the content was changed.Has anyone dealt with this? The Legal dept has no clue.

View 3 Replies View Related

Android :: Sample Code For Image Upload

May 19, 2010

In would like to write a simple Android application that takes a picture from the camera and uploads it to a webserver. Additionaly, I would like it to print in the screen the response from the server which is a simple text string.Do you know if there is any sample code that does something like that?

View 1 Replies View Related

Android :: Sample Code To Handle Exceptions

Sep 27, 2010

I am new to Android mobile application development.I would like to know , how can I handle the exception , like HttpConnection related exceptions or any other exceptions.Do I need to display an AlertDialog to the user.Kindly provide a sample code or project source code on how can I handle HttpConnection or similar type of Exceptions.

View 1 Replies View Related

Android :: Bluetooth Developers Guide / Sample Code

Dec 18, 2009

Bluetooth Developers, We have just published an Android Bluetooth Developers Guide, and a Sample Application. I hope these become a useful resource, Android Bluetooth Project Lead

View 4 Replies View Related

Android :: Does Anyone Know Of Any Sample Code For Simple Shake Detector?

Jul 16, 2010

I'm looking for an android code example on how I would be able to make my phone listen for a "shake" and then have it trigger webview.reload(); to simply reload the webview on the activity. Anyone have any insight on this topic?

View 2 Replies View Related

Android :: Stand Alone Sample Code For Video Capturing?

Mar 31, 2010

Is there a stand-alone sample code for video capturing in Android ?

View 2 Replies View Related

Android :: Looking For Code Sample To Incrementally Update List

Feb 19, 2010

I have a listview in the first page of the application which takes almost a minute to populate. It would be nice if after each entry were generated (in a non-ui thread) the list added that entry - Simply calling refresh in the UI thread with a handler post does not do the trick. I use an ArrayAdapter constructed with a list.

View 2 Replies View Related

Android :: Need To Make Slide Show Sample Code

Aug 31, 2010

I am making a slideshow app. I have been looking for a sample code, but I couldn't get it. Does anyone know sample code for it?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved