Android :: How To SetRouting - And DoRouting Which To Select Endpoint Audio Device Is Implemented
May 14, 2009
I want to add one more endpoint audio device in android and am trying to modify the setRouting() functions to support the selection of the new added audio device. As far I traced, the doRouting() in class AudioHardwareOss should perform the audio endpoint device selection. However, donRouting() just returns NO_ERROR without any other functionalities. So, my question is where and how endpoint audio device selection is achieved.
View 2 Replies
May 14, 2012
Im looking for an audio player which lets me select a portion of an audio and put it on repeat. I had that function in an iRiver cd player.
View 3 Replies
View Related
Oct 8, 2009
I have added a second Virtual Device to test a different screen resolution (QVGA), but now I wanna switch back to the first AVD (HVGA) again. How can I set the virtual device in Eclipse to be used by default or even specifically for my project? In the properties I can only set the API level. I also couldn't find any information in the command line tool documentation to set this manually.
View 1 Replies
View Related
Aug 22, 2010
Is there some way to have Eclipse NOT present the Android Device Chooser dialog every time I run the Android application I'm developing? I'm using a running Android device, not an AVD. There's got to be some place I can set my default device to be the Android device so that I don't have to double-click on the device entry in the ADC dialog everytime.
View 1 Replies
View Related
Jun 30, 2010
How can i know if a Bluetooth Socket is still connected to the endpoint? How can i detect if the socket has been disconnected by the endpoint?
View 1 Replies
View Related
Aug 18, 2011
I want to select preferred network operators automatically from device. After I search for it, I found following:
Code:
final int EVENT_AUTO_SELECT_DONE = 300;
Message msg = mHandler.obtainMessage(EVENT_AUTO_SELECT_DONE);
phone.setNetworkSelectionModeAutomatic(msg);
So I need an instance of class "Phone". I tried this:
Code:
String phoneFactoryName = "com.android.internal.telephony.PhoneFactory";
String phoneName = "com.android.internal.telephony.Phone";
Class phoneFactoryClass = Class.forName(phoneFactoryName);
Class phoneClass = Class.forName(phoneName);
Method getDefaultPhone = phoneFactoryClass.getMethod("getDefaultPhone");
Object phoneObject = getDefaultPhone.invoke(null);
But the method "getDefaultPhone" can only called by looper.
Next I tried this:
Code:
String phoneAppName = "com.android.phone.PhoneApp";
Class phoneAppClass = Class.forName(phoneAppName);
Method getInstanceMethod = phoneAppClass.getMethod("getInstance");
Object phoneObject = getInstanceMethod.invoke(null);
But I get a ClassNotFoundException.
View 2 Replies
View Related
Apr 29, 2014
I've created a single primary Ext2 partition in my phone's external SD card but Android refuses to mount it automatically. Whenever I attempted to mount it manually it kept throwing the error "mount operation not supported on transport endpoint".
How can I mount it?
Using (SlimKat) Android 4.4.2.
EDIT: I'm now able to mount it only manually but have to specify ext4 as its filesystem -- why and will it make a difference since ext2 is non-journalled? Also, I tried adding a mount entry in /fstab.smdk4x12 but it was deleted upon reboot; does this mean no manual entries are allowed in that file and I will instead have to hack my own /init-xx.rc file to manually mount the partition at boot time?
View 7 Replies
View Related
Jul 8, 2010
Let's suppose that we have the following scenario: something is playing on an android device (an mp3 par example, but it could be anything that use the audio part of an android device). From an application (android application :) ), I would like to intercept the audio stream to analyze it, to record it, etc. From this application (let's say "the analyzer") I don't want to start an mp3 or something, all I want is to have access to the audio stream of android. Any advice is appreciated, it could a Java or C++ solution.
View 1 Replies
View Related
Jul 11, 2010
I 've set Wowza streaming server to stream mp4 videos to Android phones. Android phone can play the RTSP stream successfully but here It only plays audio of the file not the video.
View 1 Replies
View Related
Apr 5, 2010
I am trying to write a streaming application.I have my own decoder and I am playing PCM audio using AudioTrack. At any point in time I want to know how much data is buffered with the device. I want to use this so that if the data with the device go below a level, I want to go into a buffering mode where I will buffer 2-3 seconds of data before continuing playback again. Can someone please tell me how to do this?
View 5 Replies
View Related
May 21, 2010
I want to stream audio directly from my mac via bluetooth to my nexus one. This might sound crazy, but I actually want to be able to control the audio from my mac. I just want to be able to connect an audio jack to my nexus one and let it stream the audio via bluetooth. Is there an app for that?
View 4 Replies
View Related
Sep 11, 2010
This is my first time posting but i had a pretty interesting question. Is there a way, to connect my phone to my Pc through bluetooth or wifi and you is as remote audio device. Meaning I am playing a movie on my computer but I am laying in bed with my headphones pluged into my phone and hearing all the sound.
View 1 Replies
View Related
May 4, 2010
I've been trying to understand how to get data about all the audio files in the device using MediaAudio but unfortunately the documentation is far from clear. Also, thereīs almost nothing about it on the forum right now and I couldnīt find good resources over the internet.
Iīve seen pretty quick and objective examples on how to access the main information from the containers but I couldnīt find in any place how I could get the names of the tracks (MediaStore.Audio.AudioColumns doesnīt have an specific constant for it) and the most important, how I could retrieve the path for the media (audio file in this case) Iīve found using the info on MusicStore.Audio.
am I missing something here? It seems it should be so easy but I canīt find the info! Also if I change any data on the container, will this data be also changed in the real file as well?
You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
View 4 Replies
View Related
Jan 10, 2013
getting one Android device to be able to stream its audio to another Android device. Specifically I want to stream music but I'd also like notification sounds and other audio to stream.
I have a second, older phone, that I am repurposing.
View 1 Replies
View Related
Nov 24, 2009
I have an application that is playing audio, and I would like to allow the listener to toggle between pause and play while the screen is locked, as it is a hassle to have to unlock the screen in order to pause the audio playback. Is there any way to monitor for KeyEvent.KEYCODE_DPAD_CENTER while the the screen is locked? I have been looking through the documentation but have not found any information on how to do this.
View 12 Replies
View Related
Dec 2, 2013
I've to develop a software which can copy all audio and Video files from Android device to System
What to cover first, either linux kernel or android system interface.
Do I need to learn linux kernel programming or android system interface only
This backup could be possible from one of the medium via USB cable or WiFi or other form of connectivity.
View 1 Replies
View Related
Aug 21, 2010
Invoked device native player to play audio file, it opens android native player on top of the application but when selecting to back out or return to the application, device automatically stops playing the current media.
Sample code:
Intent intent = new Intent();
intent.setAction(android.content.Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(file),"audio/*");
startActivity(intent);
How can I implement so that Device should continue to play audio in the background when selecting to back out or return to the application
View 1 Replies
View Related
Jun 18, 2013
create to get ads on my free application, ok first off I have been following this book
Beginning Android games 2011
Beginning Android Games
Now this book implements a very nice and simple game framework which I use (a simpler version can be found here.The Android Game Framework: Part I - Kilobolt
Now this framework doesn't use any type of XML file what so ever, it uses a framebuffer to draw things onto the screen. now when the application is first started, this is the first method called which is in the AndroidGame.java
[HIGH]
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
[code]...
View 1 Replies
View Related
Apr 29, 2014
Having problem playing music through audio device using bluetooth (Bluetooth Speaker).. (All cm7 based rom for galaxy pocket have this problem)
Device: Galaxy Pocket
Rom: Reincarnation V5
Kernel: Getux Kernel V1
Added Tweaks: KickAss kernelizer,Supercharger
View 3 Replies
View Related
Nov 11, 2010
What is this widget called (the one with the three buttons).
View 4 Replies
View Related
Jun 16, 2009
I've been looking around in the framework source and I can get my head around some things. For instance, in the ScrollView, the animated scrolling is done by using computeScroll(). To make the screen redraw (and thus call computeScroll() again), postInvalidate() is used. Why is that one used, instead of a regular invalidate-call?
Secondly, I wonder some things about the Animation framework. I know how a ViewGroup is responsible for animating the children (modifying the Canvas and so on), but what drives the animation, i.e. what makes the screen redraw over and over again? In the case of the ScrollView, it's the call to postInvalidate() made from computeScroll(), but what is it in the case of an Animation?
View 3 Replies
View Related
Apr 3, 2009
I notice in the source code they are not used in critical loops, e.g. in View.java :
http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;...
I can see this kind of code which would be much easier implemented as an ArrayList :
1867 private void addInArray(View child, int index) { 1868 View[] children = mChildren;
1869 final int count = mChildrenCount;
1870 final int size = children.length;
1871 if (index == count) { 1872 if (size == count) { 1873 mChildren = new View[size + ARRAY_CAPACITY_INCREMENT];
1874 System.arraycopy(children, 0, mChildren, 0, size);
1875 children = mChildren;
1876 } 1877 children[mChildrenCount++] = child;
1878 } else if (index < count) { 1879 if (size == count) { 1880 mChildren = new View[size + ARRAY_CAPACITY_INCREMENT];
1881 System.arraycopy(children, 0, mChildren, 0, index);
1882 System.arraycopy(children, index, mChildren, index + 1, count - index);
1883 children = mChildren; 1884 } else { 1885 System.arraycopy(children, index, children, index + 1, count - index);
1886 } 1887 children[index] = child;
1888 mChildrenCount++;
1889 } else { 1890 throw new IndexOutOfBoundsException("index=" + index + " count=" + count);
1891 } 1892 };
View 3 Replies
View Related
Sep 13, 2010
I mean in runtime. Sometimes I get "called unimplemented OpenGL ES API" error but it can not be catched. Is there a way to figure out what function is implemented or not, in runtime?
View 2 Replies
View Related
Oct 21, 2010
Can somebody point me to the right direction how the navigation overlays for My Tracks are implemented? I'm talking about the "buttons" for navigating appearing on the left and right side if you tap on the screen. Any pointers?
View 3 Replies
View Related
Jan 29, 2010
How to include .jar files in android for a particular application in which KSOAP is implemented?
View 2 Replies
View Related
Nov 2, 2010
I'm trying to implement a Select All menu item for a ListView in a ListViewActivity. The relevant parts of my ListViewActivity: public class MyListViewActivity extends ListActivity browsed around stackoverflow.com and the google; the above is something that should work. But it isn't. setSelection(i) appears to be the method I want to call on ListView but it's not working as advertised. What am I doing wrong? Is this even possible on Android in code?
View 2 Replies
View Related
Mar 3, 2009
Is it possible to build a spreadsheet-like grid? I would like to select single cells, or one row at a time,like a database viewer.
Or would it need to be implemented at the framework level?
I'm thinking of a UI equivalent of something like this AJAX control, which may be opened in the WebView: http://www.hisdigital.com/misc/flexigrid/.
View 2 Replies
View Related
May 15, 2013
I have seen several 2DIN car headunits that has Android 2.3 supports FM Radio and Handsfree and can be controlled through the UI itself. how is it implemented?
eg: In eBay, search for item No : 130862564199
View 1 Replies
View Related
May 9, 2010
New to Android and starting to work on file mgmt. I set up some subfolders on my SD card for pictures. I have been moving pictures from one folder to another, but I can only move one at a time. Is there a way to select multiple picture files and move them to another folder (like "Select All" with Windows)? This is the sequence I've been following: Use the Edit Icon in the Astro taskbar, select Move, then going to the directory folder I want to move them, and hit Paste. Moving one file at a time is taking for ever.
View 2 Replies
View Related
Sep 25, 2010
I have an application that has a tabActivity and 3 tabs. all off the tabs use a location listener and work with locations. i implement onPause and onResume for every tab to remove and start listening for location accordingly. is this the right way to go? i had another idea to work with and that was implementing a location listener to the tabActivity and doing broadcasts to the child tabs with the location, but it seemed more complicated.
The problem with my current solution is that whenever i switch tab i lose the location i got in the previous and i cant use getlastknown location because i dont want the last location on start of the application.(does this make sense?) what can i do to solve this problem. a thing that will work better will be to have one variable that will hold the last location from the onLocationChanged and i can observe its changes and call methods onChange.
View 1 Replies
View Related