[android-developers] How to check if Android Permission is actually being used?

2016-08-16 Thread Uday Kumar
HI, How to check permissions are being used or not those are declared in android manifest file. Thanks. -- 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 an

Re: [android-developers] How to check all items in listview with Espresso

2016-05-27 Thread TreKing
On Tue, May 24, 2016 at 10:16 AM, Дмитрий Попов wrote: > Is there are any way to test listview that it has all items in it > compatible for some condition? https://google.github.io/android-testing-support-library/docs/espresso/advanced/#matching-data-using-ondata-and-a-custom-viewmatcher

[android-developers] How to check all items in listview with Espresso

2016-05-24 Thread Дмитрий Попов
Hi! I try to find the way to test list items in my list view, for example to test filter business. I am using espresso framework for my tests. Is there are any way to test listview that it has all items in it compatible for some condition? -- You received this message because you are subscrib

[android-developers] How to check whether Google TTS voice data installed for Hindi Language

2015-01-05 Thread Gaurav Wable
I am using Google TTS Engine for Text-to-speech for Hindi Language. In onCreate Methode i have created an Intent to check whether voice data installed, and it gives result to onActivityResult methode @Overrideprotected void onActivityResult(int requestCode, int resultCode, Intent data) { s

Re: [android-developers] how to Check mobile data on/off in the device settings.

2014-01-26 Thread TreKing
On Sun, Jan 26, 2014 at 11:52 AM, 12169 wrote: > However, this code does not work on some devices, and throws an exception > that no such method exists. I have found it is not working in Android > 4.1.x. Why is it throwing this execption, and how can I fix it? This is the problem with copying a

[android-developers] how to Check mobile data on/off in the device settings.

2014-01-26 Thread 12169
Hi, I want to check whether mobile data is on/off, and for this I use the below code ConnectivityManager cm = (ConnectivityManager) context .getSystemService(Context.CONNECTIVITY_SERVICE);Class cmClass = Class.forName(cm.getClass().getName()); Method method = cmClass.getDecla

[android-developers] How to Check whether rtsp feed is working or not.

2013-08-23 Thread rajesh
Hi, Can any one help me in writing code to check, if a rtsp feed is working . My requirement is like this .I have a list of 10 rtsp urls every time my application runs ,I have to check rtsp feeds from those urls and stream from the working url. I am not able to figure out how to check whether

[android-developers] How to check if screen is held touched?

2013-02-23 Thread Edvinas Kilbauskas
Ok, so I'm having a little problem with OnTouchListener on android 2.3+ devices. I'm making a game, when you touch your screen, the player jumps, and if you hold your screen touched the player falls slower. Everything seem good on my android 2.2 device. Because I get MotionEvent.ACTION_MOVE even

[android-developers] how to check value of edittext input in gridview

2013-02-08 Thread Prabu Siabuabu
hallo android developers! i want to ask how to check the value of edittext input in gridview? ok, let me explain a lil bit about the context. i have a gridview layout and have some images in there, then when i click each of them, the alert pop up with the edittext on alert. then i should to inpu

[android-developers] How to check if an Android phone has front and rear facing cameras?

2013-01-27 Thread saex
Hi I need to detect if the phone has a front facing camera, and if so, I need to calculate the megapixels. The same thing goes for a rear facing camera. I know how to get the megapixels of a "Camera" object, but I don't know how to check for the other things. P.s.: I would also be nice if

[android-developers] How to check connection for Bluetooth server?

2012-09-21 Thread Zenghua HUANG
Hi guys. I made a Bluetooth server on Galaxy tab (Android 3.1) following the codes of BluetoothChat. I succeed in connecting this bluetooth server from my PC (though Docklight). When the PC disconnect the service, I want to know it in my program, how can I do that? I tried the method BluetoothSo

Re: [android-developers] How to check device rooted or unrooted programmatically from my app ?

2012-08-25 Thread Kristopher Micinski
You should google the history of this group, this has been discussed before. The basic answer is, you can't, and it's hard to define rooted. You can check if you can run "su," but that doesn't mean that you are root or not (necessarily) because of a somewhat ambiguous overloading of the word.. k

Re: [android-developers] How to check device rooted or unrooted programmatically from my app ?

2012-08-25 Thread 牛浩博
su 2012/8/25 RAJESH > Hello all, > > > Can any one tel me how to check device is rooted or UN-Rooted from my > app ? > > > Thanks, > Rajesh K > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email

[android-developers] How to check device rooted or unrooted programmatically from my app ?

2012-08-25 Thread RAJESH
Hello all, Can any one tel me how to check device is rooted or UN-Rooted from my app ? Thanks, Rajesh K -- 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 u

[android-developers] how to check table is empty or not

2012-08-23 Thread Sadhna Upadhyay
Hi everybody, can some one tell me how to check table is empty or not actually after deleting records from table ,when i click on view button force close error.and if table is not empty then there is not any error on clicking view button so i want to apply a condition if table is empty th

[android-developers] How to check bug id on git log

2012-08-16 Thread Danny Hsu
Dear all, When I check the commit id 503d6a44a8193d8111eba393651dcb522cc1cf87, it shows: commit 503d6a44a8193d8111eba393651dcb522cc1cf87 Author: Craig Mautner Date: Mon Jun 25 11:13:24 2012 -0700 DO NOT MERGE Set force hiding differently Only force hide windows when the keyguard

Re: [android-developers] how to check API usage information in apk file?

2012-06-19 Thread Kristopher Micinski
what APIs do you mean? It uses the Android API, most likely ... Do you mean what API *level*? kris On Tue, Jun 19, 2012 at 8:34 PM, michael wrote: > Hi, all, > > Given an apk file, how to check what APIs are used by this apk file? > > Thanks. > > -- > You received this message because you are s

[android-developers] how to check API usage information in apk file?

2012-06-19 Thread michael
Hi, all, Given an apk file, how to check what APIs are used by this apk file? 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,

Re: [android-developers] How to check which button is clicked

2012-05-21 Thread ravi saini
hii just implement your class activity from onclickListener and implement its method onclick and in that method you can use switch to get which button is pressed like switch (v.getId()) { case R.id.im1: { button1.setImageResource(R.drawable.p1o); break

Re: [android-developers] How to check the current contentView?

2012-05-16 Thread Narendra Singh Rathore
> class MyActivity { > > enum ViewMode { MAIN, DETAILS, INFO, ABOUT }; > > private ViewMode mViewMode; > > somewhere in the activity's code: > > setContentView(R.layout.main); > mViewMode = ViewMode.MAIN; > > > ... > > setCon

Re: [android-developers] How to check the current contentView?

2012-05-16 Thread Kostya Vasilyev
I think Dianne meant something like: class MyActivity { enum ViewMode { MAIN, DETAILS, INFO, ABOUT }; private ViewMode mViewMode; somewhere in the activity's code: setContentView(R.layout.main); mViewMode = ViewMode.MAIN; ...

Re: [android-developers] How to check the current contentView?

2012-05-16 Thread Narendra Singh Rathore
Honestly don't try to be clever. That wasn't cleverness, but the curiosity. > just have your own variable that keeps track of the last kind of content > view you set. > Ok, How? Do you mean, doing like *View v=findViewById(R.layout.main)*; or something else? > Be careful about ViewFlippe

Re: [android-developers] How to check the current contentView?

2012-05-16 Thread Dianne Hackborn
Honestly don't try to be clever, just have your own variable that keeps track of the last kind of content view you set. Be careful about ViewFlipper, since I believe it means that all of the view hierarchies will stay instantiated all of the time. And ultimately, this is the kind of thing that Fr

Re: [android-developers] How to check the current contentView?

2012-05-15 Thread Narendra Singh Rathore
On Wed, May 16, 2012 at 10:29 AM, Justin Anderson wrote: > Still... the ViewSwitcher/ViewFlipper approach is a better one. Ok, thanks. I know using ViewFlipper, and will use that surely. But just wanted to achieve my goal in a different way. Thanks again for valuable suggestion. With Regards, N

Re: [android-developers] How to check the current contentView?

2012-05-15 Thread Justin Anderson
Still... the ViewSwitcher/ViewFlipper approach is a better one. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, May 15, 2012 at 10:51 PM, Narendra Singh Rathore < nsr.curi...@gmail.com> wrote: > > > On Wed, May 16, 2012 at 2:05 AM, Justin Anderson

Re: [android-developers] How to check the current contentView?

2012-05-15 Thread Narendra Singh Rathore
On Wed, May 16, 2012 at 2:05 AM, Justin Anderson wrote: > I'm not even sure if calling that multiple times like you are doing is > allowed. Well, I am pretty sure about using that multiple times, as it is working well in that case. Only, you have to keep in mind that we must initialise only the

Re: [android-developers] How to check the current contentView?

2012-05-15 Thread Brian Collo Gonçalves
Maybe using a static var to maintain the view you're using and get the value in any other point you need to validate it. 2012/5/15 Justin Anderson > This is not the typical Android workflow, so I highly recommend you don't > do this... But, if you are dead set on this kind of behavior, do the >

Re: [android-developers] How to check the current contentView?

2012-05-15 Thread Justin Anderson
That way you also only have to call setContentView() one time... I'm not even sure if calling that multiple times like you are doing is allowed. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, May 15, 2012 at 2:32 PM, Justin Anderson wrote: > This

Re: [android-developers] How to check the current contentView?

2012-05-15 Thread Justin Anderson
This is not the typical Android workflow, so I highly recommend you don't do this... But, if you are dead set on this kind of behavior, do the following: 1. Put all your main views you want in either a ViewFlipper (or ViewSwitcher if there are only 2) 2. After calling setContentView, get

[android-developers] How to check the current contentView?

2012-05-15 Thread Narendra Singh Rathore
Hi all, Is this possible to check the current contentView? As in my code, I am using a single activity, along with three different content views (using setContentView()), which I am changing according to my requirement. All is working fine till now. Now, what I want is that - when *clicking the b

Re: [android-developers] How to check whether connected wifi network is secured or not

2012-04-24 Thread Chris Stratton
On Tuesday, April 24, 2012 7:08:06 AM UTC-4, Mark Murphy (a Commons Guy) wrote: > > On Tue, Apr 24, 2012 at 6:40 AM, Bunty syed wrote: > > But there are no APIS available in the WifiInfo to check the security > > -- WifiConfiguration tells you what was possible, not what was > negotiated for thi

Re: [android-developers] How to check whether connected wifi network is secured or not

2012-04-24 Thread Mark Murphy
On Tue, Apr 24, 2012 at 6:40 AM, Bunty syed wrote: > But there are no APIS available in the WifiInfo  to check the security > protocol like  security type ,encryption type or password > authentication required or not for the currently active wifi network. WifiInfo does not, but WifiConfiguration

[android-developers] How to check whether connected wifi network is secured or not

2012-04-24 Thread Bunty syed
Hi Guys, I have one query. Actually I want my app to make network call only if device is connected to secured wifi network which requires authentication I am using following code... WifiManager wifi =(WifiManager) getSystemService(Context.WIFI_SERVICE); if(wifi !=

Re: [android-developers] how to check the kind of push notification

2012-03-20 Thread Justin Anderson
> > I have implemented push notification using urban airship,now when i > receive a notification i am able to open the app, But my requirement is to > check what kind > of notification and open the appropriate activity of the app. > How to acheive this ??? > I would probably first start with asking

[android-developers] how to check the kind of push notification

2012-03-20 Thread vani reddy
Hi friends, I have implemented push notification using urban airship,now when i receive a notification i am able to open the app, But my requirement is to check what kind of notification and open the appropriate activity of the app. How to acheive this ??? Please reply its too urgent.. -- Thanks

[android-developers] How to check if wallpaper is actually visible?

2012-03-08 Thread James
I know there is the onVisibilityChanged() method in WallpaperService, however this does not get triggered when, for example, the applications menu is opened and the wallpaper is hidden behind the list of installed applications. My wallpaper responds to touch and move events, and these are getting

[android-developers] How to check when the phone changues from portrait to landscape? (with portrait mode forced in manifest)

2012-02-21 Thread saex
I have a special need for my app. I must force the app to work only in portrait mode, but i need to know when the user has moved the phone to landscape mode. Why? because i am displaying a opengl view with a texture image, and when the user changues the phone position to landscape mode i must rotat

[android-developers] How to Check Or Enable GPRS Programatically

2012-01-31 Thread Dhaval Varia
*I am having application where i compulsory need GPRS (Not Wifi) ON. Is there any way to check wether GPRS is ON? and if it is OFF ,Is there any way to make it turn on without/With user interaction * -- Thanks & Best Regards. -

[android-developers] How to check SNS(twitter,Google+,google talk) functionality in Android4.0(ICS)

2012-01-26 Thread rakesh kumar
Hi, can Anyone tell me how we can check SNS(twitter,Google+,google talk) functionality in Android4.0(ICS). I am using the emulator. I have done the following steps to add the account Settings > Accounts and Sync->Email and provide the user Credentials. but when I ha

[android-developers] How to check SNS(twitter,Google+,google talk) functionality in Android4.0(ICS)

2012-01-26 Thread rakesh kumar
Hi, (1) Can any one tell how we can check the SNS(twitter,Google +,google talk) functionality in Android4.0. (2) Can any one tell How we can register emulator with an google account. Thanks in Advance -- You received this message because you are subscribed to the Google Groups "And

Re: [android-developers] How to check for GPS

2012-01-16 Thread Kristopher Micinski
Try to listen for a gps update and see if you get one? You can also register a passive provider and listen for updates, you can also do a LocationManager.getGpsStatus to find out what the state of the provider is at a given time (this is probably what you want). Or are you wondering how to detect

[android-developers] How to check for GPS

2012-01-16 Thread Sumedh
hello, i have android device zinglife e-pad. want to run my application which require GPS enabled i have enabled the GPS from the settings, but it doesnt show any indication for GPS enabled, (as we can see in other devices that a disk at the top) neither my application is executing. is there any

Re: [android-developers] How to Check Accessibility "TalkBack" is ON or OFF Programmatically?

2011-10-03 Thread Dianne Hackborn
TalkBack is just one specific implementation of an accessibility service, it doesn't make sense to check for it being turned on. Any code written to specifically check for it is fundamentally broken. That said. http://developer.android.com/reference/android/provider/Settings.Secure.html#ENABLED_

[android-developers] How to Check Accessibility "TalkBack" is ON or OFF Programmatically?

2011-10-02 Thread abi
How to Check Accessibility "TalkBack" is ON or OFF Programmatically? Please Suggest... Thanks & Regards, Abirami -- 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 u

[android-developers] how to check if device has hardware search key

2011-09-29 Thread Latimerius
I thought querying the SPECIAL_FUNCTION KeyCharacterMap instance for KEYCODE_SEARCH would do the trick, however there's no SPECIAL_FUNCTION until API Level 11, whereas I need to support 7. Any ideas? Cheers! -- You received this message because you are subscribed to the Google Groups "Android D

[android-developers] how to check flag value in web server data is send or not?

2011-09-22 Thread gajendra singh
package com; import java.util.ArrayList; import org.ksoap2.SoapEnvelope; import org.ksoap2.serialization.PropertyInfo; import org.ksoap2.serialization.SoapObject; import org.ksoap2.serialization.SoapSerializationEnvelope; import org.ksoap2.transport.HttpTransportSE; import android.app.Activity;

Re: [android-developers] How to check if email was send

2011-08-24 Thread Mark Murphy
On Wed, Aug 24, 2011 at 3:03 PM, Alejandro Carlstein Ramos Mejia wrote: > However, I cannot find how to VERIFY if the email was sent or not > successfully. You can't. This is inherent in email, as anyone who has ever used email should recognize. > Ideas? Don't worry about it and move along with

[android-developers] How to check if email was send

2011-08-24 Thread Alejandro Carlstein Ramos Mejia
I understand the concern for not allowing an application to submit directly an email. I found code that explain how to send an email (really is how to call the email application in the android). However, I cannot find how to VERIFY if the email was sent or not successfully. Ideas? -- You received

[android-developers] How to check for free RAM memory available

2011-08-20 Thread Pradeep
Hi All, What is the best way to check for free RAM memory available for apps ? "adb shell top" gives a much lesser value as it does not exclude the memory being used for caching. What is the free memory value that "Advanced Task Manager" gives ? Regards, Pradeep -- You received this message b

[android-developers] How to check memory leaks

2011-07-18 Thread Suraj Gopalakrishnan
Hi All, I want to know if there is any way by which i can find out the memory leaks(heap dump) in eclipse? I have tried Memory Analyzer Tool (eclipse plug-in).. But I am having hard time in figuring out what to do.. Does anyone know any simpler method? -- Best Regards, Suraj Gopalakrishnan --

[android-developers] How to check caching in DefaultHttpClient on Android

2011-07-15 Thread Sathish
My Android application requires to cache the response text from a web service call using DefaultHttpClient. The cache should be valid till the expiry time set in the Http response header. I found similar questions but they were complaints that the DefaultHttpClient is caching their responses. Funn

Re: [android-developers] How to check internet connection in background when application closed

2011-07-11 Thread ashish keshri
Hi Can you please shareyour logic and code. Thanks On Mon, Jul 11, 2011 at 4:19 PM, NaveenShrivastva < kumarnaveen.si...@gmail.com> wrote: > > > On Mon, Jul 11, 2011 at 3:48 PM, N K Shrivastva < > kumarnaveen.si...@gmail.com> wrote: > >> How to check internet connection in background when

Re: [android-developers] How to check internet connection in background when application closed

2011-07-11 Thread TreKing
On Mon, Jul 11, 2011 at 5:18 AM, N K Shrivastva wrote: > How to check internet connection in background when application closed > by user. i have idea about Async class and it's method, > > > i want it's works in background when application closed then after > also. i want chacek alws in backgro

Re: [android-developers] How to check internet connection in background when application closed

2011-07-11 Thread NaveenShrivastva
On Mon, Jul 11, 2011 at 3:48 PM, N K Shrivastva wrote: > How to check internet connection in background when application closed > by user. i have idea about Async class and it's method, > > > i want it's works in background when application closed then after > also. i want chacek alws in backgro

[android-developers] How to check internet connection in background when application closed

2011-07-11 Thread N K Shrivastva
How to check internet connection in background when application closed by user. i have idea about Async class and it's method, i want it's works in background when application closed then after also. i want chacek alws in background after 2 sec like.. Please help me, -- You received this mes

[android-developers] How to check ip is available in network or not?

2011-07-01 Thread shubh
I have an list of IP which I am getting using UDP broadcasting, so on the bases of Alive/Death packet ,i got to know whether user alive or went off. But i have an single case suppose user went out from network before sent death packet, then how can I detect user live or not. - Solution which i ha

[android-developers] How to check telephony is available

2011-04-26 Thread b_t
Hi, Is there any way to check if telephony is available? Checking for PackageManager.FEATURE_TELEPHONY feature is not a solution because there are phones that says false to this feature but has telephony. Thanks, Tamás -- You received this message because you are subscribed to the Google Group

Re: [android-developers] How to check network is present or not

2011-04-11 Thread TreKing
On Mon, Apr 11, 2011 at 4:26 AM, Zhagan wrote: > How to check whether N/W is present or Not in the device using Code.?? 1 - Go the documentation. 2 - Find the search box in the upper right. 3 - Start typing a query. In this case, for example, "network". 4 - Watch as the page filters your result

[android-developers] How to check network is present or not

2011-04-11 Thread Zhagan
Hi, How to check whether N/W is present or Not in the device using Code.?? I need to launch my application, it has to say me Network is present or not. Thanks for the help in advance. //Azn -- You received this message because you are subscribed to the Google Groups "Android Developers" group

[android-developers] How to check if an alert dialog exists from Instrumentation

2011-04-01 Thread HandsomeboyIT
Hi guys, I'm writing a program to test some applications (app A, app B) with Instrumentation object (in app C). And I want to check if a dialog exist after performing a 'click' action on instrumented application. How can I do this? Thanks. -- You received this message because you are subscribed t

Re: [android-developers] How to check all checkboxes at some specific event?

2011-03-28 Thread Mark Murphy
Call setItemChecked() on the ListView for each position (0 to the size of your list - 1). On Mon, Mar 28, 2011 at 4:02 AM, Varun Batra wrote: > Hi guys, > > I am making an app which required my checkboxes to be checked at once > when i check the main checkbox. > I am using one normal checkbox wid

[android-developers] How to check all checkboxes at some specific event?

2011-03-28 Thread Varun Batra
Hi guys, I am making an app which required my checkboxes to be checked at once when i check the main checkbox. I am using one normal checkbox widget which i am hoping will work as my main checkbox and i am also using LIST of multiple choice(simple_list_item_multiple_choice). Now i want to check al

[android-developers] how to check my sign is correct & not

2011-03-05 Thread rishabh agrawal
how to check my sign is correct or not,becouse i have no android phone where i can test.i sign my apps using eclipse so how i will chek ..plz help -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to

Re: [android-developers] How to check the status of LockScreen

2011-03-02 Thread Rocky
I restructure the code, now its working fine for in HTC & MOTOROLLA, but it is not working in SONY XPERIA X10 On Thu, Jan 6, 2011 at 11:06 AM, Rocky wrote: > My problem is, > > when i'm inside the my apps, and press the power button for lock the > screen, and again press the power button for un

Re: [android-developers] How to check the status of LockScreen

2011-01-05 Thread Rocky
My problem is, when i'm inside the my apps, and press the power button for lock the screen, and again press the power button for unlock the screen, i'm redirecting over the same Activity where i was initially. But, i want, when i press the power button for unlock the screen, needs to go PasswordA

Re: [android-developers] How to check the status of LockScreen

2011-01-05 Thread Rocky
thaks kostya, lets try to do with this. On Wed, Jan 5, 2011 at 8:59 PM, Kostya Vasilyev wrote: > Rocky, > > PowerManager has to do with electric power, not with the power to unlock > the screen. > > Try this one: > > http://developer.android.com/reference/android/app/KeyguardManager.html > >

Re: [android-developers] How to check the status of LockScreen

2011-01-05 Thread Kostya Vasilyev
Rocky, PowerManager has to do with electric power, not with the power to unlock the screen. Try this one: http://developer.android.com/reference/android/app/KeyguardManager.html ( although I don't know if what you're trying to do is at all possible ) -- Kostya 05.01.2011 17:07, Rocky ?

Re: [android-developers] How to check the status of LockScreen

2011-01-05 Thread Rocky
any idea for this. I'm trying to handle the Power button nature. My problem is, when i'm inside the my apps, and press the power button for lock the screen, and again press the power button for unlock the screen, i'm redirecting over the same Activity where i was initially. But, i want, when i p

Re: [android-developers] How to check the status of LockScreen

2011-01-05 Thread Rocky
I tryed though PowerManager but can't succeed On Wed, Jan 5, 2011 at 7:26 PM, RKJ (Android developer) < rkjhaw1...@gmail.com> wrote: > Hi All, > > my issue is, when i'm inside the my apps, and press the power button > to screen lock (in desire), and again press the power button to unlock > the sc

[android-developers] How to check the status of LockScreen

2011-01-05 Thread RKJ (Android developer)
Hi All, my issue is, when i'm inside the my apps, and press the power button to screen lock (in desire), and again press the power button to unlock the screen, i'm redirecting to that page earlier i was. But I want, when i press the power button to unlock the screen, i need to to my PasswordActiv

[android-developers] How to check the state of an activity and buttons(for selector : res/Drawable)

2011-01-04 Thread 종영 박
Hi... It's good day, but I'm not. This problem makes me crazy. I'm using the selector for changing the image of button by using the state_enable, state_focusedect But sometimes my application is doing wrong action. So I tried to find how to check the state(state_enable or state_foc

[android-developers] how to check phone support torch mode..problem pls solve

2010-12-28 Thread Atik
Hello Android phone doesnt having the LED or flash light. so how can we check weather that device supports Flash light or not.. how we can communicate with hardware to check the same. Thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" grou

Re: [android-developers] How to check...?

2010-12-21 Thread Sarwar Erfan
Have you tried getState() method of NetworkInfo? Regards Sarwar Erfan -- 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 an

Re: [android-developers] How to check...?

2010-12-21 Thread Abhilash baddam
any suggestions please... 2010/12/21 Abhilash baddam > thanks Kostya Vasilyev, > >I tried like this > >void chkStatus() > { > final ConnectivityManager connMgr = (ConnectivityManager) > this.getSystemService(Context.CONNECTIVITY_SERVICE); >

Re: [android-developers] How to check...?

2010-12-21 Thread Abhilash baddam
thanks Kostya Vasilyev, I tried like this void chkStatus() { final ConnectivityManager connMgr = (ConnectivityManager) this.getSystemService(Context.CONNECTIVITY_SERVICE); final android.net.NetworkInfo wifi = connMgr.getNetworkInfo(Co

Re: [android-developers] How to check...?

2010-12-21 Thread Kostya Vasilyev
ConnectivityManager (look it up in the sdk reference). -- Kostya Vasilyev -- http://kmansoft.wordpress.com 21.12.2010 15:35 пользователь "Abhilash baddam" < abhilash.androiddevelo...@gmail.com> написал: > Hi friends, > > How can we know programmatically whether the mobile is > connected to interne

[android-developers] How to check...?

2010-12-21 Thread Abhilash baddam
Hi friends, How can we know programmatically whether the mobile is connected to internet or not either by mobile network or wifi. Regards, Abhilash -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group,

Re: [android-developers] How to check if background data is enabled?

2010-12-20 Thread Kostya Vasilyev
It's in ConnectivityManager, there is also a broadcast for when the user changes this setting. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 21.12.2010 1:08 пользователь "Achie" написал: > I want to check if the user enabled background data on his/her device > and display a message if it is

Re: [android-developers] How to check if background data is enabled?

2010-12-20 Thread Mark Murphy
Use getBackgroundDataSetting() on ConnectivityManager. If you really feel you need to get it from Settings, use: Settings.Secure.getInt(mContext.getContentResolver(), Settings.Secure.BACKGROUND_DATA, 1) == 1 to get a boolean indicator. On Mon, Dec 20, 2010 at 5:07 PM, Achie wrot

[android-developers] How to check if background data is enabled?

2010-12-20 Thread Achie
I want to check if the user enabled background data on his/her device and display a message if it is disabled. How can I check if it has been enabled? I tried Settings.System.getString(getContentResolver(), Settings.Secure.BACKGROUND_DATA); and Settings.Secure.getString(getContentResolver(), Setti

Re: [android-developers] how to check whether table is existed or not in database?

2010-11-08 Thread Kumar Bibek
Run this query SELECT name FROM sqlite_master WHERE type='table' ORDER BY name; On Mon, Nov 8, 2010 at 2:42 PM, pramod.deore wrote: > Hi, I want to know how to check whether certain table is existed or > not in a database? > > -- > You received this message because you are subscribed to the Goo

[android-developers] how to check whether table is existed or not in database?

2010-11-08 Thread pramod.deore
Hi, I want to know how to check whether certain table is existed or not in a database? -- 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,

Re: [android-developers] How to check for existence of 3rd party library during installation?

2010-10-06 Thread Kumar Bibek
Yes you can. Query the package manager. On Sun, Oct 3, 2010 at 2:06 PM, Shivakumar T wrote: > Hi, > > If my app is dependent on a 3rd party library, say > chartdroid. > Is there a way to check this dependency during installation time and > redirect the use

Re: [android-developers] How to check for existence of 3rd party library during installation?

2010-10-06 Thread Mark Murphy
On Sun, Oct 3, 2010 at 4:36 AM, Shivakumar T wrote: > If my app is dependent on a 3rd party library, say chartdroid. Is there a > way to check this dependency during installation time and redirect the user > to install the dependency before continuing to install my app. I am assuming your "3rd pa

[android-developers] How to check for existence of 3rd party library during installation?

2010-10-06 Thread Shivakumar T
Hi, If my app is dependent on a 3rd party library, say chartdroid . Is there a way to check this dependency during installation time and redirect the user to install the dependency before continuing to install my app. I ask this because while installing

[android-developers] How to check for existence of 3rd party library during installation?

2010-10-06 Thread cx0der
Hi, If my app is dependent on a 3rd party library, say chartdroid. Is there a way to check this dependency during installation time and redirect the user to install the dependency before continuing to install my app. I ask this because while installing one Google app (I think Google translate) it

[android-developers] How to check that activity displays dialog during unit testing

2010-09-24 Thread Eugeny kropotin
Hello, Android Developers! I have some question for you. I want to write testcases for my android application using JUnit. And I faced some problems. Is it possible to check that activity displays some dialog at current moment? Here is a small piece of my test application: ... Instrument

Re: [android-developers] How to check if a user defined service is already running

2010-09-07 Thread Agus
returns START_STICKY in your onStartCommand method of your service. On Mon, Sep 6, 2010 at 8:51 PM, sunny wrote: > Dear Folks, > I have a service that is running within the context of my application. It > gets invoked at the start of the activity and then gets update when new data > is inserted

[android-developers] How to check if a user defined service is already running

2010-09-06 Thread sunny
Dear Folks, I have a service that is running within the context of my application. It gets invoked at the start of the activity and then gets update when new data is inserted or deleted from the database. The problem is that everytime I start the activity , it restarts the service. As you may have

[android-developers] How to check if view is invalidated or dirty?

2010-09-01 Thread woefulwabbit
Hi, I have a View that is rendered offscreen into a bitmap before being converted into a glTexture to be rendered onto a GLSurfaceView. This works great except that it is very expensive to do this as I am regenerating the glTexture every frame. I would like to regenerate the glTexture only when the

Re: [android-developers] How to check the Foreground Process from a Service

2010-08-21 Thread Mark Murphy
On Fri, Aug 20, 2010 at 4:25 PM, Call_Waiting wrote: > Does anyone know how to, or if it's even possible to check the > (foreground process/top of the activity stack) from a service? I am not aware of a way to "check (foreground process/top of the activity stack)" anywhere, let alone from a Servi

[android-developers] How to check the Foreground Process from a Service

2010-08-21 Thread Call_Waiting
Does anyone know how to, or if it's even possible to check the (foreground process/top of the activity stack) from a service? -- 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@googlegrou

[android-developers] How to check if vertical scroll bar is shown ?

2010-08-20 Thread dave
Hi all, I want to check if the vertical scrollbar is shown or not. I read the document and could not figure it out. Is there anyway to do it ? Thank you very much. Dave -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gro

[android-developers] How to check different tags on module

2010-08-19 Thread Nikkea
Hi guys, If choose eng as BUILD_VARIANT, it will install modules tagged with: |eng|, |debug|, |user|, and/or |development|. Does anyone know how to check module's tag and what's the tag function? Thanks, Nikkea -- You received this message because you are subscribed to the Google

Re: [android-developers] how to check whether insterted SD Card is full or not

2010-08-06 Thread Fabrizio Giudici
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/6/10 18:21 , TreKing wrote: > On Fri, Aug 6, 2010 at 8:23 AM, pradeep > wrote: > > Could you please let me know if there is any API to check > whether inserted SD Card is full . If it has free space, then >

Re: [android-developers] how to check whether insterted SD Card is full or not

2010-08-06 Thread TreKing
On Fri, Aug 6, 2010 at 8:23 AM, pradeep wrote: > Could you please let me know if there is any API to check whether inserted > SD Card is full . If it has free space, then how to know how much free > space is left. > The SD card is a Java File like any other. Knowing this, doing this http://tinyu

[android-developers] how to check whether insterted SD Card is full or not

2010-08-06 Thread pradeep
Hi All, Could you please let me know if there is any API to check whether inserted SD Card is full . If it has free space, then how to know how much free space is left. Thanks in advance Pradeep -- You received this message because you are subscribed to the Google Groups "Android Developers" gr

Re: [android-developers] How to check the which application is calling from framework

2010-07-23 Thread TreKing
On Fri, Jul 23, 2010 at 7:11 AM, vinay wrote: > can anybody tell me, how to check which function is calling my framework > code?? > You mean you need the call stack to see what's calling your functions? Why in the world would this matter and what would you even do with this information? is thi

[android-developers] How to check the which application is calling from framework

2010-07-23 Thread vinay
Hi all, can anybody tell me, how to check which function is calling my framework code?? is this possible to check?? Thx advance. Regards, V.Vinay -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to androi

Re: [android-developers] how to check if the current thread is in the ui thread?

2010-07-13 Thread Mark Murphy
On Tue, Jul 13, 2010 at 1:38 PM, guich wrote: > I have a situation where i want to show a dialog. However, the code > that calls the method to show the dialog can be running either in the > ui thread or not. > > How can i find if the current thread is running in the ui thread or > not? Actually,

  1   2   >