[android-developers] Re: New project with online database

2016-03-20 Thread Subodh Nijsure
I would certainly look at Retrofit2 library for doing any kind of http transaction ( http://square.github.io/retrofit/ ). You can find simple example using this library at https://github.com/snijsure/tinyurl For general callback stuff you should also make yourself familiar with RxAndroid ( http

[android-developers] Using android:action to launch activity from settings

2014-09-09 Thread Subodh Nijsure
I have defined my settings.xml file to include an item that uses android:action item in the setting dialog. See the sample code for that activity below. It all works fine. However this thing is "overlaying" my entire activity and when user presses back button my entire application finishes. Is the

[android-developers] How to prevent application install that are not signed by certs in "approved list"

2013-11-14 Thread Subodh Nijsure
Hello, On my OEM device we have custom launcher that only displays launch icons for APKs that are signed by list of specific keys. Is there a way to register broadcast receiver for PACKAGE_ADDED and then check signature of the APK and allow installation to proceed or fail it? -Subodh -- You re

[android-developers] How do I start adb on rooted device from Android application?

2013-11-08 Thread Subodh Nijsure
I have rooted phone on which I want to enable disable adb from program, without having to modify native system.settings application. So I have small Android application that executes commands as root: stop adbd setprop service.adb.root 0" adbd usb start adbd But when I connect to the device by U

Re: [android-developers] Re: Any good guide lines for using TAG when using Log. statements

2013-04-30 Thread Subodh Nijsure
idget already > gives you the option to filter by your app. > > > On Tuesday, April 30, 2013 2:02:41 PM UTC-4, Subodh Nijsure wrote: >> >> I am wondering if there any good practices that people have come up >> when it comes to defining TAG prefix for large android app

[android-developers] Any good guide lines for using TAG when using Log. statements

2013-04-30 Thread Subodh Nijsure
I am wondering if there any good practices that people have come up when it comes to defining TAG prefix for large android applications. So one can easily filter your application logs. Currently all my code uses: final String TAG = MyClassName.class.getSimpleName(); We have just recently moved t

[android-developers] Is there good source for Themes for Android applications

2013-04-15 Thread Subodh Nijsure
Yes, I have done google search on Android Theme collection and haven't come across anything impressive. Is there a good collection of web sites where one can purchase/connect with folks who do theme design for Android? -Subodh Nijsure -- -- You received this message because yo

Re: [android-developers] Re: How do you show 'Are you sure you want to quit' dialog?

2012-11-28 Thread Subodh Nijsure
I had no idea I would spark such a discussion. Only reason I was considering adding 'are you sure you want to exit' button was Some of my screens have 5-8 items that users enter stuff like name, address, some other data. I just don't want users to enter say 80% of data and loose that data just be

[android-developers] How do you show 'Are you sure you want to quit' dialog?

2012-11-27 Thread Subodh Nijsure
Hi, I want to present a yes/no dialog when user enters back, on main activity 'are you sure you want to quit? ' And if they click ok, quit the application. To do this I show a dialog in onDestroy() that asks yes/no question but that doesn't work. What is correct way to implement 'are you sure you

Re: [android-developers] Re: android SQLite

2012-10-28 Thread Subodh Nijsure
On Fri, Oct 26, 2012 at 2:23 AM, Tim wrote: > Dear Nageswararao, > > Could I suggest you have a look at the MobiForms Advanced Edition mobile > development suite for Android? > Can we keep the marketing stuff off the mailing list? You can always reply directly to person who requested information

Re: [android-developers] start service from service

2012-10-24 Thread Subodh Nijsure
On Wed, Oct 24, 2012 at 12:46 AM, Live Happy wrote: > I have a service in my application but this service stop working after time > and i want to keep the service keep working without stopping and for that i > try to start the same service from onDestroy method when it dieing but its > not work ev

Re: [android-developers] Does content provider run in its own process space?

2012-10-24 Thread Subodh Nijsure
On Wed, Oct 24, 2012 at 11:45 AM, Mark Murphy wrote: > On Wed, Oct 24, 2012 at 2:36 PM, Subodh Nijsure > wrote: >> We don't want this upload process to happen in context of UI hence >> the service. > > Please use a single process, and simply have the upload w

[android-developers] Does content provider run in its own process space?

2012-10-24 Thread Subodh Nijsure
r to that. -Subodh Nijsure -- 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...@google

Re: [android-developers] serial number?

2012-10-12 Thread Subodh Nijsure
Might want to search for ANDROID_ID in the document it is supposed to give unique id Subodh On Oct 12, 2012 8:24 AM, "bob" wrote: > Does every Android tablet have a serial number or some kind of unique > identifier? > > > -- > You received this message because you are subscribed to the Google >

Re: [android-developers] Android Module markets

2012-10-05 Thread Subodh Nijsure
On Fri, Oct 5, 2012 at 3:16 PM, Jeremy Villalobos wrote: > > I am interested in promotiong the idea of a geographically distributed, > lightly coupled idependent programmer groups somewhat specialized. I reach > the end of what Google could tell me and I wonder if somebody can send me in > the r

Re: [android-developers] Unable to register CONNECTIVITY_ACTION in a service

2012-10-03 Thread Subodh Nijsure
;> // Read all the text returned by the server >> BufferedReader in = new BufferedReader(new >> InputStreamReader(url.openStream())); >> in.close(); >> return true; >> } catch (Exception e) { >>

[android-developers] Unable to register CONNECTIVITY_ACTION in a service

2012-10-03 Thread Subodh Nijsure
Hello, I am trying to implement a service that is supposed to download stuff from a cloud service. So I want this service to be notified whenever phone/tablet looses network connectivity. So I implemented code that looks like this: receiver = new ConnectivityReceiver();

[android-developers] Errors while compiling latest Apidemos

2012-06-29 Thread Subodh Nijsure
This morning, I downloaded the latest Android 4.1(API 16) and also updated my eclipse plugins. I am trying to compile the ApiDemos and getting errors: AccessibilityNodeProvider cannot be resolved to a type AccessibilityNodeProviderActivity.java /com.example.android.apis.ApiDemos/src/com/examp

[android-developers] Is it possible to pre-assign permission for specific USB device?

2012-06-29 Thread Subodh Nijsure
I have an application that talks to external USB device with vendor id of say 0xD00D and product id of 0x01. Is it possible to specify in AndroidManifest.xml file that my application should always have permission to use device with ID 0xD00D:0x01 without user having to explicitly give this pe