Android :: AudioManager Declaration Crashes App

Oct 16, 2010

I'm having a bit of trouble with an Android app that I'm working on (mostly for practice and learning purposes) that uses the AudioManager object.

When defining the AudioManager as follows, however, the app crashes when I run it:

CODE:................

When I simply comment out the AudioManager declaration, the app does not crash. Any ideas as far as what I'm doing wrong? I'm a bit of a beginner to Android development, so I have a feeling that I'm missing something obvious.

I've also tried adding the android.permission.MODIFY_AUDIO_SETTINGS and android.permission.MODIFY_PHONE_STATE permissions to the AndroidManifest.xml file, but that has made no difference.

Android :: AudioManager Declaration Crashes App


Android :: Way To Use XML View Declaration As Definition?

Sep 9, 2010

I want to create an android Layout of which I want to instantiate several copies. I understand that declaring the layout in an XML will create a single instance. Is there a way to use the XML View declaration as a 'definition' rather than a 'declaration' ? Or is it possible to clone a view?

View 4 Replies View Related

Android :: Error Parsing XML / Text Declaration Not At Start Of Entity

Oct 10, 2010

I accidentally imported a resource file with a capital letter in the name (SDK 8) and as we all know, that corrupts the R.java file in a way that rebuilding the project doesn't fix (I renamed the file to something legal from within Eclipse, of course). So now the build chokes with the error above when it hits the first xml file in res. In SDK 7 the only fix was to build a fresh project and move everything over. I'm hoping there is something better in SDK 8.

View 8 Replies View Related

Android :: SetParameter In AudioManager.java

Mar 10, 2009

We are planning on using setParameter() function in AudioManager.java for turning on/off some audio effects from the UI. This function goes all the way to the HAL layer. However, we see a comment in the code saying the following (pasted at the end of mail). So, my question is it okay to start using this API with our own defined set of (key,value) or is there a possibility of this function disappearing later. If yes, then is there any other recommended function to pass on UI settings all the way down to the HAL.

CODE:...............................

View 2 Replies View Related

Android :: AudioManager Home-screen Widget

May 31, 2009

We just released our first widget to the market called AudioManager, it's available now and free to download to anyone who has cupcake already installed.AudioManager is a home-screen Widget that allows you to get live readings of your current volume levels on your Android phone (similar to your computer's "Volume Mixer").Tap on the screen and you can adjust the volume levels individually for the following streams: Alarm, music, notifications, ringer, system and voice call volume.The widget comes in two sizes, large (4x1) and small (2x1). The AudioManager Console is also available through your application launchpad in case you do not need the Widget on your screen but wish to access all volume streams from one place.Attached are a few screenshots, check it out and let us know. Only tested with Android's default home-screen, however, there are mixed reports of the widget working for aHome and dxTop with the latest versions.

View 4 Replies View Related

Android :: AudioManager Widget And Volume Manager

Mar 22, 2010

Alex here with Smart Android Apps, just wanted to let the community know about our newest release to the market, AudioManager Pro. We have released a fully featured version of our popular Android widget/volume manager and we welcome you all to try it out and to share any feedback you may have about the app. This is not simply a marketing "stunt" but we're actually really interested in finding out what people think about this newest version of AudioManager. If you have any questions please feel free to ask us at any time (info@smartandroidapps.com).

AudioManager Pro for Android - Multimedia http://www.smartandroidapps.com/audiomanager.php

Here's a litte bit of info about our app: Fully featured version of the popular AudioManager Widget and Volume manager.

Get all of your current volume levels straight from your home-screen. Tap on the widget to adjust volume levels independently.

Features:
* 4 different widget skins
* Save Audio Profiles (presets)
* Create profile shortcuts
* Mute, Loud and Save buttons
* No ads

View 4 Replies View Related

Android :: Activity Crashes When Remote Service Crashes

Jul 16, 2010

