[android-developers] android voice route
Hi all:
I am developing an apk to get and send the audio stream from Socket(via BT spp),it can work as a Bluetooth Walkie Talkie now,
then,i want to put the audio string (PCM 8k) to the voice call when i get it from Bluetooth.
1、android system, how can i put the audio stream to the phone call connection that the other end can hear?
2、During a voice call, how can i play Background music ? is there any interface in android can mix the voice to call?
best regard
2012-06-22
发件人:android-developers
发送时间:2012-06-22 13:23
主题:[android-developers] Digest for android-developers@googlegroups.com - 25 Messages in 22 Topics
收件人:"Digest Recipients"<android-developers@googlegroups.com>
抄送:
Group: http://groups.google.com/group/android-developers/topics
- Layout issue in preference screen android [1 Update]
- Help converting iPhone app to Android [1 Update]
- Android NFC Options [1 Update]
- Software Keyboard [1 Update]
- Promotional Copies of App [1 Update]
- all assets created, I need help making it work! [1 Update]
- Logging without installing app [1 Update]
- DOA Object serving a Resource from Android Library Project [1 Update]
- Can you record a video of the screen? [1 Update]
- Content Provider JUnit Test and Null Pointer Exception [1 Update]
- App review time [1 Update]
- Share android internet connection through bluetooth/ppp [1 Update]
- Does the stock web-browser of ICS 4.0.x support HW accelerated rendering and compositing? [1 Update]
- How can I get this two angel ? Please help me [1 Update]
- Is Java 7 ok to use now? [2 Updates]
- Is there any ads platform for adult apps? [1 Update]
- PBAP CLIENT [1 Update]
- Multiple selection in Gallery View in android. [1 Update]
- button [1 Update]
- Difference between Google Market billing and Google Play billing [2 Updates]
- managedQuery returning deleted files [2 Updates]
- Billing is not supported on this version of android market! [1 Update]
- jagruti sangani <jugni1smile@gmail.com> Jun 22 10:43AM +0530
Hello,
For making compatible in all device you shold use the "dp" in height and
width instead of "sp" and if text size is small then you can define the
size like "14sp" it will compatible in all device. and space between text
and image if you want then give the margin right of text so it will
automatically give the space.Is it your requirement?
- danskr <dan.richmond@gmail.com> Jun 21 01:30PM -0700
I've been trying to convert an iPhone app, built with phonegap/jqtouch, to
Android and I've hit some issues. I'm pretty ignorant about eclipse and
java so go easy on me. I've two questions..
I got the app working in eclipse and on my htc desire s, it was a bit slow
and unresponsive but at least it worked. Then I discovered the app wouldn't
work on android devices (as far as I can tell, testing is a biatch) running
OS 3 and over (the htc is 2.3). It stops working on the homepage screen by
failing to load the tabbars. My only guess is that its somehow realtaed to
internet connection, as on the iphone version, the tabs would only load
when the connection was fine. Apart from that, I just know enough about
eclipse/android to even know what the right questions to search for. Any
advice on how to track down the problem?
The second question is how to improve the perfomance. - its very sluggish.
I knew it would be bad but its worse than. I'm in the process of trying to
minify and strip out as much as I can but are there any other suggestions
about how to improve performance? One really annoying thing is that on
certain transistions from one page to another, the new page loads up, then
the old page flashes up for a second before going back to the new page -
has anyone encountered this before?
thanks!
- Alistair Lowe <alistair.lowe@resonance-systems.com> Jun 21 02:09PM -0700
Hi guys,
I'm attempting to get into NFC on Android by communicating with a custom
PN532 device, however I'm a little confused as to my options and the
Android protocol.
- NFCIP-1, is it possible to place my device as a target into this mode,
for Android to automatically detect and communicate with to load an app or
can this only be done in card emulation mode (i.e. does NFCIP-1 have to be
actively triggered)?
- What's the easiest to use card emulation mode for the sake of data
format simplicity? (get an NDEF file over to the phone as simple and easy
as possible that it will automatically act upon)?
Any help/advice is very much appreciated,
Many thanks
- Phil Ryu <bigphilryu@gmail.com> Jun 20 01:29AM -0700
Hi lads,
I'm running into trouble trying to make the software keyboard pop.
I've already read all the posts related to that but unfortunately none
helped me.
I tried toggleSoftInputFromWindow, showSoftInput,
getWindow().setSoftInputMode() with all possible combinations and all
possible flags. I don't have an EditText, so I even tried to create a
fake one. I made the call from different listeners to make sure it was
not a thread related issue. I tried to delay the thread a bit.
Still, those methods always return false and therefore the keyboard
doesn't show...
BUT! Everything works as expected as soon as I minimize the
application (by pressing Home) and restore the application. From then,
the keyboard shows up without any problems.
Any clues?
Phil.
PS : My phone has a hardware keyboard.
- DangerMcD <crash3mstr@gmail.com> Jun 21 01:47AM -0700
Hello, I was just wondering if there was any way for a developer to receive
and distribute promotional codes, keys, or licenses for a paid app once it
is on the app store. If not, what would be the best way for a developer to
distribute copies of the paid app while still having a license or key check
of some sort?
- BigBeard <dannysin27@gmail.com> Jun 20 09:17AM -0700
I am creating an app. it consist of 2 screen graphics (.jpgs) and an .mp3
file.
Everything is ready to go as far as content, I just can't make it work!
Basically on screen 1 there is a play button, when pressed it should switch
to screen 2 and infinitely loop the mp3 file. If the play/stop is pressed
again, the mp3 stops and screen one loads.
That's it!
I am having a hard time getting the basics done for some reason, It would
take me ages to code but I am hoping someone here is bored and maybe has an
mp3 player type code that could be slapped together with my graphics... let
me know if you can help please. I'm making this app as a suprise for my GF.
:)
- VC <dazzvc@gmail.com> Jun 20 01:59PM -0700
I wanted to log some existing information without installing an app in
android. I wanted to log the connected wifi name with timestamp. This
hardly takes 5-6 lines of code. But, I dont want to create a separate app
or service. I want this to be added as inbuilt module in kernel and flash
the phone. But, I am quite not sure where would be the best place to
include this. It would be helpful if anyone can give me some ideas. There
is a class that gives the wifi name. All i wanted to do is log it with
timestamp. HOw to go about it? Thank you in advance.
- Jacob Hansen <azarat.jacob@gmail.com> Jun 20 03:16AM -0700
Hi,
I'm currently making a SDK for a payment gateway, however I'm having some
problems.
The project setup is supposed to be:
*Library Project*
DAO Classe
SDK
Server connectivity class
*Application*
UI
Using the above Library project
And from the library project I want to send some images (drawables) for
example images for what credit cards are available for the payment. These
credit cards can change depending on different settings so they need to be
sent dynamically to the application using the SDK.
I'm currently importing the library project by selecting the library
project under properties in Eclipse (I need to do it with a Jar or
something to make it closed source but one problem at a time).
Now the problem I get is that I get a NullPointerException when I try to
set the drawable from the SDK to an ImageView in the app. Here's some code:
DAO Class from the SDK (this class extends Application):
> case (MASTERCARD):
> this._logo = getResources().getDrawable(R.drawable.mastercard_securecode);
> break;
This is in the constructor. And then there's a simple getter method to
access the _logo varible, which is a Drawable. The R.drawable i refer to is
a ressource located in the Library Projects res folder.
In the application I then want to be able to do something like:
> ImageView img = (ImageView) findViewById(R.id.imageView);
img.setImageDrawable( DAOObjet.getLogo() );
So that whoever implements the SDK is able to decide how the UI should be
implemented.
However doing it this way I'm as said getting a NullPointerException on the
line that serves the Drawable from the SDK (eg the line quoted above in the
switch/case statement).
I have a feeling I'm loading the ressource in a completely wrong way, but I
dont know.
Could someone assist me with this? That would be much appreciated!
- DILEEP PT <android.dileep@gmail.com> Jun 21 05:46PM +0530
use camera intent to capyure image and video
- Dionysus1983 <allon.k.bell@gmail.com> Jun 20 07:17PM -0700
I am attempting to test the update() method of my custom content
provider. I receive a null pointer exception due to the getContext()
method call within the update() method being null. To alleviate this
issue I have attempted implementing
http://stackoverflow.com/questions/6516441/why-does-androidtestcase-getcontext-getapplicationcontext-return-null
to no avail. My test class looks like the following:
public class AddressContentProviderTest extends
ProviderTestCase2<AddressContentProvider> {
public void testInsert() {
Uri CONTENT_URI = Uri.parse("content://" +
AddressContentProvider.AUTHORITY + "/address");
AddressContentProvider addressContentProvider = new
AddressContentProvider();
ContentValues initialValues = new ContentValues();
boolean isException = false;
Uri returnURI = null;
initialValues.put("country", "USA");
initialValues.put("region", "test");
initialValues.put("city", "Jacksonville");
initialValues.put("state", "FL");
initialValues.put("zip", "32258");
initialValues.put("province", "test");
initialValues.put("geo_location_id", "");
returnURI = addressContentProvider.insert(CONTENT_URI,
initialValues);
assertTrue(returnURI != null);
}
The insert method looks like the following:
@Override
public int update(Uri uri, ContentValues values, String where,
String[] whereArgs) {
SQLiteDatabase db =dbHelper.getWritableDatabase();
int count;
switch (sUriMatcher.match(uri)) {
case ADDRESS:
count = db.update(ADDRESS_TABLE_NAME, values, where, whereArgs);
break;
default:
throw new IllegalArgumentException("Unknown URI " + uri);
}
getContext().getContentResolver().notifyChange(uri, null);
return count;
}
- Jay Mandevia <dsh.operations@gmail.com> Jun 20 07:52AM -0700
hi i have added a app to the sony developer portal and it has been a very
long time and no feedback. can anyone tell me the standard review time.
Regards
Jay
- Sayooj valsan <chapooty@gmail.com> Jun 19 12:48PM -0700
Hi Micheal,
I am also looking for a solution for Android.
I need to implemet ppp link. Do let me know if you got this done already.
chapooty@gmail(dot)com
On Friday, January 27, 2012 4:17:28 AM UTC-5, Michael wrote:
- do damn <dodamn@gmail.com> Jun 21 11:57AM -0700
Does the stock web-browser of ICS 4.0.x support HW accelerated rendering
and compositing?
If it does not,,,,, Is there any web-browser app for ICS 4.0.x that support
HW accelerated rendering/compositing?
- CuGBabyBeaR <cugbabybear@gmail.com> Jun 20 09:24AM -0700
I'm a Chinese and sorry about my English is not good .
That is my problem:
How can I get two angel?
angel 1. angel between device surface and the level
angel 2. azimuth of device surface (azimuth of the projection of device
surface normal vector)
I read the document on developer.android.com which part about class
Sensor.Event , and have several questions.
1. Is sensor of type TYPE_ORIENTATION really physically exist ?
In the document , it told me that :"use getRotationMatrix() in
conjunction with remapCoordinateSystem() and getOrientation() to compute
these values instead."
(this is it
http://developer.android.com/reference/android/hardware/Sensor.html#TYPE_ORIENTATION
)
Since I can compute the orientation values by other two sensor values , why
is there a redundant sensor exist?
2. I need to compute the normal vector of device surface?
I want to get the angel between device surface and the level .
In my mind , I put device in the world coordinate system : Y point to North
, X point to East , Z point to sky
Then for the two angel I want , I only need to get the normal vector
of device surface .
3. How can I get the normal vector?
Whether I use sensor of type TYPE_ORIENTATION or use getRotationMatrix()
plus getOrientation() , the values I can get are Azimuth Pitch and Roll (
differences are only on sign and 3 angels is in degree or radian ).
I tried several different way to rotation vector (0,0,1) with this 3 angels
to get the normal vector , but all of them seems do not work .Help me ,
make is work please. T T
Thank in advance.
- Jim Graham <spooky130u@gmail.com> Jun 21 12:54PM -0500
Last I heard, Java 7 and the SDK weren't getting along with each other
very well (if at all). Is this still the case? Or is Java 7 ok now?
Thanks,
--jim
--
THE SCORE: ME: 2 CANCER: 0
73 DE N5IAL (/4) | Tux (E Cat): DS B+Wd Y 6 Y L+++ W+ C++/C++ I+++
spooky130u@gmail.com | T++ A E H+ S V- F++ Q+++ P/P+ B++ PA+ PL SC---
< Running Mac OS X Lion > |
ICBM / Hurricane: | Tiggerbelle: DS W+S+Bts % 1.5 X L W C+++/C+
30.44406N 86.59909W | I+++ T A E++ H S++ V+++ Q+++ P B++ PA++ PL+ SC
Android Apps Listing at http://www.jstrack.org/barcodes.html
- CuGBabyBeaR <cugbabybear@gmail.com> Jun 21 06:58PM -0700
I only know that Java 7 do not work in my environment...
在 2012年6月22日星期五UTC+8上午1时54分14秒,Spooky写道:
- Yole Yu <007yuyue@gmail.com> Jun 19 10:21PM -0700
:>
What to develop a adult app..
Do any one know some ad platform for adult app.
- alicke xu <alickexu@gmail.com> Jun 19 08:20PM -0700
Hi anirudh,
I'm planing to implement PBAP client on android tablet also. What about
your status?
BR,
alicke
在 2011年5月20日星期五UTC+8下午6时27分18秒,Anirudh Kashyap写道:
- Ashish Dwivedi <dashish14@gmail.com> Jun 20 10:32PM -0700
Hello
I want to create a custom view which are look like Gallery view but
there an functionality to select multiple images using a expendable
rectangle box
<http://i.imgur.com/qAO0Q.jpg>
in this screen there are a gallery of images and an orange box which are
using the select more then one image. And get the selected images on Button
click event.
Have a look my question
http://stackoverflow.com/questions/10171256/selection-of-muiltiple-images-from-gallery-view
- jagruti sangani <jugni1smile@gmail.com> Jun 22 10:08AM +0530
Hello,
if you want to just differenciate the button images then use the one xml
and define the two image one for default and one for press and set that xml
as background of button.It will solve your problem ok.
--
Regards
jagruti Sangani
*iNextrix Technologies*
- Sandeep Venkat <sandeep@believecreative.in> Jun 22 09:34AM +0530
*What is difference between Google Market billing package and Google Play
Billing lib*.Is it same? I am searching for Google Market billing package
but i am not getting it after installing all the updates.I got only Google
play billing lib. At present i am using android 4.04.
--
Thanks&Regards
*Sandeep MNVVB*
*
*
- pushpa nc <nc.pushpa@gmail.com> Jun 22 09:42AM +0530
Yes both are same
On Fri, Jun 22, 2012 at 9:34 AM, Sandeep Venkat
- Guilherme Utrabo <utrabo@gmail.com> Jun 22 12:54AM -0300
I need to delete some images from my application dir (inside
Pictures/Application).
Though the image gets removed, when I call for the managedQuery() to fill
again the grid, the image that I just removed is retrieved.
I'm trying to force a scan on the application directory, but it's not
working. Some code below:
deleting files:
http://pastebin.com/tQe8s7mm
sanning directory
http://pastebin.com/ixuz8xsC
Do you guys have any ideas of what may be causing this behavior?
Thanks in advance,
Guilherme
- Guilherme Utrabo <utrabo@gmail.com> Jun 22 12:58AM -0300
Ps.: and here is the method that actually deletes the file:
http://pastebin.com/SbBFHuwC
- Manoj <manojkumar.mora@gmail.com> Jun 21 06:58PM -0700
Hi,
I am using EURO 2012 application, and suddenly getting "Billing is not
supported on this version of android market" error and device is freezing.
Could any one please tell the reason why this happens?
Thanks,
Manoj.
You received this message because you are subscribed to the Google Group android-developers.
You can post via email.
To unsubscribe from this group, send an empty message.
For more options, visit this group.
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
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home