[android-developers] How to make an app for call record?

2015-07-14 Thread 张斌
Looks like some API has been locked by Google. Are there someone has method 
about it?I want to create an app to record the calls(inout audio  track).

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] How to stop ActionBar getting focus

2015-07-14 Thread Simon Giddings
I have integrated the use of Bluetooth pedals, which declare themselves as 
being a keyboard.

When the pedal is pressed, my activity gets the keypress and, in 
dispatchKeyEvent, I return true to indicate that I have consumed the event.
However, the ActionBar is still responding to the keypress by highlighting 
the title button - I have already set setDisplayHomeAsUpEnabled as true.

I then captured the corresponding area in the action bar and removed 
focusable like this -
int iActionBarTitle = 
getResources().getIdentifier(action_bar_title, id, android);
View v = findViewById(iActionBarTitle);
v = (View)v.getParent().getParent();
v.setFocusable(false);

However, this just moved the focus to the first action item.

I do not want to do a lot of hacking so as to avoid further difficulties 
down the line.
Not sure of how I can overcome this problem correctly.

Can anyone guide me with this ?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.