[android-developers] Sending touch events to underlying layer on system alert overlay activity

2016-07-01 Thread galapogos
Hi, Is it possible to have a partial screen system alert that passes touch events that are outside its window to the layer underneath? I'm trying to do this but I can't seem to figure out how. Here's the code where I create the View. params = new WindowManager.LayoutParams(

Re: [android-developers] Data transfer over USB between Android host and device

2013-10-21 Thread galapogos
drivers for these platforms? Thanks again. On Monday, October 21, 2013 11:00:09 AM UTC+8, SIVAKUMAR.J wrote: U can use socket connection.there is android API is available On Oct 21, 2013 8:27 AM, galapogos goi...@gmail.com javascript: wrote: Hi, Is there any protocol that enables data

[android-developers] Data transfer over USB between Android host and device

2013-10-20 Thread galapogos
Hi, Is there any protocol that enables data transfer over USB between Android host and devices. I'm not looking for file transfer like adb, but rather data transfer like over a serial port or something, but faster. Thanks! -- You received this message because you are subscribed to the Google

Re: [android-developers] Selecting an radio button item in a multi page list

2013-10-15 Thread galapogos
On Monday, October 14, 2013 8:49:14 PM UTC+8, TreKing wrote: On Mon, Oct 14, 2013 at 12:42 AM, galapogos goi...@gmail.comjavascript: wrote: I have a list that is multiple pages long, and I'm trying to get the list index of the item that is selected using radio buttons

[android-developers] Re: Selecting an radio button item in a multi page list

2013-10-15 Thread galapogos
store the appropriate index in the view during onBind... it gets easier if you use the ViewHolder pattern since the ViewHolder object makes it easy to also store extra information (like that index you want). On Monday, October 14, 2013 8:42:09 AM UTC+3, galapogos wrote: Hi, I have a list

[android-developers] Selecting an radio button item in a multi page list

2013-10-13 Thread galapogos
Hi, I have a list that is multiple pages long, and I'm trying to get the list index of the item that is selected using radio buttons. In onClickRadioButton() which I'm passing in my current View, I'm setting the myview as view.getParent() and the list index as ((ViewGroup)

[android-developers] Selecting an radio button item in a multi page list

2013-10-13 Thread galapogos
Hi, I have a list that is multiple pages long, and I'm trying to get the list index of the item that is selected using radio buttons. In onClickRadioButton() which I'm passing in my current View, I'm setting the myview as view.getParent() and the list index as ((ViewGroup)

Re: [android-developers] Security lock replacement

2013-02-24 Thread galapogos
, Feb 22, 2013 at 12:59 AM, galapogos goi...@gmail.comjavascript: wrote: Hi, Is it possible to create a lockscreen replacement at the application level that replaces the device's security lock, whether it be PIN, passphrase, pattern or face unlock, or potentially a new method? I know

[android-developers] Security lock replacement

2013-02-22 Thread galapogos
Hi, Is it possible to create a lockscreen replacement at the application level that replaces the device's security lock, whether it be PIN, passphrase, pattern or face unlock, or potentially a new method? I know it's possible in the framework level, and have done it before, but I'm just

Re: [android-developers] Re: How to compile Android Launcher source code?

2013-01-01 Thread galapogos
On Monday, December 31, 2012 9:07:46 PM UTC+8, Mark Murphy (a Commons Guy) wrote: On Sun, Dec 30, 2012 at 11:43 PM, galapogos goi...@gmail.comjavascript: wrote: I'm specifically trying to first get the ICS AOSP launcher to install on any ICS phone, and then modify it with some

[android-developers] Building AOSP launcher without private APIs

2012-12-30 Thread galapogos
Hi, Is it possible to build the ICS AOSP launcher without private APIs so that it will install into any ICS device? I've tried to build the ICS AOSP launcher from the AOSP source but had trouble installing it into regular ICS devices. I keep getting the error INSTALL_FAILED_DEXOPT. Thanks.

Re: [android-developers] Re: How to compile Android Launcher source code?

2012-12-30 Thread galapogos
Hi, Is there any way of removing the private APIs so that the AOSP launcher may be used with any Android device? I'm specifically trying to first get the ICS AOSP launcher to install on any ICS phone, and then modify it with some features. Would appreciate any pointers on how to remove the

