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

2016-06-30 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( WindowManager.

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

2013-10-21 Thread galapogos
e ADB 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" > > wrote: > >> Hi, >> >> Is the

[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

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

2013-10-15 Thread galapogos
ll use the views if you also 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:

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 > > 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] 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) myview.getParent()).

[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) myview.getParent()).

Re: [android-developers] Security lock replacement

2013-02-24 Thread galapogos
ly. > > Kris > > On Fri, Feb 22, 2013 at 12:59 AM, galapogos > > 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

[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 wonderi

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 > > wrote: > > I'm specifically trying to first get the > > ICS AOSP launcher to install on any ICS phone, and then modify it with &

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 pri

[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] 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 > > wrote: > >> Hi, >> >> I'm trying to build the Android ICS Launcher s

[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, w

[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-13 Thread galapogos
t, because perhaps this is just a quick hack, but > then, that type of question doesn't belong on android-developers, 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

[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 pair

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

2012-08-13 Thread galapogos
android-platform, and android-porting, perhaps? > > 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 > > wrote: > > Whe

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 prob

[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 Once

[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 sock

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

2012-06-06 Thread galapogos
7;m doing 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

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

2012-06-05 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 buttonSend

[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 le

[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 to

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

2012-01-12 Thread galapogos
sure the content of your adapter is not modified from a background thread, but only from the UI thread." On Jan 12, 10:55 am, Kristopher Micinski wrote: > On Wed, Jan 11, 2012 at 9:46 PM,galapogos wrote: > > Hi, > > > I'm not aware of the singleton model. Are there any

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

2012-01-11 Thread galapogos
; On Jan 11, 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); > > wh

[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 SomeOtherActivi

[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 in

[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@g

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

2012-01-06 Thread galapogos
that uses 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 wrote: > On Jan 5, 9:49 pm, TreKing wrote: > > > On Wed, Jan 4, 2012

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

2012-01-05 Thread galapogos
On Jan 5, 9:49 pm, TreKing wrote: > On Wed, Jan 4, 2012 at 8:06 PM, galapogos 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 s

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

2012-01-05 Thread galapogos
Ooops, I apologize. I wasn't sure if I asked, did a search and didn't find anything, so asked (again). On Jan 6, 12:22 pm, TreKing wrote: > For 1 & 2, I'm getting > dejavu:http://groups.google.com/group/android-developers/browse_thread/threa... > > On Thu, Ja

[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 fro

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

2012-01-05 Thread galapogos
g 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 wrote: > Hi, > > I've also noticed that launching activity 2 with > FLAG_ACTIVITY_NEW_TASK does not seem to work. Everytime activi

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

2012-01-05 Thread galapogos
d in the documentation. Does anyone know why this is so? android:launchMode="singleTask" and FLAG_ACTIVITY_NEW_TASK should produce the same behavior. On Jan 5, 12:56 pm, galapogos wrote: > Hi, > > I have an app with 2 main activities and a service. The app starts > with a

[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 g

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

2012-01-04 Thread galapogos
uninstall your 'security' app and then you're back to square > one. > > kris > > > > > > > > On Wed, Jan 4, 2012 at 7:15 PM, galapogos wrote: > > Thanks Kris - would appreciate your insights. > > > On Jan 3, 8:43 pm, Kristopher Micinski

[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, a

[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 8-10

[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 wrote: > On Fri, Dec 30, 2011 at 4:44 AM,galapogos wrote: > > I'm writing an app similar to app protector - it prompts the user to > > authenticate himself when a protected app is lau

[android-developers] Re: TYPE_SYSTEM_ALERT for Activities

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

[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 wrote: > On Tue, Jan 3, 2012 at 9:11 PM, galapogos wrote: > > I'm t

[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 som

[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] 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 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 expl

[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 l