I'm trying to understand remote services at the moment and everything works fine, i can start the service and know how to communicate with it through the AIDL-interface. My problem is that the service seems to still run in the same process like the activity it was started from, because the activity crashes too, if there is an error thrown in the Service.

I set the service process to remote ( android:process=":remote" ) so what am i doing wrong? Or what do i have to do to unbind the service-process completely from the activity-process?

View 1 Replies View Related

HTC Desire :: Can't Change Alerts And Ringer Volume Separately Using Audiomanager Pro

Sep 22, 2010

I can't seem to change alerts and ringer volume seperately using Audiomanager pro. Whilst at work i want to hear my txt message sounds (alerts) but not my ringtone, and i want the phone to vibrate with both still. However when moving the ringtone and/or alert slider the other one moves too, they can't seem to move seperately. Am i doing something wrong or does this app not do that, and if so, is there an ap that does?

View 3 Replies View Related

HTC Droid Eris :: AudioManager - Ringer/Alerts Volume Locked

May 23, 2010

Just wondering, on 1.5, the Ringer/Alerts volume was locked together so however loud the Ringer volume was, the notification volume would be the same. Since upgrading to 2.1 OTA, they are no longer linked together. Is there any way I can link them back together so they are they same volume without having to individually change each one? It's kind of annoying when I set my Ringer volume to low, and all of the sudden I get a text and it's almost 3 times as loud.

View 2 Replies View Related

Android :: Default_all Crashes App

Feb 9, 2009

I've been using:

Notification.DEFAULT_SOUND

for quite some time with great success. When I replace that with:

Notification.DEFAULT_ALL

the program crashes when the notification is called.

View 4 Replies View Related

Android :: App Crashes Only On Device

Apr 22, 2010

So i have a app that runs fine on the emulator but crashes (force close message as soon as i open the app) on every device i have tested it on. How can i see whats going on? what could be going on?

View 4 Replies View Related

Android :: ListActivity In Tab Crashes

Oct 26, 2009

I'm trying to create an application that has 3 tabs. Under the middle tab should be a ListView. It starts up fine (on the left tab) but when I click the middle tab it crashes.

The other two tabs are static data specified in the main.xml file. But the middle tab, I try to create dynamically. Here's the code from the main onCreate function:

CODE:...............

Instead I appear to get an exception:

CODE:...............

ContactListActivity is defined this way:

public class ContactListActivity extends ListActivity { ...

I get the feeling that I'm supposed to create the Intent with something like Intent.ACTION_VIEW but this is where I get lost. If this is the problem, I could try stuff until it works, but I'd prefer to understand why.

Or is ContactListActivity supposed to override something ?

View 2 Replies View Related

Android :: Webview Crashes

Sep 20, 2009

I'm getting fairly regular crashes using WebView's in the underlying C code (sigsegv's). There isn't a _whole_ lot of rhyme or reason to it, but one thing that is somewhat suspicious is that I have more than one webview active (only one is one the screen at any one time, but if this has anything to do with my problem it may not matter since it appears that webkit widgets run asynchronously from the main UI thread).

Here's the stack dump. I've looked through the archives and it appears that there are other dumps, but it's really hard to tell from my vantagepoint whether they have anything to do with one another.

This is pretty easily reproducible (especially with one particular url of mine) so it should be relatively easy to track down.

CODE:.................

View 3 Replies View Related

Android :: SurfaceView On G1 - Crashes

Apr 30, 2009

I am finally testing my application on a G1 and even though it works fine on the emulator, it crashes on the G1

It crashes when it does:

CODE:.........

And the view is defined like this:

CODE:..............

View 3 Replies View Related

Android :: What Home Replacement Crashes The Least

Jan 15, 2010

I use to love Home ++ but lately its been crashing like crazy. I was gonna try GDE but I read some of the comments and that seems to have crashing issues also. Im tired of all the force closes. I have one widget and Im only using five home screens. Why is it closing so much

View 9 Replies View Related

Android :: Application Crashes Before It Starts

Nov 16, 2010

intentTest.java:
package intentTest.xyz.com;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button
public class intentTest extends Activity {
Button b;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
b = (Button) findViewById(R.id.b);
b.setOnClickListener( new View.OnClickListener() {
public void onClick(View view) {
Intent intent = new Intent(intentTest.this,seond.class );
startActivity(intent);
}});
}}
main.xml:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="First screen"
/>
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="click"
android:name="@+id/b"
/>
</LinearLayout>
seond.java:
package intentTest.xyz.com;
import android.app.Activity;
import android.os.Bundle;
public class seond extends Activity{
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.second);
} }
second.xml:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="second screen"
/>