Re: [android-developers] Building Android Launcher without experimental/private APIs

2012-12-05 Thread galapogos
Hi, I didn't get your reply. Did I miss something? On Wednesday, December 5, 2012 2:39:17 PM UTC+8, asheesh arya wrote: On Wed, Dec 5, 2012 at 12:02 PM, galapogos goi...@gmail.com javascript: wrote: Hi, I'm trying to build the Android ICS Launcher so that it will run on any Android

[android-developers] Building Android Launcher without experimental/private APIs

2012-12-04 Thread galapogos
Hi, I'm trying to build the Android ICS Launcher so that it will run on any Android device with ICS, such as the Samsung Galaxy S3, but I understand that the stock launcher includes experimental/private APIs that may not work on all devices. Is there any way to disable these APIs, and if so,

[android-developers] Displaying a Toast notification in Password Unlock Screen

2012-09-18 Thread galapogos
I'm trying to display a Toast notification in verifyPasswordAndUnlock() in PasswordUnlockScreen.java whenever a user enters the wrong password. I wrote the following code, and built successfully. Toast.makeText(getContext(), Invalid password, Toast.LENGTH_LONG).show(); However, the Toast

Re: [android-developers] Sharing data between Android framework and app

2012-08-14 Thread galapogos
, and this is what I think is the right way to do it :-). You can see tons of other examples of this kind of thing: inside any *Manager, for example, providing this interface. kris On Mon, Aug 13, 2012 at 10:57 PM, galapogos goi...@gmail.comjavascript: wrote: Thanks, I didn't know

Re: [android-developers] Sharing data between Android framework and app

2012-08-13 Thread galapogos
Where would it belong then? Yes I'm trying to share some data between the framework and the launcher app, and I'm trying to accomplish this via SharedPreferences. The framework will set a variable during user authentication, which will then be read later on by the launcher. I'm having some

Re: [android-developers] Sharing data between Android framework and app

2012-08-13 Thread galapogos
? I'm a little weary of sticking this in shared preferences for this, but I guess there's nothing inherently horrible about that.. kris On Mon, Aug 13, 2012 at 5:28 AM, galapogos goi...@gmail.com javascript: wrote: Where would it belong then? Yes I'm trying to share some data

[android-developers] Re: Sharing data between Android framework and app

2012-08-13 Thread galapogos
Thanks. However, the device I'm working on doesn't have an internet connection nor any accounts set up, so whenever I try to access the accounts, even just accounts[0], I get a ArrayIndexOutOfBoundsException. On Monday, August 13, 2012 4:11:48 PM UTC+8, jb wrote: You can store key/value pairs

[android-developers] How to detect the launch of another application?

2012-08-03 Thread galapogos
Hi, I would like to be able to detect the launch of another app/activity from my service. I was previously able to do this on gingerbread/froyo devices via inspection of logcat messages, specifically something like: I/ActivityManager: Starting: Intent ... cmp=packagename} from pid

[android-developers] App talking to native ARM binary via sockets

2012-06-06 Thread galapogos
Hi, I'm trying to get an Android app to talk to a native Android binary service. Basically when I click a button, the app should send data to the service, and receive some data back as well. I've written the Android client app code, relevant portion below: Button.OnClickListener

[android-developers] Re: App talking to native ARM binary via sockets

2012-06-06 Thread galapogos
wrong? On Wednesday, June 6, 2012 2:17:50 PM UTC+8, galapogos wrote: Hi, I'm trying to get an Android app to talk to a native Android binary service. Basically when I click a button, the app should send data to the service, and receive some data back as well. I've written the Android client

[android-developers] Re: App talking to native ARM binary via sockets

2012-06-06 Thread galapogos
Thanks. Seems like 127.0.0.1 works. I also tried 0.0.0.0 and that worked too. I would also like to use unix domain sockets, since I really only want the 2 processes talking to each other rather than any external devices talking to my device. However, when I change AF_INET to AF_UNIX in the

[android-developers] Tons of error trying to build ADWLauncher

