[android-developers] Re: SlidingDrawer to go full screen
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. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to intercept when the application is brought to foregroud from background
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 of your control do. You should code as if they don't exist, and if there's some reason to consider the user "logged out", it should not be based on what activity is current. Is there some use case you can think of that justifies taking special action just because the user, for example, opened their messaging app to reply to the message they just received? -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: 1-star Market weirdness
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 X so I'm giving it 1 star. My personal feeling is not that feature X will turn his 1 star rating into 5 stars, but that he didn't intend to rate me in what is effectively a negative manner. Oh well, at least the other raters have the same understanding that I have, with regards to what 1star vs. 5 means. -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Application installation
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 other package is listed in that file too, > right? > > Every other package is listed there - yes, every package is marked > with system=true - no > > No. In general, if you are "regular" developer (as most here is) > you won't be able to make any system app on non rooted devices > just because you wish so > > The app will not be a third party application for the user to install, > it will be included > in the device OS, and i wish to simulate this, so far i managed > simulating system app > but not package install... > > On Aug 30, 4:44 pm, "{ Devdroid }" wrote: > > > On 30 August 2010 09:58, Surfer wrote: > > > > As i mentioned above my app is a system app, it is registered under / > > > data/system/packages.xml with system="true". > > > But you noticed that every other package is listed in that file too, right? > > > > Doesn't this mean it's part of the system and it has corresponding > > > rights. > > > No. In general, if you are "regular" developer (as most here is) > > you won't be able to make any system app on non rooted devices > > just because you wish so -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can we access windows partition through android?
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 project is > android project hence it acess its shell if I use exec but is there > anyway I can able to access the windows partition? > > Best Regards, > > Amit Dixit -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to identify which client called into a Remote/AIDL service?
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 them), and all of your other entry points can require that this value be among the parameters. On Jul 26, 2:13 pm, Jin Chiu wrote: > In the implementation of my remote service's published API, is there a > way to identify which client called a given method? For example, is > there a way to obtain a unique ID or address of the caller? I already > cache an AIDL callback reference to the client, but not sure how I can > use this for identification. -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: R cannot be resolved
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 few tutorials, but I can't run the tutorial-apps because it > pops up with this error: "R cannot be resolved" . > I've searched a lot of different fora, where people describes the same > problem, but I just can't fix it. > A lot of people recommend unchecking "Build automatically", Cleaning > and rechecking "Build automatically", people also suggest that it's a > line that says "import R." that causes the problem, but it feels like > I've tried everything and I still can't make it work... > > I use this SDK :http://developer.android.com/sdk/index.html > along with 3 different versions of Eclipse, but it's the same error- > message i get in every version. > > NB.: I don't have a .classpath file, nor do I have a .project file. > Could that cause the problem ? > > Help is greatly appreciated. > > 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, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Hide an app from the user
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. On Jul 16, 1:37 pm, DanH wrote: > Yeah, you're not a virus developer or bad person. So all that Android > needs is an interface that will ask "Is this developer a bad person?" > and allow what you want if the answer is "no". Should be easy to > implement! > > (I haven't delved much into the Android permissions model, but I > suspect what you want is possible with the right permissions. But you > can only get those permissions by prostrating yourself in front of the > Android Gods and begging for their blessing.) > > On Jul 16, 9:42 am, Cleverson wrote: > > > Hi, > > > I'm trying to develop an application that should not be visible to > > the user. I mean an app that can't be visible at the Manage Apps > > screen (Settings – Applications – Manage applications) and also whose > > services couldn't either be visible at the Running Services screen > > (Settings – Applications – Running services) > > > I know I'm trying to fight against Android’s nature of being open and > > give control to the user. But I want, somehow, to cheat the system and > > pretend the app does not run and even does not exist. Is that > > possible? > > > PS: don't worry, I'm not either a virus developer or a bad person :) > > > Thanks in advance! -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Decent Android reference book?
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 information to be had that it will not be an easy task to correct. If the Android documentation looked more like Qt's documentation / online reference, I think it would be much easier to learn. On Jul 16, 8:17 am, DanH wrote: > (And from browsing the messages here I'm guessing that many of the > developers learned C++, if not Android, in 24 hours or less.) -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: App Inventor to Market
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 apps from a particular developer, for example.) On Jul 14, 9:45 pm, Stephen Lebed wrote: > I wouldn't think that a person should/could upload App Inventor apps > to the market. I thought it would just be used to upload to your own > phone. Hopefully Google will add a filter for AppInventor apps. > > Stephen > > On Jul 14, 12:13 pm, TreKing wrote: > > > On Tue, Jul 13, 2010 at 3:26 PM, Nicolas wrote: > > > > I have created an app with the app inventor and now I would like to upload > > > the application to the android market. > > > It ... has ... begun. > > > > When I try this, I get the error "Upload a valid APK." > > > I don't know if anyone around here has any experience with this tool (yet) > > so it might be hard to say. Have you properly signed the APK? > > > > Anybody any idea how I can get around this? > > > Upload a valid APK =P > > > --- > > -- > > TreKing - Chicago transit tracking app for Android-powered > > deviceshttp://sites.google.com/site/rezmobileapps/treking -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: cooliris PopupMenu
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 without having to try to use and > understand many parts of that package. If I have a nine patch can I > use that to change the look of the dialog surrounding frame so that it > looks more like a cartoon talk bubble? > > Thank you. -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Force an Application to be alive
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, etc.. > > Nadav > > On Jul 13, 7:44 am, Mark Murphy wrote: > > > On Tue, Jul 13, 2010 at 3:49 AM, perumal316 wrote: > > > I am writing an application to do fileobservation which can be done. > > > Is there any way I can make the application to run in the background > > > without killing it? > > > No, sorry. Anything can be killed by the user or the operating system. > > > -- > > Mark Murphy (a Commons > > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > > Android 2.2 Programming Books:http://commonsware.com/books -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Importing existing projects to Android
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 project, forcing a rebuild. On Jul 12, 12:56 pm, kypriakos wrote: > It seems that the ADT does not generate the .apk and .dex files which > is > a consequence of the jars files I include in the src code. Although > the > code compiles fine in Android SDK, when I try to run the emulator I > keep > getting the message that errors exist in the project, and although > those > errors are not visible they seem to pt towards the fact that the > above > files apk etc. files are not generated in the bin directory. > > Has anyone tried to import existing apps in Android and had success > getting the imported jars to work? > > Thanks > > On Jul 10, 11:59 pm, kypriakos wrote: > > > So I generated a new project, and of course the R.java is in place as > > expected, imported the > > src dirs from the other project into the src dir of this one, checked > > all of them and no errors > > are displayed, but still when I run the app (without the Activity > > class calling any of these > > imported classes) it keeps complaining about the project having > > errors. Neither the IDE or > > the Android SDK display any errors so this is a bit strange. The > > manifest file looks good, > > and so do the other system files (default.properties etc.). > > It seems to me that may be the libraries I am importing through the > > source classes > > I imported are not accepted by the SDK - for example the axis libs, > > which seem to > > help the classes that import them not to display any compile errors, > > may not be digested > > nicely by the Android SDK - would that be the problem? > > > On Jul 8, 5:03 pm, Robert Craig wrote:> Just try > > save the project again. It seems to be the case that those files > > > get generated when it builds. A save in eclipse builds the package.On > > > Thu, Jul 8, 2010 at 3:42 PM, kypriakos wrote: > > > > > It seems that the gen dir is empty and that no generated java classes > > > > are not being generated (no R.java etc.). I am assuming the Clean > > > > Project > > > > removed them (??). How can they be regenerated? > > > > > Thanks again > > > > > On Jul 8, 3:37 pm, kypriakos wrote: > > > > > Never mind - I needed to manually clean up the build path file as well > > > > > to > > > > > match the fact that the lib didn't have those files anymore. So now I > > > > > can > > > > > compile the project with no errors either visible (with x next to the > > > > > dir or > > > > > any file in the project tree) or in the Error Log that Eclipse > > > > > provides. > > > > > However, still the plug in will complain when I try to run it with the > > > > > same > > > > > error msg 'The project contains errors ' ... makes no sense. > > > > > > On Jul 8, 3:18 pm, kypriakos wrote: > > > > > > > David - thanks very much for the detailed and very informative > > > > > > response. I appreciate it. > > > > > > I looked into the Error Log of the IDE and I did see that certain > > > > > > libraries (external libraries > > > > > > that I needed to reference through my code, such as BouncyCastle > > > > > > etc.) > > > > > > had also a txt > > > > > > file with them that the Android plug in didn't like. By removing > > > > > > them > > > > > > I was able to remove > > > > > > those errors. However, what's interesting now is that after I also > > > > > > did > > > > > > a Clean on the pioject, > > > > > > all of the bin classes I had in the bin directory are not being > > > > > > regenerated. I checked the IDE's > > > > > > configuration and it does has the project to build automatically. I > > > > > > can see the workspace > > > > > > build progress flash at the bottom bar but no classes (even after > > > > > > refreshing the view) generated > > > > > > in the bin. This makes no sense unless those txt files are necessary > > > > > > for using their corresponding > > > > > > libs: > > > > > > (1) if that is the case, where could I include those txt licenses in > > > > > > the case of Android > > > > > > (2) if not then what would cause the classes that about 10 mins were > > > > > > generating output binaries > > > > > > to do it now as we. > > > > > > > Thanks aga > > > > > > > On Jul 7, 7:03 am, "Bagatelle: David Lee Evans" > > > > > > > > > > > > wrote: > > > > > > > > On Jul 7, 1:07 am, Demetris wrote: > > > > > > > > > Hi all, > > > > > > > > > I generated a standard Android under Eclipse (using the plugin) > > > > > > > > and > > > > I > > > > > > > > imported code from an existing project (J2SE-based). I was able > > > > > > > > to > > > > > > > > iron out all the complaints from the Android SDK 2.1 (compile > > > > errors). > > > > > > > > However, the runtime (emulator startup) the IDE displays a > > > > >
[android-developers] Re: socket communication between emulator as server and pc as client
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 get through. On Jun 15, 9:41 am, saikiran n wrote: > hi > i have gone through folllowing link for socket > communicationhttp://www.codeweblog.com/android-simulator-and-pc-communication-usin... > It is working fine. > But my requirement is i want to start server in emulator and client in my pc > What is the ip address to give in my client program. > I used 10.0.2.15 in my client program but it is unable to connect. > And i also tried with my pc ip even though it is not working > Any help please -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to listen on socket port 80?
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 long time (if not always). It's a security issue to prevent malicious applications from spoofing a service on a machine that doesn't already provide the service. On Jun 4, 1:32 am, Alex Xin wrote: > Hi, guys > > I'm new to Android development, now I'm working on a simple HTTP server > project. I try to use ServerSocket to listen on port 80 but I failed. There > will have an exception if I did this. I have already set INTERNET premission > in manifest. > > I found that everything is Okay if I use port 8080, that's strange for me, > why I cannot use port 80? I don't want my users to use another port to > connect my server. > > Thanks very much > > Alex -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Creating a hidden partition
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.slave1, com.example.slave2), you should be able to have all routines access the "files" area within com.example.master since their user ID's will be the same. This won't make the data invisible on a rooted device, but as long as the device is not rooted, the file access will be limited to your set of applications. Caveats: * Each application must be signed with the same key. * If the application is already installed without a sharedUserId (or with a different sharedUserId), you will not be able to properly update the application. The problem is that /data/data/package.name already exists, with the previous user ID. To update, you need to uninstall the old APK and you may also need to then manually delete the directory -- not an option for an application that's already distributed to user devices. On Jun 3, 11:38 pm, surendra wrote: > hi, > > I am new to android platform. > Please give me some pointers on how to "make partitions invisible and > provide access to few applications only on this invisible partition" > > Regards, Surendra -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to create a file outside the application?
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 it backs up is probably able to be deleted as well. In my opinion, you should simply require the user obtain trial key from a server that records some device specific info and only gives out the trial based on your criteria. Storing anything on the phone anywhere at all is subject to user deletion. If you plan it well, your trial key will be a token with an expiration, and your app will know how to decode the token and verify that it has not expired. This method would require a network connection only once, and could even allow for the user to obtain the key using a computer if the device hasn't got any internet connection. (That would not be convenient for the user, of course!) -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Google Map Key issue please help
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 please help me. It realy urgent > > $ keytool -list -alias androiddebugkey \ > -keystore .keystore \ > -storepass android -keypass android > > -- > Ali Murtaza > > BCSF06M021 > Research Assistant > Data Virtulization Ware House > PUCIT, Lahore, Pakistan > ali.murt...@pucit.edu.pk -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can't we add shared libraries without use of android ndk tools
>From what I've seen, the "library not found" error doesn't only occur if the library cannot be found, however your first step now should probably be to see if it should be found... open an "adb shell" to your platform, and change directory to /data/data/ your.package.name.here. Does the lib directory exist? If so, is your .so inside it? If the answer to either of these is no, you're not including the library in the package correctly. If the file does exist, the failure to load is based on the exported contents of the library. In this case, you'll want to work with one of the sample libraries that come with the NDK and compare it to your own to figure out what's missing. On Jun 1, 4:28 am, karteek wrote: > You are wright. > Now i compiled with following commands > arm-none-linux-gnueabi-gcc -fPIC -c sample.c -o sample.o > 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 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: > > > > > How did you compile the library if you didn't use the NDK?. > > > > I compiled using the following commands > > > cc -c -fPIC mycfile.c -o mycfile.o > > > cc -o libmylib.so -shared -Wl,-soname,libmy.so mycfile.o > > > > On May 27, 11:03 am, David Turner wrote: > > > > > How did you compile the library if you didn't use the NDK?. There are > > > > great > > > > chances that what you generated is not a valid ARM ELF binary that can > > > > be > > > > loaded on Android. > > > > > On Tue, May 25, 2010 at 6:31 AM, Karteek N wrote: > > > > > Hi all, > > > > > I have gone through android ndk tutorials. > > > > > But i am little confusing in Android.mk file as well as > > > > > Application.mk file > > > > > so instead of that i used the following approach > > > > > I created a Test.java file which is having one native method. > > > > > i added the static{ > > > > > > System.loadLibrary("mylib"); > > > > > } > > > > > By using javah -jni i generated Test.h and using that decleration i > > > > > implemented a c file > > > > > And i compiled c file and generated the libmylib.so library. > > > > > But now my question is how to add this shared library to my android > > > > > application > > > > > I followed 2 approaches but all throwing exception that Library mylib > > > > > not > > > > > founed. > > > > > 1 In eclipse BuildPath->ConfigurebuildPath->Android2.1->native given > > > > > the > > > > > path of my shared library > > > > > 2 I copied shared library to /data/data/myprojectpackagenae/lib/ > > > > > and used the statement in my code as > > > > > System.load("/data/data/mypackagename/lib/libmylib.so"); > > > > > > In above two cases it is throwing same exception > > > > > > Where iam wrong? > > > > > Is it procedure is wright? > > > > > Please help me > > > > > > -- > > > > > 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...@googlegroups.com > > > > > For more options, visit this group at > > > > >http://groups.google.com/group/android-developers?hl=en -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can't we add shared libraries without use of android ndk tools
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: > > How did you compile the library if you didn't use the NDK?. > > I compiled using the following commands > cc -c -fPIC mycfile.c -o mycfile.o > cc -o libmylib.so -shared -Wl,-soname,libmy.so mycfile.o > > On May 27, 11:03 am, David Turner wrote: > > > How did you compile the library if you didn't use the NDK?. There are great > > chances that what you generated is not a valid ARM ELF binary that can be > > loaded on Android. > > > On Tue, May 25, 2010 at 6:31 AM, Karteek N wrote: > > > Hi all, > > > I have gone through android ndk tutorials. > > > But i am little confusing in Android.mk file as well as Application.mk > > > file > > > so instead of that i used the following approach > > > I created a Test.java file which is having one native method. > > > i added the static{ > > > > System.loadLibrary("mylib"); > > > } > > > By using javah -jni i generated Test.h and using that decleration i > > > implemented a c file > > > And i compiled c file and generated the libmylib.so library. > > > But now my question is how to add this shared library to my android > > > application > > > I followed 2 approaches but all throwing exception that Library mylib not > > > founed. > > > 1 In eclipse BuildPath->ConfigurebuildPath->Android2.1->native given the > > > path of my shared library > > > 2 I copied shared library to /data/data/myprojectpackagenae/lib/ > > > and used the statement in my code as > > > System.load("/data/data/mypackagename/lib/libmylib.so"); > > > > In above two cases it is throwing same exception > > > > Where iam wrong? > > > Is it procedure is wright? > > > Please help me > > > > -- > > > 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...@googlegroups.com > > > For more options, visit this group at > > >http://groups.google.com/group/android-developers?hl=en -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: interprocess communication
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 > activities which edit files. The two activities run in separate > processes. Multiple instances of both activities can be launched > concurrently in different tasks. Each activity instance is passed a > file path to work on in its intent. I'd like to make it so that a > given file cannot be edited in more than one activity instance at the > same time. > > As far as my understanding goes, I have to use a Service. Each > activity instance must ask the service whether it is allowed to > acquire the "editing rights" for the file passed in its intent. The > service will keep a set of open files. Set entries will be removed > when activity instances are closed. > > The problem is that the service process can be killed at almost any > time. There is not any method like Activity.saveInstanceState(...) in > Service. How is the set of open files supposed to persist an eventual > killing and later re-launching of the service process? > > -- > 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...@googlegroups.com > For more options, visit this group > athttp://groups.google.com/group/android-developers?hl=en -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How does Android implement copy-as-install and remove-as-uninstall?
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 libraries, they won't get extracted using this method (rendering an application that depends on this useless). There may or may not be more install tasks which won't be performed via copy. On May 17, 4:40 am, Ruini Xue wrote: > Hi, all, > > If an apk were copied to /data/app, android would install it > automatically; and if an apk were deleted from /data/app, android > would uninstall it automatically. > > How does android implement this? with inotify? where is the related > codes? > > Best > > -- ruini > > -- > 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...@googlegroups.com > For more options, visit this group > athttp://groups.google.com/group/android-developers?hl=en -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Porting MAME on Android?
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: > Hi, > > I will like to know how can one port MAME on Android? > > MAME is a Multi Arcade Machine Emulator and it does support ROM based > games. There is already one application called Android Arcade similar > to this one. > > Can someone tell me how to go about porting it to Android? > > Thanks & Regards > Sunil > > -- > 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...@googlegroups.com > For more options, visit this group > athttp://groups.google.com/group/android-developers?hl=en -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Developing a C++ static library for use with Java on the Android
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, FrankG wrote: > Hello Ravi, > > Thanks for the example .. but it is an example for a dynamic linked > lib ( *.so ) not > for using any existing code as a static lib ( *.a ). > > Nevertheless thanks for your efforts and to everybody who provides > examples,details and comments. > > Frank > > On 29 Apr., 19:32, ravindra singhai > wrote: > > > > > Hi Josh, > > > I've attached a sample application > > athttp://www.naresh.se/phpBB/viewtopic.php?f=10&t=19&p=33#p33 > > > Attached is a very basic sample application ( SimpleJNI.zip) which will > > guide you to use C/C++ static library ( .so ) file from android java file. > > > Steps are also mentioned to create C/C++ static library using NDK. > > > Note: Attached SimpleJNI.zip is a bit modified from the one which is > > available with android open-soruce code. > > > Try this and feel free to ask if it doesn't work :) > > > Cheers !! > > Ravi > > > On Thu, Apr 29, 2010 at 12:21 PM, FrankG wrote: > > > Hello Kelly, > > > > I would not say this can be so easy at the end. > > > > Josh says he want to use a static library, but with JNI > > > he need to use a dynamic one or at least a dynamic lib which "wraps" > > > the static one. And even with this wrapper he can run into linker > > > problems > > > not finding all symbols. It can be a nightmare at the end, > > > but it depends from the complexity of his C++ stuff. > > > > Good luck ! > > > Frank > > > > On 28 Apr., 19:41, Kelly wrote: > > > > Download the android NDK and see how they use libraries. Just reverse > > > > engineer their very simple JNI projects and you can build yours no > > > > problem. > > > > -- > > > 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...@googlegroups.com > > > For more options, visit this group at > > >http://groups.google.com/group/android-developers?hl=en > > > -- > > 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...@googlegroups.com > > For more options, visit this group > > athttp://groups.google.com/group/android-developers?hl=en-Zitierten Text > > ausblenden - > > > - Zitierten Text anzeigen - > > -- > 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...@googlegroups.com > For more options, visit this group > athttp://groups.google.com/group/android-developers?hl=en -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Password and SQLite security
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 not very attractive, is to get one of the several sqlite encryption source packages and roll your own sqlite engine using the NDK -- this would remove Android's API from you unless you recreated it on top of your native interface. As to password recovery, something you can consider: at the time you establish the password, also establish a single use recovery password (pseudo-randomly generated). On your website, if the user answers your challenge correctly (answering their personal question, etc.), provide them the single use recovery password. In your application, if the password provided does not match correctly, see if it matches the recovery password and, if it does, simply remove the password protection (and perhaps go into the activity that allows the user to establish a new password -- this is where your single use recovery password would get generated, and provide details on it to your server). On Apr 23, 8:10 am, Kumar Bibek wrote: > Well, If the phone is rooted, then anyone can peek into your DB. If > you store it in simple text, you are at the hacker's mercy. > > The password's should be stored in the DB/file after encryption. That > will give you some degree of safety. > > As per sending a mail with the password, that's a tricky one. If > possible, you can have an option of password re-generation and show it > on the device itself if you are not comfortable with sending out a > mail. It's would be very difficult for a hacker to decrypt your > security question and answer as well. But it's still doable. > > Maybe, you can use different encryption techniques for password, > security question and answer. > > Thanks and Regards, > Kumar Bibek > > On Apr 23, 1:59 am, Bryan wrote: > > > > > I have been searching on google for information regarding application > > passwords and SQLite security for some time, and nothing that I have > > found has really answered my questions. > > > Here is what I am trying to figure out: > > > 1) My application is going to have an optional password activity that > > will be called when the application is first opened. My questions for > > this are a) If I store the password via android preference or SQLite > > database, how can I ensure security and privacy for the password, and > > b) how should password recovery be handled? > > > Regarding b) from above, I have thought about requiring an email > > address when the password feature is enabled, and also a password hint > > question for use when requesting password recovery. Upon successfully > > answering the hint question, the password is then emailed to the email > > address that was submitted. I am not completely confident in the > > security and privacy of the email method, especially if the email is > > sent when the user is connected to an open, public wireless network. > > > 2) My application will be using an SQLite database, which will be > > stored on the SD card if the user has one. Regardless of whether it > > is stored on the phone or the SD card, what options do I have for data > > encryption, and how does that affect the application performance? > > > Thanks in advance for time taken to answer these questions. I think > > that there may be other developers struggling with the same concerns. > > > -- > > 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...@googlegroups.com > > For more options, visit this group > > athttp://groups.google.com/group/android-developers?hl=en > > -- > 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...@googlegroups.com > For more options, visit this group > athttp://groups.google.com/group/android-developers?hl=en -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to use Fiddler to get traffic of the Market in Android Emulator
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: > hi guys, this question seems to be encountered by many people. > I have set up the proxy(10.0.2.2) and port() of Emulator and it > can connect to the net. But the Fiddler can just get traffic of the > Browser in Emulator, it can not get anything of the Market. i.e. if I > open an page by the Browser, there will be some traffics in Fiddler > and if I go into the Market to find some applications, then Fiddler > will show nothing. How can I make it work? > Anyone any ideas? > Thanks in advance. > > -- > 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...@googlegroups.com > For more options, visit this group > athttp://groups.google.com/group/android-developers?hl=en -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can anyone give me a Socket Client and Server source code?
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 differently, depending on the external world's visibility to your socket server. On Apr 7, 2:47 pm, Bob Kerns wrote: > I would guess that you failed to supply two arguments to Log.d(, > ), or that you aren't looking for the message using logcat, > but expecting it to show up somewhere else. > > Otherwise, your question is too unclear to answer. You CAN use sockets > to communicate with your computer. That, or any failure to do so, has > nothing to do with what your app displays, and I have no idea why you > mentioned it. > > You could try making your socket code work in plain Java on your > computer, and then trying it on the phone. If you're using the > emulator rather than a phone, be sure to read the documentation for > the emulator. > > On Apr 7, 9:11 am, xlshe wrote: > > > I want to make my phone communicate with computer with socket. I have > > try many kinds of source in internet. None of them works. The phone > > always display "HelloWorld ". Log.d() seems not work on > > my phone, because, I have used that, but nothing was printed. Can > > anyone help me? Thank you very very much. I am really very very > > anxious to expect that work. -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using "remove me" as the subject.
[android-developers] Blocking intents from launching
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 settings (rather than doing so through the home screen) and App Protector continued to do the job it claims to do. When an activity that is protected is started, App Protector's password input activity is shown instead. Once the correct password is provided, the activity that was started comes to the front. First -- does anyone know how this app is able to get between the rest of the system and the activities it protects? I would like to do something along these lines in my own application as well. Perhaps this app is receiving a broadcast about other activities coming to the foreground, and when the foreground activity is protected, it forces itself to the foreground? Second -- does anyone know how well this technique will stand up to attack? Are there other ways to circumvent, where startActivity(...) fails to? It seems that one could use adb to uninstall it, thus removing its protection easily, but if I pursue my plans here, the app will be a part of a device's firmware (which, I assume, offers some protection against its apps being installed?) -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using "remove me" as the subject.
[android-developers] Re: Nexus One ADB XP 64
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 and possibly add an environment variable to point to it.) If you've got the driver installed, when you attach your phone, does the phone show up as an enumerated "Android device" in the Windows device manager? (If not, is debugging enabled on the phone?) If the phone shows up, what does "adb devices" show you? On my system, when using a Nexus One, I had no problem with steps 2 and 3. However, when attaching a Moto Droid, the phone enumerated in step 2, but adb devices failed to see it. To fix this, I used the Windows device manager to completely uninstall the driver on this device (not just disabled), then reinstalled it, and for no explainable reason (since I know I was already up to date with the driver) it worked. On Mar 25, 2:54 am, DonFrench wrote: > No, but if you do, let me know how you did it. > > On Mar 24, 5:06 pm, Joshua Frank wrote: > > > Anyone got the Nexus One working with adb on XP 64? I've tried the r3 > > driver from the SDK and I've even tried the drives from the > > xda-developers forum and had no luck. > > > -- > > Joshua Frank -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
[android-developers] Re: delete the sqlite database?
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 circumvent that (without a rooted device). On Mar 23, 11:32 am, "christian.posta" wrote: > At least one way is to login to the device using the Android Debug > Bridge (http://developer.android.com/guide/developing/tools/adb.html) > and locate the db on disk. I know it works on the emulator, and I'm > pretty sure it works on a physical device as well. > > When the device is connected up, use 'adb devices' to show what > devices that the adb can connect to. Then do a 'adb -s > shell' command to get to the command line. > > Usually the databases will be in /data/data//databases > > Try deleting using the command line (rm). > > Let me know if this works for you. > > Christian > > On Mar 23, 6:36 am, Ray da Costa wrote: > > > How do I delete the sqlite database exists in my android? There is a db > > behind my android qro and delete the same > > > -- > > Ray da Costa > > "The best way to predict the future is to invent it." > > Alan Kay -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
[android-developers] Re: Want to execute arm compiled executable file on Android adb shell
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 wrote: > > > I stuck in a problem. > > > I want a chmreader executable file to be used in android application. > > Now whenever I tried to execute it from adb shell, it gives error > > "permission denied" > > "# su /sdcard/extract_chmLib /sdcard/docs/HArdcore.chm" > > I may be wrong, but I think the sdcard is mounted with the NOEXEC > flag, so you can't run programs from there. The best way is to > integrate the executable into your app as a native library using the > NDK. -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Custom Dialog
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 diminishes. On Mar 17, 11:09 am, Lance Nanek wrote: > I tried the official issue route of getting someone to do something > here:http://code.google.com/p/android/issues/detail?id=5748 > > You can star/vote it up, I suppose. It's been months, though. > Disappointing that such a trivial fix that would help so many people > who are starting out isn't being acted on. I've run into many other > documentation bugs as well. Too bad there's no way to get them fixed. > > It would be easy to put up a site with a copy of the docs that aren't > left to die. Allowing comments like in the PHP manual would help a lot > too. There'd be no way to get traffic to the fixed copy instead of the > broken official ones, though. Just like how all the Market > alternatives get so few users. > > On Mar 17, 9:38 am, TreKing wrote: > > > On Tue, Mar 16, 2010 at 3:55 PM, Bob Kerns wrote: > > > I've not been able to come up with a single use case for > > > calling getApplicationContext(); > > > Could someone from Google PLEASE update the documentation for this function > > and the samples that use it incorrectly? It is the source of massive > > confusion for people new to the platform and results in basically the exact > > same "my dialog is crashing" question on an almost weekly basis. > > > It shouldn't take someone more than 10 minutes to comment this function > > warning people not to use it and to do a find and replace on the examples to > > change it to "this" (or whatever is appropriate in the samples). This will > > ultimately save a TON of time people would otherwise waste trying to figure > > out why the examples don't work, posting here, and ultimately getting the > > exact same answer every time. > > > Thank you. > > > - > > TreKing - Chicago transit tracking app for Android-powered > > deviceshttp://sites.google.com/site/rezmobileapps/treking -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Rebuilding Launcher.apk
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 11, 11:40 am, Coffee wrote: > I would like to rebuild the launcher.apk in Eclipse so I can have > access to edit the .xml files to customize the launcher. How would I > go about doing this? I kind of have a idea, but I need some more > though push. -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can static library is created by android 2.0 work at android 2.1?
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 rebuild source code to create at android 2.1? Or directly use > this library binary file by > creating android 2.0? > > 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, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: cannot see attached Droid on Windows 7 or Windows XP
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) and even though the N1's were still able to be seen. I got past this by attaching a Droid, using the windows device manager to delete (not just uninstall, that didn't work) the driver, then the device moved to the "unknown devices" category. From there I told windows to install the driver; I pointed it at the same usb_driver directory that was previously installed, and things worked after that. No difference in the driver that I can see, but clearly something was different since it works now (and still works for N1). On Mar 7, 1:14 am, Arun wrote: > A call to Verizon helped. I had to reinstall the driver from: > > http://www.motorola.com/consumers/v/index.jsp?vgnextoid=bda09ec8009a0... > > After reinstalling the drivers, adb devices started displaying the > device!. > > On Mar 6, 6:11 pm, Arun wrote: > > > I got a new Droid. I connect it to the USB port of my Windows 7 > > laptop. One (Motorola A855) out of 4 installations failed. If I mount > > the SD card, i can access it from the file explorer. However, if I run > > "adb devices" the list is empty. > > I rebooted both the device and the laptop. > > > It is the same behavior both on XP and Windows 7. > > > I can see my HTC Hero with out any problem on both. -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android NDK installation on windows?
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, > > I installed cygwin again selecting the required packages. This is what > results when I try to do build/host-setup.sh: > > $ build/host-setup.sh > cygwin warning: > MS-DOS style path detected: C:\cygwin\cygdrive\c\android-ndk-1.6_r1 > Preferred POSIX equivalent is: /cygdrive/c/android-ndk-1.6_r1 > CYGWIN environment variable option "nodosfilewarning" turns off this > warning. > Consult the user's guide for more details about POSIX paths: > http://cygwin.com/cygwin-ug-net/using.html#using-pathnames > Checking host development environment. > NDK Root : C:\cygwin\cygdrive\c\android-ndk-1.6_r1 > GNU Make : make (version 3.81) > Awk : awk > Platform : windows > Generate : out/host/config.mk > Toolchain : Checking for arm-eabi-4.2.1 prebuilt binaries > > ERROR: Toolchain compiler not found > It seems you do not have the correct arm-eabi-4.2.1 toolchain > binaries. > This may be the result of incorrect unzipping of the NDK archive. > Please go to the official Android NDK web site and download the > appropriate NDK package for your platform (windows). > Seehttp://developer.android.com/sdk/index.html > > ABORTING. > > Abhi > On Mar 5, 10:42 am, Michael MacDonald > wrote: > > > On 03/05/10 10:06, Abhi wrote:> Hi, > > > > I am trying to install and run Android NDK on my windows xp machine. I > > > am new to NDK and looking for some help in understanding the > > > installation process. I have downloaded cygwin and GNU Make 3.81 but > > > running the build host-setup.sh command results in a 'Could not find a > > > valid GNU Make executable'. > > > > What could be the problem? > > > > Thanks, > > > > Abhi > > > Haven't done this myself, but it sounds like you don't have all the > > required packages. The default cygwin installation doesn't include all > > the packages necessary for the NDK. Please make sure you add the g++ > > and gnu make packages, and the cross-compiler packages in the cygwin > > installer. -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how to run adb shell on windows as super user
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 ;) On Feb 28, 6:55 am, Michael Lam wrote: > hi, > > adb -s HT96NLV00520 shell > $ sqlite /data/data/com.lam.recipedisplay/databases/recipe.db > sqlite /data/data/com.lam.recipedisplay/databases/recipe.db > sqlite: permission denied > > is there a way to get around this? -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Nexus One: A-GPS and setup w/o carrier
I haven't used it extensively outside -- I was curious regarding your question and that prompted me to give it a shot ;) That being said, my initial glance at the screen was difficult enough that I had to shade the sun with my hand to view it properly. Hardly a scientific data set, 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, mah wrote: > > > 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. > > > Note: On this device, I've not even entered my Google account > > information; I just skipped that part of the initial device power-on. > > > On Feb 22, 12:04 pm, greg wrote: > > > > I'm interested in buying a Nexus One to develop an accurate trail > > > mapping application that uses the Nexus One's GPS receiver, > > > accelerometer, and compass. Currently, I'm not interested in using it > > > as a phone and therefore am not interested in signing a contract with > > > a carrier. So, I have a couple questions. > > > > 1) As mentioned in the Wikipedia article about A-GPS, "A typical A-GPS- > > > enabled receiver will use a data connection (Internet or other) to > > > contact the assistance server for A-GPS information. Some A-GPS > > > devices cannot fall back to standard GPS." Does the Nexus One fall > > > back to standard GPS if the assistance server is not available? > > > > 2) Is it possible to setup a Nexus One (i.e., enter my Google account > > > information) without a phone service, perhaps using WiFi instead? > > > > - Greg > > > > P.S., I asked these questions to the sales help team > > > athttp://www.google.com/phone > > > and was directed here. Obviously, they aren't paid a commission. :*) -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Nexus One: A-GPS and setup w/o carrier
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. Note: On this device, I've not even entered my Google account information; I just skipped that part of the initial device power-on. On Feb 22, 12:04 pm, greg wrote: > I'm interested in buying a Nexus One to develop an accurate trail > mapping application that uses the Nexus One's GPS receiver, > accelerometer, and compass. Currently, I'm not interested in using it > as a phone and therefore am not interested in signing a contract with > a carrier. So, I have a couple questions. > > 1) As mentioned in the Wikipedia article about A-GPS, "A typical A-GPS- > enabled receiver will use a data connection (Internet or other) to > contact the assistance server for A-GPS information. Some A-GPS > devices cannot fall back to standard GPS." Does the Nexus One fall > back to standard GPS if the assistance server is not available? > > 2) Is it possible to setup a Nexus One (i.e., enter my Google account > information) without a phone service, perhaps using WiFi instead? > > - Greg > > P.S., I asked these questions to the sales help team > athttp://www.google.com/phone > and was directed here. Obviously, they aren't paid a commission. :*) -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en