Android :: How To Enable ALSA
I am porting Android to a real hardware device. I have written an ALSA driver and it works well. But I don't know how to add it to Android. Can you give me some suggestions? Thanks very much.( I can not endure the muted world any more[?])
View Complete Thread with Replies
Sponsored Links:
Related Forum Messages:
Android :: Using Alsa Device In Block Mode
Why android is using alsa in block mode? As android is opening device in block mode I am not open alsa device for playback. It shows device is busy as it is used by android. By stop media we can stop audio services but it will stop other services also which makes video player hang and I am not able to use player.
View Replies!
View Related
Android :: How To Enable Different CSS In WebView?
We have a webpage which include two different CSS: portrait.css and landscape.css. We want load this page only once and enable the right CSS according to phone's orientation. We have a plan to develop a chrome plugin by c++ to make it which got us to have to change firmware. I just wonder whether there is more elegant way to do it by Java.
View Replies!
View Related
Android :: Any Way To Enable GPS Programmatically?
I was wondering if there is a way of enabling the GPS programmatically through an application without going to the menu Settings > Security & location > Enable GPS satellites. Please let me know if there is a way, I've seen this asked a million times in this group but there are never any replies.
View Replies!
View Related
Android :: How To Enable Wap Push Sms?
I have a question about WAP PUSH SMS on Android. In Mobile device, if you want to receive a WAP PUSH SMS, you need to degrade the SMS security policy level. Then you can acturally receive it. But I have no idea about how to do this on Android? I try to modify the androidmanifest.xml that contains "android.permission.RECEIVE_WAP_PUSH" and change the permission from dangerous to normal. But there is too many androidmanifest.xml, I don't know where the exact path I should be modify? Does any one know how to do that or my thought is wrong?
View Replies!
View Related
Android :: Can't Enable BroadcastReceiver
I got back to the widget development after upgrading to the latest SDK and all of the sudden my widget is failing on startup with this message: ERROR/AndroidRuntime(5296): java.lang.RuntimeException: Unable to start receiver topjob.widget.SearchWidget: java.lang.SecurityException: Permission Denial: attempt to change component state from pid=5296, uid=10057, package uid=10048 Here's two lines of code where exception occurs:..................
View Replies!
View Related
Android :: Differences Between GPS Start / GPS Enable?
I find that the UI "Enable GPS satellites" is used to enable receiving GPS data, but not to start GPS. Which UI is used to start GPS? I am not clearly understand why android to designed GPS so. If GPS is not started, then you can't use "Enable GPS satellites" to receive any data and it is useless. I think that if the UI "Enable GPS satellites" is used to start GPS and also run the GPS thread is better? What is the trigger to start GPS?
View Replies!
View Related
Android :: Enable Selection In Webkit
I'am looking for a way to have a webview content selectable in the very same way as the stock browser does. I should note that Dolphin HD shows exactly the same text select functionality as the default browser (same icons, animation, etc), so it really should be possible. But I can't figure out how.Until now, all i found was this function, which kind of work, but doesn't allow the user to expand/shrink the selection.I just discovered that long touch copy/paste is part of HTC Sense, not Stock android. Still, it'd be useful to find out how to enable that on a webview, even just for HTC users. Anybody knows ?
View Replies!
View Related
Android :: How To Enable Mobile Network?
In my application it is necessary to have internet connection. Therefore i check while starting if a Internet connection is available. If not I ask the user if he would establish an Internet Connection, and what type (wifi oder mobile). The wifi connection i can establish with the following code WifiManager wifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE); wifiManager.setWifiEnabled(true); But how do i establish a mobile connection? Couldn't find a single code snippet at Google.
View Replies!
View Related
Android :: Enable Assert Statement?
How can I enable assert statement on Android? I have referred to a url: http://android.git.kernel.org/?p=platform/dalvik.git;a=blob_plain;f=d... and done what it said: adb shell setprop dalvik.vm.enableassertions all but nothing happen! The test code is: Log.v("assert 1","1"); assert false; Log.v("assert 2","2"); No matter what I did, "assert 2" will be printed, which means "assert false" does nothing! What should I do? BTW, I use eclipse as IDE.
View Replies!
View Related
Android :: How To Enable Auto Update
How does the "Allow automatic updating" works? I notice that my apps have "A manual update is required." when I try to enable it. Is it anything I need to do in my codes to enable this to work? Or is it depending on the permissions required by the apps?
View Replies!
View Related
Android :: Enable A Currently Disabled Spinner
I was fooling around with Android and my Java knowledge is limited at best (for instance, I'm perplexed by the fact that it allows inline classes!?).I have a layout where there are three dropdown menus. I initialise all three of them inside onCreate().The first one takes its values from a string-array. The second one, however, depends on the choice of the first one and the third one depends on the choice of the second one in turn.I have a few string-arrays for the second Spinner but I was wondering what would be the correct way to implement a list of successively enabled Spinners. I'm tempted to just hack into it and make it work but I don't want to run the risk of it being malformed and unstable.
View Replies!
View Related
Android :: Enable Scrolling Within EditText That Is In A ScrollView
Our app (WordPress for Android) uses a scrollview for the new post view, where a user enters in their new blog post. There's quite a few fields on this view, including a large EditText for the post content field. It appears that when an EditText is in a ScrollView, the ScrollView takes over the scrolling action, so the user can't scroll within the EditText area if they are writing a large post. What can be done so that scrolling will work both within the EditText and the ScrollView? Here is the layout xml for this view, The EditText that needs the scrolling is @id/content: CODE:.....................
View Replies!
View Related
Android :: How To Enable / Disable Bluetooth Programmatically?
I want to enable/disable bluetooth through the program..I has the following code. BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); if (!mBluetoothAdapter.isEnabled()) {Intent enableBtIntent = new Inten BluetoothAdapter.ACTION_REQUEST_ENABLE); startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT); But this sort of code is not working in SDK 1.5..How can i do the same in SDK 1.5.?
View Replies!
View Related
Android :: Enable GPS / Network Location Programmatically
I'd like to write a simple widget that toggles GPS and network location on and off. I've read that it's not possible to do that normally, but presumably on a rooted phone it must be doable. Does anyone know what the code would be? (I only need the code to toggle the location providers, I know how to make the widget.) It doesn't matter that this isn't a 'good' solution, I don't plan to distribute the widget. If it matters, this would be on an HTC Hero, still running v1.5.
View Replies!
View Related
Android :: Automatically Enable Vibrate When Silent
I've seen a few other questions about how to keep vibrate on when a phone is switched to "silent" mode, but that doesn't quite do what I'm looking for. I want to keep vibration disabled while the ringer is turned up, and to automatically enable vibrate when the ringer volume is set to vibrate, as opposed to just disabling the ringer and leaving the vibrate setting wherever it was previously.
View Replies!
View Related
Android :: API To Enable / Disable Mobile Data
I need to find a way to enable / disable mobile data (the thing you can manually enable / disable in Settings->Wireless->Mobile Network (android 2.1)But I can't find any API for that.For WIFI, there's a method setWifiEnabled(boolean) on the class WifiManager. But I can't find anything like that for the data network... no method for this on TelephonyManager or ConnectivityManager.Isn't it possible to programmatically enable / disable mobile data?
View Replies!
View Related
Android :: Enable SVG Support When Building Webkit
how to enable SVG support when building Webkit for Android? I saw an earlier thread from back in March about SVG being slow for the UI of apps, but I'd like to experiment with web content containing SVG, DOM manipulations, etc to see what the speed is like. Is it just a matter of turning on the compile flags for SVG support in Webkit or would there be a significant porting task?
View Replies!
View Related
Android :: Enable Fingerpainting Not Only With Finger Touch
I was checking the possibility to allow painting on the screen of a surface (i.e. API demo Fingerpainting example), however when I checked it, this technic apparently only allows painting with the tip of your finger, if you try to use any other object (pencil, thick pen, etc.) it does not draw anything on the surface. Am I missing something here? Is there a way to allow other objects to draw things on a surface? Is this achievable and how should I proceed?
View Replies!
View Related
Android :: How To Enable Vibration And Lights Using Notifications API?
I have created an application that creates notifications, using the following code: // Notification notification = new Notification(R.drawable.notification_icon, title, System.currentTimeMillis()); notification.flags |= Notification.FLAG_AUTO_CANCEL; // parameters String ringtone = prefs.getString(context.getString(R.string.key_notifications_ringtone), ""); if (ringtone.length() > 0) { notification.sound = Uri.parse(ringtone); notification.audioStreamType = AudioManager.STREAM_NOTIFICATION; } boolean useVibrator = prefs.getBoolean(context.getString(R.string.key_notifications_use_vibrator), false); if (useVibrator) { notification.defaults |= Notification.DEFAULT_VIBRATE; } boolean useLed = prefs.getBoolean(context.getString(R.string.key_notifications_use_led), false); if (useLed) { notification.defaults |= Notification.DEFAULT_LIGHTS; notification.flags |= Notification.FLAG_SHOW_LIGHTS; } // alert RemoteViews contentView = new RemoteViews(context.getPackageName(), R.layout.notification); contentView.setImageViewResource(R.id.notification_icon, R.drawable.icon); contentView.setTextViewText(R.id.notification_title, title); contentView.setTextViewText(R.id.notification_text, text); notification.contentView = contentView; Intent notificationIntent = new Intent(context, MyActivity.class); PendingIntent contentIntent = PendingIntent.getActivity(context, 0, notificationIntent, 0); notification.contentIntent = contentIntent; notificationManager.notify(1, notification); The notification works, and the correct ringtone is used. However, even though the preferences are correctly activated and notification flags are correctly set (I checked by debugging), the notification never vibrates and never cause the lights to be activated. I would have blamed my phone's settings, but every other app using notifications, like messaging, gmail, and others correctly use all these features. (My phone is a HTC Hero with Android 2.1)
View Replies!
View Related
Android :: Enable/Disable Networking In Emulator
According to the emulator docs, you should be able to enable/disable networking with the F8 key. I doesn't work for me and I'm trying to determine why. I'm developing on OSX Leopard. I've also tried in a virtual Windows instance (Windows 2008 server running in Parallels). No luck in either case. I've tried the obvious stuff like fn + F8, etc. Should there be any sort of visual cue that networking has gone online or offline when F8 is pressed?
View Replies!
View Related
Android :: Enable/disable GPS And Wifi Providers?
How do I enable/disable GPS and Wifi providers? I check to see if they are enabled by using this code: locationManager.isProviderEnabled("gps") locationManager.isProviderEnabled("network") If both are false, I'd like to turn enable the GPS provider and/or the Network provider so that the above checks would return true. Is this possible? If so, what permissions does it require?
View Replies!
View Related
Android :: App Enable To Change Sound Settings?
Does anyone know if there is an app which can enable you to change the sound settings on an Android G1? I finally got a headphone adapter yesterday and the sound quality of music was not very good. It might improve things if there were an equaliser or similar available. Does the API even allow that level of control?
View Replies!
View Related
Android :: Shortcut - Disable And Enable DATA 2g 3g
I want, and I have for a while been willing to, disable and enable DATA (2g, 3g, whatever) with a long press of the search button. And I mean only long-pressing it, NOT opening an app with it and disable it from the app (doesn't make any sense, otherwise one would press the HOME button and disable it from a widget there).
View Replies!
View Related
Android :: How To Enable Logging In Droid Programatically
I am working on an Android Application where I need to display log information when I execute the .apk file in release mode based on some condition. It can be like below: if(debug) display log inf. else normal execution I will set this variable to true to enable debug mode to display log information. Can anyone help me in achieving this feature.
View Replies!
View Related
|