2012-06-04 Thread galapogos
I'm trying to build ADWLauncher, but I'm getting a ton of compiler errors in Eclipse SDK 3.7.1 in a Win7 32bit PC with JDK7. I imported ADWLauncher to Eclipse. and I'm getting the following errors: Description ResourcePathLocationType Android requires compiler compliance

[android-developers] Starting an app upon device startup

2012-04-10 Thread galapogos
Hi, I'm writing an app for a specialized Android device that runs in a kiosk-like mode, i.e. my app will be the only app that runs, and must run upon startup. Additionally, the app must launch only after the user has unlocked the device with a modified Android launcher. I'm thinking about how

[android-developers] Re: Using an adapter from another class/activity

2012-01-12 Thread galapogos
Thanks. How would I use this model for ArrayAdapters across several activities? Currently, I define my ArrayAdapter class in 1 .java file, declare/ initialize it in my main activity's onCreate() method, generate the list that binds to the adapter in a background thread in my main activity (this

[android-developers] Using an adapter from another class/activity

2012-01-11 Thread galapogos
Hi, How can I use an ArrayAdapter from another activity? I tried doing the following in MyListActivity.onCreate(): setListAdapter(SomeOtherActivity.myAdapter); where myAdapter is defined and initialized in SomeOtherActivity. However, I get an empty list, even though I verified that

[android-developers] Re: Using an adapter from another class/activity

2012-01-11 Thread galapogos
, 2012, at 4:19 PM, galapogos wrote: Hi, How can I use an ArrayAdapter from another activity? I tried doing the following in MyListActivity.onCreate(): setListAdapter(SomeOtherActivity.myAdapter); where myAdapter is defined and initialized in SomeOtherActivity. However, I get

[android-developers] ArrayAdapter custom filtering over multiple activities

2012-01-10 Thread galapogos
Hi, I have an app with multiple tabs, each with its own ListActivity, let's call them SubActivities. The MainActivity that houses the SubActivities creates a list, and the SubActivities display a subset of the list based on some parameters. I'm currently implementing this with separate adapters

[android-developers] Re: Update view of installed apps without reloading

2012-01-06 Thread galapogos
this smaller list instead. However, this doesn't work since the main app list is always empty when the ListActivity tries to access it since it's not created yet. On Jan 6, 2:49 pm, galapogos gois...@gmail.com wrote: On Jan 5, 9:49 pm, TreKing treking...@gmail.com wrote: On Wed, Jan 4, 2012 at 8:06

[android-developers] Checking if an app/package is launchable

2012-01-06 Thread galapogos
Hi, I've created a list of apps using getInstalledPackages(). How do I check if the individual apps/packages are launchable? 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] Re: Android activity/task order issue

2012-01-05 Thread galapogos
this is so? android:launchMode=singleTask and FLAG_ACTIVITY_NEW_TASK should produce the same behavior. On Jan 5, 12:56 pm, galapogos gois...@gmail.com wrote: Hi, I have an app with 2 main activities and a service. The app starts with activity 1, and the service launches activity 2 via an intent upon

[android-developers] Re: Android activity/task order issue

2012-01-05 Thread galapogos
the taskAffinity to some random string seems to work. Still wondering why the flags don't work as advertised though... On Jan 6, 10:25 am, galapogos gois...@gmail.com wrote: Hi, I've also noticed that launching activity 2 with FLAG_ACTIVITY_NEW_TASK does not seem to work. Everytime activity 2

[android-developers] Fast displaying and filtering of installed apps

2012-01-05 Thread galapogos
I'm trying to list all the installed apps on a device using getInstalledPackages, and this gives returns me a List of all packages, including system apps and non-launchable apps. I have 3 questions: 1. getInstalledPackages seem to take quite a bit of time to detect and display all apps(varies

[android-developers] Re: Fast displaying and filtering of installed apps

2012-01-05 Thread galapogos
, galapogos gois...@gmail.com wrote: 3. Is there any way of saving the result so that when I come back to the app after a while, and Android has removed my app from memory, I don't need to regenerated? Perhaps using savedInstanceState or something? SavedInstanceState, or a file

[android-developers] Re: Update view of installed apps without reloading

