[android-developers] programmatically open Flight Mode setting page on SAMSUNG devices

2014-02-15 Thread 12169
Hi,

any help to the question on the below link.
 
http://stackoverflow.com/questions/21782171/programmatically-open-flight-mode-setting-page-on-samsung-devices?noredirect=1#comment32959528_21782171

-- 
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/groups/opt_out.


[android-developers] RDP and VNC integration

2014-02-15 Thread Dilip Kumar Chaudhary
I want to develop an Application which can remote access to Windows,Mac and
Linux systems.I spent many times and found that it can be done using:-

*1.Remote Desktop Protocol(RDP)
http://en.wikipedia.org/wiki/Remote_Desktop_Protocol*

*2.Virtual Network Computing(VNC)
http://en.wikipedia.org/wiki/Virtual_Network_Computing*

Now want to integrate these protocols for make it functioning.But the
problem is that How to start I didn't find any proper guideline to start
working And what is the proper way please suggest me.


-- 
*Thanks  Regards*
Dilip Kumar Chaudhary
My Linkedin Profilehttp://in.linkedin.com/pub/dilip-kumar-chaudhary/44/64/55b
My Development Blog http://dilipdevelopment.blogspot.com/

-- 
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/groups/opt_out.


[android-developers] Best way to get the current location

2014-02-15 Thread Abhilash Baddam
Hi,

To get the user location I have found two ways:

   1.

   http://developer.android.com/training/location/retrieve-current.html .
   This one is using what I think is the new Google Services release which
   uses a LocationClient to connect to Google Services and retrieve the
   location.
   2.

   http://developer.android.com/guide/topics/location/strategies.html . The
   other one is using the android.location class and a LocationManager to
   retrieve the location.

The thing is that I don't get the difference between using one way or the
other, which one is better??

And another question is that in the second way you can specify which
location provider you want to use, if the GPS provider or the Network
provider and in the first one you can't, but in the first paragraph it says
that it uses the location sensors that are currently active for the device.
Does this mean that I don't have to worry about choosing between both
services??


Can anyone guide me on 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/groups/opt_out.


[android-developers] Re: Help needed -- There is no linked app associated with this client ID.

2014-02-15 Thread Robert Auger
I have the same problem. I don't understand how to register 2 client ID 
(one for debug and one for production) in the Games services console.
If the answer is known, please let me know.

Le dimanche 27 octobre 2013 10:50:48 UTC+1, FReDD a écrit :

 Hi all,

 I'm becoming crazy with this one. I just published a game on Google Play 
 and the game uses the Google Play Games services.

 Sign-in and leaderboards / achievements worked fined with the application 
 signed with the debug key, but since I built and
 published my app using my release key, Google+ sign-on is impossible. I 
 always get the infamous error 
 *E/SignInIntentService(25004): There is no linked app associated with 
 this client ID.*

 I double- and triple-checked everything : my app is published, the package 
 name and SHA1 fingerprint are correct and match
 what I extracted from the release APK, I unlinked and relinked the app in 
 the Google Play Console multiple times, but nothing
 works.

 Ideas, anyone ?

 Thanks


-- 
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/groups/opt_out.


Re: [android-developers] Best way to get the current location

2014-02-15 Thread TreKing
On Sat, Feb 15, 2014 at 10:37 AM, Abhilash Baddam 
abhilash.androiddevelo...@gmail.com wrote:

 The thing is that I don't get the difference between using one way or the
 other, which one is better??


Read the very first paragraph of the second link you posted.

And another question is that in the second way you can specify which
 location provider you want to use, if the GPS provider or the Network
 provider and in the first one you can't, but in the first paragraph it says
 that it uses the location sensors that are currently active for the device.
 Does this mean that I don't have to worry about choosing between both
 services??


Correct: Read the description of the API:
http://developer.android.com/google/play-services/location.html

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
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/groups/opt_out.


Re: [android-developers] TextView maxLines based on height

2014-02-15 Thread Ralph Bergmann | the4thFloor.eu
Am 13.02.14 03:54, schrieb Ankur Avlani:
 Can someone please suggest me some faster was to achieve my requirement.

try this one:

/**
 * Calculates the lines needed to show the text.
 *
 * @param paint
 *   the TextPaint from the TextView
 * @param text
 *   the text for the calculation
 * @param textAppearance
 *   text typeface, size, and style
 * @param avail
 *   the available width
 * @return the number of lines needed to show the text
 */
public static int neededLines(final TextPaint paint, final String text,
final TextAppearanceSpan textAppearance, final int avail) {

   if (TextUtils.isEmpty(text)) {
  return 0;
   }

   final TextPaint textPaint = new TextPaint();
   textPaint.set(paint);

   textPaint.setTextSize(textAppearance.getTextSize());
   textPaint.setTypeface(Typeface.create(textAppearance.getFamily(),
textAppearance.getTextStyle()));

   final StaticLayout layout = new StaticLayout(text, textPaint, avail,
Layout.Alignment.ALIGN_NORMAL, 1.0f, 0.0f, false);
   final int lineCount = layout.getLineCount();

   return lineCount;
}



Ralph



signature.asc
Description: OpenPGP digital signature