[android-developers] Detecting hardware button on Android mobile

2013-08-30 Thread Ash
Hi All, I have a mobile phone from Runbo ( http://www.runboruggedphones.com/shop/buy-runbo-x5-ip67-rugged-waterproof-smartphone.html ). It has a 3 additional buttons which I have not seen on normal Android phones. These are PTT, SOS and ET. I was able to detect the SOS and ET button using the

[android-developers] When will ADT give support to test app for new Nexus 7(2013)

2013-08-30 Thread ankit the OPIUM
My customers are complaining that my app is not working properly in New Nexus 7(2013). I want to test it in that but device is not available for sale in India. So when I tried to create emulator for the given configuration it is not booting at all. I have tried on Windows XP and 7 both with

Re: [android-developers] Detecting hardware button on Android mobile

2013-08-30 Thread Jadranko Bodiroga
something like this maybe: if (event.getKeyCode() == KeyEvent.KEYCODE_POWER ) {} On Fri, Aug 30, 2013 at 1:06 PM, Ash anan...@gmail.com wrote: Hi All, I have a mobile phone from Runbo ( http://www.runboruggedphones.com/shop/buy-runbo-x5-ip67-rugged-waterproof-smartphone.html ). It has

Re: [android-developers] Detecting hardware button on Android mobile

2013-08-30 Thread Jadranko Bodiroga
add permission : uses-permission android:name= android.permission.PREVENT_POWER_KEY / On Fri, Aug 30, 2013 at 3:00 PM, Jadranko Bodiroga jadrankobodiroga1...@gmail.com wrote: something like this maybe: if (event.getKeyCode() == KeyEvent. KEYCODE_POWER) {} On Fri, Aug 30, 2013 at 1:06

Re: [android-developers] Video in portrait mode

2013-08-30 Thread Jadranko Bodiroga
maybe try add something like this : super.setRequestedOrientation( ActivityInfo.SCREEN_ORIENTATION_PORTRAIT) ...then you force it to show in portal/Landscape... On Fri, Aug 30, 2013 at 4:58 AM, Sadhna Upadhyay sadhna.braah...@gmail.comwrote: Hi guys, i am recording video and playing

[android-developers] Re: Clickable URLs in EditText when using ArrowKeyMovementMethod

2013-08-30 Thread Emanuel Moecklin
See my answer here with a complete example: http://stackoverflow.com/a/18541955/534471 On Thursday, March 24, 2011 5:11:48 AM UTC-4, asher wrote: Hi Abhilash, Can you give an example of the code you wrote in order to do that? Thx. -- You received this message because you are subscribed to

Re: [android-developers] Detecting hardware button on Android mobile

2013-08-30 Thread Ash
The code you have given is to detect the Power button. I want to detect the PTT (push-to-talk) button. On Friday, 30 August 2013 23:01:01 UTC+10, baturanija1 wrote: add permission : uses-permission android:name= android.permission.PREVENT_POWER_KEY / On Fri, Aug 30, 2013 at 3:00 PM,

[android-developers] Adding Fragments to a LinearLayout programmatically

2013-08-30 Thread Ralph Bergmann | the4thFloor.eu
I am trying to add nested child Fragments into a parent Fragment. All works fine but At first my code: public class FragmentDatasheetWithHeader extends Fragment { private long mRowId; private String mSid; @Override public View onCreateView(final LayoutInflater inflater,

Re: [android-developers] Adding Fragments to a LinearLayout programmatically

2013-08-30 Thread TreKing
On Fri, Aug 30, 2013 at 6:44 PM, Ralph Bergmann | the4thFloor.eu ra...@the4thfloor.eu wrote: When the activity with the FragmentDatasheetWithHeader is open and the app goes into background and comes back to foreground the nested Fragments are doubled. But it only appears if the container for

Re: [android-developers] Adding Fragments to a LinearLayout programmatically

2013-08-30 Thread Ralph Bergmann | the4thFloor.eu
Am 31.08.13 02:02, schrieb TreKing: 1 - Debug your app and gather more information. I debugged it. The createUI() method is called once. Ralph -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to