manifest.xml:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="intentTest.xyz.com"
android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".intentTest"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".seond"></activity>
</application>
</manifest>

I get the following error code:
11-16 01:26:07.156: ERROR/AndroidRuntime(779): Uncaught handler: thread main exiting due to uncaught exception
11-16 01:26:07.166: ERROR/AndroidRuntime(779): java.lang.RuntimeException: Unable to start activity ComponentInfo{intentTest.xyz.com/intentTest.xyz.com.intentTest}: java.lang.NullPointerException
11-16 01:26:07.166: ERROR/AndroidRuntime(779):
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2401)
11-16 01:26:07.166: ERROR/AndroidRuntime(779):
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2417)
11-16 01:26:07.166: ERROR/AndroidRuntime(779):
at android.app.ActivityThread.access$2100(ActivityThread.java:116)
11-16 01:26:07.166: ERROR/AndroidRuntime(779):
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
11-16 01:26:07.166: ERROR/AndroidRuntime(779):
at android.os.Handler.dispatchMessage(Handler.java:99)
11-16 01:26:07.166: ERROR/AndroidRuntime(779):
at android.os.Looper.loop(Looper.java:123)
11-16 01:26:07.166: ERROR/AndroidRuntime(779):
at android.app.ActivityThread.main(ActivityThread.java:4203)
11-16 01:26:07.166: ERROR/AndroidRuntime(779):
at java.lang.reflect.Method.invokeNative(Native Method)
11-16 01:26:07.166: ERROR/AndroidRuntime(779):
at java.lang.reflect.Method.invoke(Method.java:521)
11-16 01:26:07.166: ERROR/AndroidRuntime(779):
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
11-16 01:26:07.166: ERROR/AndroidRuntime(779):
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
11-16 01:26:07.166: ERROR/AndroidRuntime(779):
at dalvik.system.NativeStart.main(Native Method)
11-16 01:26:07.166: ERROR/AndroidRuntime(779): Caused by: java.lang.NullPointerException
11-16 01:26:07.166: ERROR/AndroidRuntime(779):
at intentTest.xyz.com.intentTest.onCreate(intentTest.java:18)
11-16 01:26:07.166: ERROR/AndroidRuntime(779):
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
11-16 01:26:07.166: ERROR/AndroidRuntime(779):
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2364)
11-16 01:26:07.166: ERROR/AndroidRuntime(779):
... 11 more

View 5 Replies View Related

HTC Incredible :: Android OS Crashes And Reboots

Jun 3, 2010

Anyone else having problems with their Incredible crashing and rebooting? Happened to me first a week ago, I thought it was a fluke while sending a txt message it randomly rebooted. Today it happened again while listening to the mp3 player with the screen locked and in my pocket.

View 1 Replies View Related

Android :: Got EditText Field From XML / App Crashes

Mar 23, 2010

I have an activity in my app, when i call the line
EditText username = (EditText)findViewById(R.id.usernameText); the app crashes, why is this?

View 3 Replies View Related

Android :: App Crashes While Testing Through Instrumentation

Sep 27, 2010

I have separated java code from Android code and have two projects. Android dependent on Java project. Now i want to get the memory trace of the Java project on Android. For that I have created Androd Junit Project implementing Android Instrumentation, and a dummy android project dependent on my actual java project.(as I only want to get memory trace of java project on android).Problem is when I execute Android Junit project, and give a reference of dummy project removing java project dependency, all tests(dummy) run fine.But when I run junit project, with dummy android proj keeping dependency on java project, my application crashes.I get an error message like : "Process crash" not getting any error message in logcat. No clue whats wrong with code.Any help is highly needed.

