[android-developers] Re: How to compile APK using different constant

2013-04-08 Thread Piren
> > Changing a value implies that it's not correct to implement these as > constants. > that's not true in all circumstances... Sometimes you'd want specific code to not even compile and be present in the APK. Using constants and replacing their values in the build script makes it very easy to

[android-developers] Re: How to compile APK using different constant

2013-04-08 Thread Harish
a quick solution public static final String currentMarket= "Google"; // change this when you compile or load it using property file static private final boolean isForGoogleMarket ; static private final boolean isForOperaMarket; static private final boolean isForTStoreMarket; static private fin

[android-developers] Re: Map of the building and drawing Route from Source to Destination

2013-04-08 Thread gjs
Hi, Android Google Maps Version 2 has support to draw map tiles from alternate sources. You just need to provide your floor map as a pyramid of map tiles, typically 256x256 pixels. The map tiles then are accessed (from your cloud server) based on lat, lon & zoom level. You can position that map

[android-developers] Re: [Socket/Client-Server communication ] how to verify if url and port is working fine

2013-04-08 Thread gjs
Hi, Try your using your browser. Regards On Sunday, April 7, 2013 5:29:23 PM UTC+10, A N K ! T wrote: > > Problem is can not able to write/read data to server. Want to verify if > url and portNo is working so it can be confirmed that error is in code. > > basically i have inetAddress = 38.92.7

[android-developers] Re: How to compile APK using different constant

2013-04-08 Thread Giuseppe
Probably my question was wrong! I need to build differents APK for each market. the only change that I need, is the boolean value. I am trying to do it with ANT but I don't have too much knowledge for a good build.xml -- -- You received this message because you are subscribed to the Google Gr

Re: [android-developers] Re: How to compile APK using different constant

2013-04-08 Thread Kostya Vasilyev
This certainly can be done with ant, by hacking on the build scripts. In my app, I'm including different additional source folders depending on what "market" I'm building for. The rest of the app's code uses abstract base classes, whose concrete subclasses are implemented in those additional folde

[android-developers] Re: HttpURLConnection on Galaxy Nexus 4.2

2013-04-08 Thread rackham
Note that this can open the door to this bug https://code.google.com/p/android/issues/detail?id=29509 which can cause https sockets to close when using network data. Quite a big one for my project so may have to try bypassing the proxy or reverting to HttpClient... On Tuesday, 27 November 2012

[android-developers] How to disable the broadcasting of the SSID of the mobile hotspot (tethering)

2013-04-08 Thread Frank
Hi all, Is it possible to disable the broadcasting of the SSID of the mobile hotspot (tethering)? I didn't see any device support this features. And i want to add this feature to hide the hotspot ssid. So other don't know a hotspot is being used. Thanks advanced. -- -- You received t

[android-developers] Re: How to compile APK using different constant

2013-04-08 Thread Harish
/> And in your code static private final boolean isForGoogleMarket ; static private final boolean isForOperaMarket; static private final boolean isForTStoreMarket; static private final boolean isForAmazonMarket; static private final boolean isForSamsungMarket; static p

Re: [android-developers] Access web service over SSL with client certificate (KSOAP)

2013-04-08 Thread mbarbiero
Thanks Ranuka... I'll try. mbarbiero Em sábado, 6 de abril de 2013 09h51min29s UTC-3, android developer escreveu: > > try these > > http://blog.callistaenterprise.se/2011/11/24/creating-self-signed- > certificates-for-u

[android-developers] Invitation to use Google Talk

2013-04-08 Thread Google Talk
--- You've been invited by vaibs malviya to use Google Talk. If you already have a Google account, login to Gmail and accept this chat invitation: http://mail.google.com/mail/b-cb6b2fe41c-274f775403-J5ZdIgvXeh9HiZk2qRUmHfKzxYI T

[android-developers]

2013-04-08 Thread vani reddy
Hi friends, I have 2 edittext fields where I need to enter text.While entering in the soft keyboard it is too slow ,keyboard pauses for 2 seconds after clicking on any character. I dont have any background threads running also. I referred this link http://stackoverflow.com/questions/7683154/andr

[android-developers] Re:

2013-04-08 Thread bob
I would definitely suspect this code: txtQty.setOnEditorActionListener( new OnEditorActionListener() { public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { Log.i("KeyBoard" ,"Inside the Edit Text"); .

Re: [android-developers]regarding bluetooth auto-pairing

2013-04-08 Thread bob
If you use this function, it does not require user input: *createInsecureRfcommSocketToServiceRecord*(UUID uuid) Thanks. On Saturday, April 6, 2013 9:05:02 AM UTC-5, akash roy wrote: > > can anyone tell me is auto pairing possible using bluetooth android i mean > to say no user interrupt is re

Re: [android-developers] How to disable the broadcasting of the SSID of the mobile hotspot (tethering)

2013-04-08 Thread Robert Greenwalt
I don't think this is currently possible from the UI. I'm not sure if the drivers support this either. Note that if you are using the hotspot (ie, connected) sniffers can easily find the ssid. Most people don't turn on tethering and leave it unused for long periods as it will reduce battery life

[android-developers] Re: Bizarre launch behavior for a "standard" launchMode Activity

2013-04-08 Thread plnelson
I appreciate everyone's efforts in making suggestions, but this has clearly stumped everyone, both here and on Stack Overflow. Is there a support/bugs forum read by actual Google/Android engineers I can ask a question like this on?Or is there a any documentation on the internal steps tak

[android-developers] Re: Bizarre launch behavior for a "standard" launchMode Activity

2013-04-08 Thread skink
plnelson wrote: > I appreciate everyone's efforts in making suggestions, but this has clearly > stumped everyone, both here and on Stack Overflow. > > Is there a support/bugs forum read by actual Google/Android engineers I can > ask a question like this on?Or is there a any documentation on t

[android-developers] Re: [Socket/Client-Server communication ] how to verify if url and port is working fine

2013-04-08 Thread Danny D
Depending on what you want to test, there many different tools. Here are some suggestions based on what I've used in the past. Testing that the server works, try a browser as described above for really basic yes/no test. If the data isn't HTML or JSON/XML, you might just use wireshark to see

Re: [android-developers] Re: Bizarre launch behavior for a "standard" launchMode Activity

2013-04-08 Thread Kristopher Micinski
I have to admit: I haven't followed your whole discussion because you've given a very small amount of sample code. I see that you're trying to launch with an intent, but don't see why it could include problems. So if you want a comprehensive answer, please make up a small sample project and put i

[android-developers] Re: How to disable the broadcasting of the SSID of the mobile hotspot (tethering)

2013-04-08 Thread bob
I seem to have this option on my phone: Thanks. On Monday, April 8, 2013 6:30:00 AM UTC-5, Frank wrote: > > Hi all, > > Is it possible to disable the broadcasting of the SSID of the m

Re: [android-developers] Re: How to disable the broadcasting of the SSID of the mobile hotspot (tethering)

2013-04-08 Thread Robert Greenwalt
I'll submit a feature request for this. On Mon, Apr 8, 2013 at 11:23 AM, bob wrote: > I seem to have this option on my phone: > > > > > Thanks. > > > > > On Monday, April 8, 2013 6:30:00 AM

[android-developers] Re: LocationManager with 3G

2013-04-08 Thread Diego Nunes
Someone? On Thursday, April 4, 2013 6:27:39 PM UTC-3, Diego Nunes wrote: > > Good afternoon. > > I have an application that retrieves the location from the Provider > network, the problem is that the location is no longer being recovered ( > not happening in onLocationChange) when using 3G, Wi-Fi

[android-developers] Control Nikon camera with MTP API

2013-04-08 Thread Bastiaan
Is it posible to control my camera (Nikon D70) with the MTP API? The camera supports the PTP protocol and a can read some camera information: mtpDevice.open(connection); tv.setText(mtpDevice.getDeviceInfo().getModel()); But how to control it? -- -- You received this message because you are su

Re: [android-developers] Re: Bizarre launch behavior for a "standard" launchMode Activity

2013-04-08 Thread plnelson
Coming up with a simplified example will be hard because it's a large industrial app with many activities and operates as a remote control for a manufacturing process under the control of a PC which sends commands to it asynchronously. But I did get an important clue today: I reported tha

Re: [android-developers] Re: Bizarre launch behavior for a "standard" launchMode Activity

2013-04-08 Thread plnelson
OK, I've solved my problem by getting the context of the current top activity ( or at least the last one to get an *onResume()* ) and using that as my context (ctx).Now, no matter what Activity is on the screen, when the command comes in from the PC to display graphics it launches right awa

Re: [android-developers] Loading Images Using HttpURLConnection Concurrently

2013-04-08 Thread Indicator Veritatis
It should not cause a 400 error, since the 400 error is caused by bad syntax. Specifying HTTPS is not bad syntax, and it should handle the exact same URL as HTTP (only the scheme being different). But do you know that the server you are using conforms well to the HTTP 1.1 spec? On Saturday, Ap

[android-developers] Re: Android 4.2 introduced SELinux enabled by default on kernel. am I right?

2013-04-08 Thread Indicator Veritatis
First of all, DroidMaster, this looks like you copied it verbatim from another website forum. Such crossposting is not always welcomed. Secondly, ignore the lmgtfy.com links, since he did not even give you the right set of keywords for useful Google queries. Thirdly, there seems to be some conf

Re: [android-developers] Re:

2013-04-08 Thread vani reddy
HI, Nothing else is in the code.It just returns true if the user clicks done or else it returns false.I referred the link which i sent in the previous mail. On Mon, Apr 8, 2013 at 8:08 PM, bob wrote: > I would definitely suspect this code: > > txtQty.setOnEditorActionListener( new

Re: [android-developers] Re:

2013-04-08 Thread vani reddy
HI, I have only put the below code: class DoneOnEditorActionListener implements OnEditorActionListener { @Override public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { if (actionId == EditorInfo.IME_ACTION_DONE) { Log.v("***