[android-developers] Re: SlidingDrawer to go full screen

2011-02-11 Thread mah
Let your top level layout be a RelativeLayout or FrameLayout -- these each permit multiple views to be in the same position. Let the SlidingDrawer be a direct child of your top level layout. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. T

[android-developers] Re: How to intercept when the application is brought to foregroud from background

2011-02-11 Thread mah
If your intention is to call another activity in order to perform some work -- do you control that activity? Start it "for result" rather than simply starting it. That way you'll get a callback (with its result) when it finishes. I agree with Mark, you should not care about what activities outside

[android-developers] Re: 1-star Market weirdness

2010-09-21 Thread mah
I have an app with only 8 ratings, at 4 stars overall. One of the ratings was a 1 star rating, and it included a comment that states my app would be better if some feature it doesn't claim to support was supported, but it's a good app. Let me rephrase that: it's a good app, but it doesn't support

[android-developers] Re: Application installation

2010-09-03 Thread mah
Have you signed the APK for your app using the platform signing key? Have you assigned your APK user id to the system id? One or both of these may be required (and I don't think you can do the second without also doing the first). On Aug 30, 1:01 pm, Surfer wrote: > But you noticed that every oth

[android-developers] Re: Can we access windows partition through android?

2010-08-10 Thread mah
Only if your Windows host provides a service (presumably socket-based) and code on the Android device knows how to talk it into doing its bidding. You would have to write both halves of that solution. On Aug 9, 5:47 am, AD wrote: > Hi, > > I want to run some batch scripts to on windows box but my

[android-developers] Re: How to identify which client called into a Remote/AIDL service?

2010-07-30 Thread mah
I don't know if there's a more proper way to do what you need, but it makes sense that there should be. In the worst case though, you can solve this through your own protocol... you can require clients call an initialization to receive some random value you provide (and store, to associate with th

[android-developers] Re: R cannot be resolved

2010-07-24 Thread mah
When pulling in existing projects, I find that often I need to right- click the project in the work bench, go to the "Android Tools" entry, and select "Fix Project Properties". On Jul 20, 6:31 pm, Marc wrote: > Hi. > > I'm an Android development newb, and I got a problem with Eclipse. I > tried a

[android-developers] Re: Hide an app from the user

2010-07-16 Thread mah
No prostrating necessary... all you need to do is build your own custom Android port. You can't do this on an off-the-shelf system unless perhaps there's a way to do it by signing your app with the firmware signing key, and you have the firmware signing key for the particular off-the-shelf system.

[android-developers] Re: Decent Android reference book?

2010-07-16 Thread mah
Anyone that tells you they learned C++ in 24 hours has still not learned C++. This is philosophical, kind of like the statement "Seek those who seek the truth, avoid those who claim to have found it." The official Android documentation is indeed very difficult to grasp, but I there's so much infor

[android-developers] Re: App Inventor to Market

2010-07-15 Thread mah
I don't see any reason why Google would prohibit (or even want to prohibit) AppInventor-based apps. More applications is a good thing for the proliferation of Android -- at least, if they can provide a way to filter out the crapps better. (I'd really like it if the market app let me filter out all

[android-developers] Re: cooliris PopupMenu

2010-07-14 Thread mah
Perhaps http://code.google.com/p/simple-quickactions/ would be a good place for you to visit. On Jul 13, 6:47 pm, brian wrote: > Can anyone tell me if there is a way to make a dialog show up on > android over a given position and look like the cartoon talk bubble > used in Gallery3D popupMenu wit

[android-developers] Re: Force an Application to be alive

2010-07-13 Thread mah
Or you could make use of the AlarmManager. On Jul 13, 8:59 am, Nadav wrote: > However you might be able to set up a broadcast receiver for different > system events that would at least restart your service in case its > down. For example listening to the boot, phone being plugged into > power, et

[android-developers] Re: Importing existing projects to Android

2010-07-12 Thread mah
A common "fix-all" I've had to apply when importing existing projects is to right-click the project in the Eclipse package explorer and choose Android Tools->Fix Project Properties. Then (assuming your JARs appear in the build path configuration, if necessary) Project->Clean to clean the new projec

[android-developers] Re: socket communication between emulator as server and pc as client

2010-06-18 Thread mah
After the emulator is started, and before you start your PC application, use this command: adb forward tcp:12345 tcp:12345 Which will forward TCP packets from the PC's IP space into the emulator on port 12345. Then, on the PC, open a connection to localhost (127.0.0.1) on port 12345, and you'll

[android-developers] Re: How to listen on socket port 80?

2010-06-10 Thread mah
Socket ports below 1024 require the ROOT user id in order to establish a server. If you're building an application intended to go on random devices, you're not going to have any success opening a server on port 80. This is not an Android constraint, it's the way sockets have been in *nix for a very

[android-developers] Re: Creating a hidden partition

2010-06-07 Thread mah
You might be able to use the android:sharedUserId attribute in your manifest, and set the value identically in all applications that need access to this data. Doing that, if you have one package designated as the primary one (say, com.example.master), and multiple other packages (sa, com.example.sl

[android-developers] Re: How to create a file outside the application?

2010-06-01 Thread mah
Perhaps the new Backup Agent (in 2.2: http://developer.android.com/reference/android/app/backup/BackupAgent.html ) can help with this, as that seems to allow an app to store backed up data between installs. That being said, I doubt this can be a guaranteed way to solve your problem, since the data

[android-developers] Re: Google Map Key issue please help

2010-06-01 Thread mah
The Android shell tells you "permission denied" even when the command you're trying to execute simply doesn't exist on the device. On May 26, 3:14 pm, Ali Murtaza wrote: > Hi > > I use this code to get the finger print in android emulator i got > message "keystore: permission denied" > > So pleas

[android-developers] Re: Can't we add shared libraries without use of android ndk tools

2010-06-01 Thread mah
; arm-none-linux-gnueabi-gcc -shared -Wl,-soname,libmylib.so -o > libmylib.so sample.o > > even though iam getting the same problem > > On May 29, 2:34 am, mah wrote: > > > That would likely mean you've compiled your library using an x86 > > compiler. That will no

[android-developers] Re: Can't we add shared libraries without use of android ndk tools

2010-05-28 Thread mah
That would likely mean you've compiled your library using an x86 compiler. That will not run on an ARM processor. You do not have to use the Android makefile or build system to build your library, but you do need to use the compiler that comes with the NDK. On May 27, 3:05 am, karteek wrote: > >

[android-developers] Re: interprocess communication

2010-05-25 Thread mah
Your service could possibly maintain a database with the detail. If you take that approach, you might also listen for ON_BOOT and, when received, make sure your database gets reset. On May 19, 7:11 pm, irbaboon wrote: > Hi, > > I'm developing an application which consists of two different > activ

[android-developers] Re: How does Android implement copy-as-install and remove-as-uninstall?

2010-05-24 Thread mah
I'm not certain that what you say is completely true. I've noticed that manually putting an APK in /data/app makes it available, however there are other things that happen during a correct installation which this method bypasses. Specifically, I've noticed that if the APK includes any native shared

[android-developers] Re: Porting MAME on Android?

2010-05-07 Thread mah
A search of "mame" on the Android Market shows two items that appear to be ports. Since both are non-free, I don't guess you'll get many answers from them, but it seems possible to do at least. I can't speak to how much effort might be required though. On May 5, 2:44 am, javame_android wrote: > H

[android-developers] Re: Developing a C++ static library for use with Java on the Android

2010-05-01 Thread mah
You cannot link a static native library into a Java application; your only option is a shared object (.so). Fortunately though, shared objects can have static libraries linked into them; you'll just need to provide exports to give access to the items you want Java to access. On Apr 30, 3:10 am, Fr

[android-developers] Re: Password and SQLite security

2010-04-23 Thread mah
I don't believe the sqlite in Android supports database encryption; unless that's wrong, your main option is to encrypt the data you put in your database. That's less than idea though, since it makes it difficult (or impossible) to perform queries that have typical clauses. Another option, probably

[android-developers] Re: How to use Fiddler to get traffic of the Market in Android Emulator

2010-04-23 Thread mah
Use a general purpose data sniffer, like Wireshark. I haven't looked into what ports the Market uses, but if I allow my phone to connect to my corporate wifi, whose firewall blocks outbound connections to most non-well-known ports, I cannot use the Market. On Apr 22, 7:29 am, Xin Song wrote: >

[android-developers] Re: Can anyone give me a Socket Client and Server source code?

2010-04-08 Thread mah
As Bob says, standard Java socket code will work correctly -- any tutorial you feel comfortable with will be fine, nothing Android- specific is necessary (except the android.permission.INTERNET entry in your manifest). If using the network over 3G rather than WiFi, you might need to address things

[android-developers] Blocking intents from launching

2010-04-06 Thread mah
On the market, there's an application called App Protector, which seems to effectively block the launching of configured activities until a password is correctly provided. By default, it blocks access to itself (not very interesting), Settings, and a few others. I wrote my own app to launch setting

[android-developers] Re: Nexus One ADB XP 64

2010-03-30 Thread mah
I had issues getting things to work on Win 7 64, but there are a few points of failure you could be hitting. Are you able to install the SDK at all -- meaning you can open its setup and get your GUI to download and install the driver? (If not, you probably need to get a 64 bit version of swt.jar a

[android-developers] Re: delete the sqlite database?

2010-03-23 Thread mah
Unless you're on a rooted device (and you've su'd to the root user) I do not believe this will work -- Android maintains proper user/group permissions to prohibit things like one application mingling with an unrelated application's data, and the "adb shell" doesn't get privileges that can circumven

[android-developers] Re: Want to execute arm compiled executable file on Android adb shell

2010-03-18 Thread mah
I believe you're right. On a Nexus One, if I "adb shell" in and issue the "mount" command, it shows that /sdcard does indeed include the noexec flag. It also includes nosuid (is that necessary considering there's noexec?) and nodev. On Mar 18, 10:41 am, Tim wrote: > On Mar 17, 11:20 am, Parse wr

[android-developers] Re: Custom Dialog

2010-03-17 Thread mah
I've been bit by this incorrect documentation as well. I've just starred your issue, but I see that currently the vote count on it is very small. I hope that more people will vote to have this (and any other incorrect documentation) issue addressed; without solid documentation, the system value di

[android-developers] Re: Rebuilding Launcher.apk

2010-03-12 Thread mah
The apk file is just a zip file; you don't need eclipse to open / modify it. However, you will probably need to sign it after making changes (and if you don't have the original signing key, I'm not certain if you can then load it onto the phone unless you've also changes the package name). On Mar

[android-developers] Re: Can static library is created by android 2.0 work at android 2.1?

2010-03-10 Thread mah
The SDK provides you with what you need for building a 2.1 emulator... probably easier (and more reliable) to simply try it out. On Mar 8, 9:35 pm, bluestar wrote: > I create one static library(alogrithm.a) by using android 2.0 > > Now I want to use this library to work at android 2.1 > > Can I

[android-developers] Re: cannot see attached Droid on Windows 7 or Windows XP

2010-03-07 Thread mah
I just went through a similar experience. In my case, I was using a computer that had reliably attached to several different Nexus One's previously, but two different Droids failed to be seen by ADB -- even though the devices enumerated properly (showed up in the device manager as Android devices)

[android-developers] Re: Android NDK installation on windows?

2010-03-06 Thread mah
It looks as if you're issuing the "build/host-setup.sh" command from a DOS window, instead of a Cygwin BASH window. If so, this is definitely a no-no... use the BASH shell to run the script, and before running it, "cd /cygdrive/c/android-ndk-1.6_r1". On Mar 5, 12:58 pm, Abhi wrote: > Hi Michael,

[android-developers] Re: how to run adb shell on windows as super user

2010-03-01 Thread mah
Root your phone, perhaps? I'm only guessing; I haven't rooted a device yet. If com.lam.recipedisplay is your own app, you could probably add code to copy the database to/from an alternate location such as /sdcard. If it's not your app, well... this is why you're not given a root shell by default

[android-developers] Re: Nexus One: A-GPS and setup w/o carrier

2010-02-23 Thread mah
but I definitely noticed that. On Feb 23, 2:45 pm, greg wrote: > Thanks.  One last question, since you've used the Nexus One outside, > how would you describe the visibility of its screen in shade and in > direct sunlight? > > Thanks again, > Greg > > On Feb 23, 11:42 am, ma

[android-developers] Re: Nexus One: A-GPS and setup w/o carrier

2010-02-23 Thread mah
I have a Nexus One that has never had a SIM installed... I enabled its GPS and took it outside. It took a while to get a location (as is expected without A-GPS), but it was able to get a fix. When I walked within range of a WiFi I attach to, Google Maps then displayed my accurate location on a map.