2012-01-05 Thread galapogos
On Jan 5, 9:49 pm, TreKing treking...@gmail.com wrote: On Wed, Jan 4, 2012 at 8:06 PM, galapogos gois...@gmail.com wrote: 1. getInstalledPackages seem to take quite a bit of time to detect and display all apps(about 8-10s for 200+ apps). Is it possible to make this faster? Titanium Backup

[android-developers] Re: TYPE_SYSTEM_ALERT for Activities

2012-01-04 Thread galapogos
I can switch to another application window and still have the system window stay in focus? On Jan 4, 9:23 pm, TreKing treking...@gmail.com wrote: On Wed, Jan 4, 2012 at 12:17 AM, galapogos gois...@gmail.com wrote: I guess I mean any other app that's not part of my activity. Yeah, I would

[android-developers] Re: Detecting app launch/switching to an app

2012-01-04 Thread galapogos
Thanks Kris - would appreciate your insights. On Jan 3, 8:43 pm, Kristopher Micinski krismicin...@gmail.com wrote: On Fri, Dec 30, 2011 at 4:44 AM,galapogosgois...@gmail.com wrote: I'm writing an app similar to app protector - it prompts the user to authenticate himself when a protected app

[android-developers] Update view of installed apps without reloading

2012-01-04 Thread galapogos
I'm trying to list all the installed apps on a device using getInstalledPackages, and this gives returns me a List of all packages, including system apps and non-launchable apps. I have 2 questions: 1. getInstalledPackages seem to take quite a bit of time to detect and display all apps(about

[android-developers] Android activity/task order issue

2012-01-04 Thread galapogos
Hi, I have an app with 2 main activities and a service. The app starts with activity 1, and the service launches activity 2 via an intent upon detection of an app launch A. Activity 2 then does some stuff and calls finish(), returning to app A. However, if I launch app A when I'm in activity 1,

[android-developers] Re: Detecting app launch/switching to an app

2012-01-04 Thread galapogos
, 2012 at 7:15 PM, galapogos gois...@gmail.com wrote: Thanks Kris - would appreciate your insights. On Jan 3, 8:43 pm, Kristopher Micinski krismicin...@gmail.com wrote: On Fri, Dec 30, 2011 at 4:44 AM,galapogosgois...@gmail.com wrote: I'm writing an app similar to app protector - it prompts

[android-developers] Viewing the back stack

2012-01-04 Thread galapogos
Hi, Is there any way of viewing the current back stack(background/ foreground) of a device? -- 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

[android-developers] TYPE_SYSTEM_ALERT for Activities

2012-01-03 Thread galapogos
I'm trying to throw an intent to an activity that's triggered by some event, and I'd like for the activity to halt execution of everything else while it's on top. As such, I'm setting the activity as TYPE_SYSTEM_ALERT in the activity's onCreate() method: super.onCreate(savedInstanceState); Window

[android-developers] How to use setFlags?

2012-01-03 Thread galapogos
Hi, I'm trying to set certain flags for some of my windows, and I'm not sure how to do it. The Window.setFlags()documentation says the following: public void setFlags (int flags, int mask) Since: API Level 1 Set the flags of the window, as per the WindowManager.LayoutParams flags. Note that

[android-developers] Re: TYPE_SYSTEM_ALERT for Activities

2012-01-03 Thread galapogos
I guess I mean any other app that's not part of my activity. Just to be clear, what's the difference between a regular window and one that has the TYPE_SYSTEM_ALERT flag set? On Jan 4, 11:34 am, TreKing treking...@gmail.com wrote: On Tue, Jan 3, 2012 at 9:11 PM, galapogos gois...@gmail.com wrote

[android-developers] Detecting app launch/switching to an app

2012-01-02 Thread galapogos
I'm writing an app similar to app protector - it prompts the user to authenticate himself when a protected app is launched. Since Android doesn't provide a way to use BroadcastReceiver on explicit intents, I'm detecting app launches by monitoring logcat. For most apps, I'm listening for something

[android-developers] Re: Detecting app launch/switching to an app

2012-01-02 Thread galapogos
Does anyone have an idea? Thanks. On Dec 30 2011, 5:44 pm, galapogos gois...@gmail.com wrote: I'm writing an app similar to app protector - it prompts the user to authenticate himself when a protected app is launched. Since Android doesn't provide a way to use BroadcastReceiver on explicit