View 1 Replies View Related

Android :: Crashes With No Usefull Stacktrace?

Aug 12, 2009

My app has been pretty stable so forth, and suddenly I keep getting these crashes that kill the entire process. What do they mean and how should I deal with them? Since I dont get any usefull stacktrace I really dont know how to debug this. Below is the dump from my error log.

CODE:...................

View 7 Replies View Related

Android :: Use Map In My Application - Crashes With Error

Dec 7, 2009

I want to use a map in my application but I can't get it to run.

It always crashes with the following error:

CODE:.....

My XML file:

CODE:...................

My layout:

CODE:...............

In my code I add the map like this:

CODE:.............

View 5 Replies View Related

Android :: AlertDialog Crashes Application / Why Is So?

Jun 17, 2010

Can someone explain to me why this AlertDialog crashes? code...

View 1 Replies View Related

Android :: Toast Crashes Application / What To Do?

Nov 19, 2010

In my application I've implemented such that pressing the hardware volume keys displays a Toast with the current volume. Things go well most of the times. However long presses of the volume keys do succeed in crashing my application. The Log generated on crash is the following...

The approach I follow:
I have a toast Object and for every key press event detected I inflate a view ,set the view elements within, set it to the toast and then show the toast.

Any idea what is going wrong ? code...

View 1 Replies View Related

Android :: Application Crashes When Orientation Changes - Fix It?

May 26, 2010

My app crashes when the device orientation changes..Tried debugging on real device, but I have no clue where the crash exactly happens.. I would appreciate if someone could throw some light on this:

Below is the error log...

View 2 Replies View Related

Android :: Non Java - Framework - Crashes?

Nov 25, 2009

I'm experiencing crashes that don't produce a "force close" message. Instead, the app exits immediately without an error message. In the log, it seems the problem is inside the framework's libraries but I don't really know how to interpret it.

Here it is:

CODE:.............................

View 3 Replies View Related

Android :: Simple App Crashes On OnRestart() / Fix It?

Oct 3, 2010

I've been writing a simple drawing App as homework for university. Drawing works fine, but the canvas should also be cleared when the App is coming back from the background. When switching back i get the following code...

View 2 Replies View Related

Android :: 'Home' App Crashes - What To Do / Can I Reboot Only

Mar 11, 2009

I should post this as a follow-up to my previous thread.

But I think this problem (may be) somewhat big so I create a new thread:

1. If a user install an alternative to 'Home'. (I'll call it 2nd Home)

2. He set this 2nd Home to launch by default for 'Home' action.

3. Whenever this 2nd Home crashes, their only choice is to reboot the system... ?

Because, after setting 2nd Home as default, the 'chooser' will not come out any more even if you press the 'Home' button.

In some case if this 2nd Home crashes in its initialization state, user can go no where, can't even go to Settings -> Manage App -> Clear Defaults

Am I missing something?

View 3 Replies View Related

Android :: Internet Permission Crashes My App / Fix This?

Mar 14, 2009

When i add Internet permissions to my manifest file my application refuses to even start and i get this in my console code...

fix this? code....

View 2 Replies View Related

Android :: Droid Application Crashes / What To Do?

Jan 18, 2010

I am trying to run an application on an android emulator, but it crashes. i am following a howto

i don't know what to do, it just crashes. other applications are running fine, can anyone tell me what i am doing wrong.here is the code...

View 4 Replies View Related

Android : Way To Catch Crashes In Own Droid App?

Apr 16, 2010

Is there any way to catch crashes in my own android app? Something like a global uncaught exception handler? Just wondering if I could install something like that, then if an uncaught exception is thrown, I could pop up a dialog for the user and ask if they want to mail a dump of the exception to me.

View 2 Replies View Related







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