i want to develop an application on android phone regarding voice recorder.i have to record a sound for about 30 seconds and then stop and save the recorded sound in gallery.can anyone post the code if you have please?
Hello everybody,
I want to take a photo with an Intent on android.provider.MediaStore.ACTION_IMAGE_CAPTURE,
next crop the result with:
Intent intent = new Intent("com.android.camera.action.CROP");
intent.setClassName("com.android.camera", "com.android.camera.CropImage");
I follow the sugestions made at:
Android: Crop an Image after Taking it With Camera with a Fixed Aspect Ratio
However when calling the crop activity I get (already checked the LogCat output) a permission error, saying something like:
Permission denial on a Intent to access the temporary image created by the camera activity on my SDcard.
Can you please suggest a solution for Android 2.2 ?
Thank you
In an Android application, we usually got the "Force Closed" error if we didn't get the exceptions right.
How can I restart my application automatically if it force closed?
Is there any specific permission is used for this?
I'm planning on releasing two versions of my Android apps:
Free with ads
Paid without
What is the recommended way of handing this while leaving the database compatible with both versions?
Hi guys,
I'm just writing an App for displaying the route between two coords (lat, long) in google maps view.
Displaying an single coord (even with a marker) works fine, but how to do this with 2 ones and the route between them?
I must admit that I'm quite new to Android and the maps-API...
Can I use other JVM languages besides Java (e.g. jruby, jython, clojure) to program for android, or is it java only?
There was a similar question asked over a year ago but I wasn't sure if there'd been any change since then.
Hi,
I have some piece of code which uses JNI. I can debug code wrote in Java directly in Eclipse (using ADT). I even have a script, which help me debug native code with gdb. However this is not very comfortable way for doing this.
Is it possible to configure Eclipse to use gdb (I guess gdbserver) for debbuging android native applications? Do you know where I could find any description of this?
Hello all,
When running a thread in Android/Java:
public void run()
{
while (running)
{
if (moreTasksToExec())
{
task = getNextTask()
task.exec();
}
}
}
Is it OK to let it run and not using a semaphore to block while no work needs to be executed?
I am only using one thread, so I need no inter-thread synchronization.
I've noticed that changing the background color of an android widget (f.ex. Button or TextView) by program:
myButton.setBackgroundColor(Color.BLUE);
makes it to loose its 3D shape, border, and shadows effects, and then appears like a ugly flat square. What am I missing?
Sorry for the very naive question but I couldn't get it right although tried for a time.
How can you display upside down text with a textview in Android?
In my case I have a 2 player game, where they play across from each other. I want to display test to the second player oriented to them.
dear friends,
i want to put "Go" button in android appliation softkeyboard
for search and other related scenarios can any one guide me how to achieve this? with example.
any help would be appriciated.
The Android API with LocationManager.getProvider(String name) has the option to choose between NETWORK_PROVIDER and GPS_PROVIDER. What should I consider when choosing one for my application?
In an Android app, I am using one static instance of org.apache.http.impl.client.DefaultHttpClient and sharing that instance in all activities and services of the app, so that this client may be used to log in once to a remote server and all subsequent user requests to that remote server will remain authenticated.
Every activity or Service that makes a GET or POST to this remote server calls the same method : MyUtilityClass.gettHttpClient()
Do I need to worry about synchronization of this httpclient? If so, what is the best way to handle this?
I need to make my client talk to a XML-RPC service. I found a couple of interesting ones on the web like android-xmlrpc. Have you used any such libraries in your code? Which library do you recommend?
For example I'm travelling and need an important document from my colleague right now. I know I can use email but the android email app works so slow. Is there an app that does just that?
I want to load third-party jni library in runtime.
I've tried to load directly from sdcard. It expectedly failed.
I've tried to copy library from sdcard to /data/data/app/ and then
System.load(/data/data/libjni.so)
It works on HTC HERO, but fails on HTC Legend with Android 2.1.
it fails during execution of native code and write to log uninformative stack trace
Any other way to do it?
Does the android market support distribution of content packages? Is there any way a dependency structure can be created so that to obtain a content package for the app depends on the app to be installed as well?
With my current code base I'd like to build two or more different versions of my Android app (free, premium, ...). For the iPhone (XCode) I can definte different targets. Is there something similar implemented in Eclipse?
Currently I am using:
Algorithm_mode_padding="RSA/ECB/PKCS1Padding"
Provider="BC"
I have heard that ECB can cause patterns in the output. What is the most secure Algorithm, mode and padding for Android at the moment? I will be using this for license files.
Also, what is the best keysize to use when creating a new public and private key?
I am looking into providing an Android SDK add-on but can't seem to find a simple "how to". Is this limited to "device manufactures"? Are the details embedded in the actual SDK? Any guidance will be greatly appreciated.
Most of the Android users use the GO SMS app, and the iPhone users use their normal messaging app (Android rocks). Now, whenever a user types a message and presses the send button, the message's edit text field sets a glossy green background, also the green colored background comes floating at the back of the edit text field. How do they do it?
(I have been searching this for a while, but was unable to find an answer.)
i got 2 java files app.java and gallaery.java
App.java
public class App extends Activity implements OnClickListener {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Button Listvideo = (Button) findViewById(R.id.Listvideo);
Listvideo.setOnClickListener(this);
public void onClick(View view) {
if (view == findViewById(R.id.Listvideo)) {
// i have to call gallery.java here which executes list of images in the android pone
}
}
The following are the changes in phone state in android
CALL_STATE_OFFHOOK
CALL_STATE_IDLE
CALL_STATE_RINGING
When i am making an outgoing call ,one received my call and after some time I or He ends the call.
When i have a incoming call ,I received the call and after some time I or He ends the call.
Where i want to use the broadcast receiver and Listener and why service is using for doing this.