Android :: Running A Compiled - Packaged-with - V1.6 Application On V1.5
Nov 3, 2009
I have an application which is based Android 1.5 but for enabling different screen types support I have to compile and package it with v1.6. When I install and run the resulted APK on my 1.5 emulator, everything works fine except that "Preferences" activity crashes every time I launch it!
When I revert back my API dependency to 1.5 and remove a few 1.6 specific config blocks from AndroidManifest.xml and compile/package it with 1.5, everything works just fine!
I have compiled Android source code already (which I downloaded using GIT), and I am being editing the source code of an Application for testing on Emulator, each time I wanna see results I have to re-Compile the source code again using 'make' I am pretty sure that there is a way to partly-compile the image.
I was wondering if anyone has ever been able to distribute their app in a bundle with an emulator?
The reason I want to do this is that I have some friends who don't have android phones, but I'd like them to be able to play with my app so that they can give me feedback. I've previously sent them screen casts, but I'd really like them to be able to get interactive with the app.
Now I could ask them to get all installed with the whole android framework, eclipse etc,. but some of them are not so technical. Ideally what I'd like to be able to do is create a package that is the android emulator with my app and perhaps 1 or 2 other related apps pre- installed, so that they can download it, open it and run it interactively on their computers?
Has anyone ever tried this?
So far I found that I can run the emulator standalone, and I assume I could probably send them just that and it would run. However the adb tool is needed to install apps. I could send them that too, and ask the to run an 'adb install myapp.apk' from the command line, but at the moment I can't even seem to do that myself.
Running the emulator standalone, the adb tool can't seem to see it:
samuel-josephs-computer-2:tools samueljoseph$ sudo ./adb devices List of devices attached
I just get no list of devices ...
I have previously used the adb tool to install apk files, but that is after I had started the emulator from eclipse - of course even then I always have to restart eclipse and the emulator two or three times before I can get the connection (I am on OSX 10.5.6., eclipse 3.4.1) ...
I have a project that builds against Android v2.1 . I can run it fine on a phone running 1.5 but when I try to launch it with an emulator running 1.5, the emulator doesn't show up on the list of available AVDs. I have the <uses-sdk android:minSdkVersion="3"/> tag in my manifest but it doesn't make a difference.
I am developing an Android app that will display a random quote or verse to the user. For this I am using an SQLite database. The size of the DB would be approximately 5K to 10K records, possibly increasing to upto 1M in later versions as new quotes and verses are added. Thus the user would need to update the DB as and when newer versions are of the app or DB are released.
After reading through some forums online, there seem to be two feasible ways I could provide the DB: 1. Bundle it along with the .APK file of the app, or 2. Upload it to my app's website from where users will have to download it
I want to know which method would be better (if there is yet another approach other than these, please do let me know).
After pondering this problem for some time, I have these thoughts regarding the above approaches:
Approach 1: Users will obtain the DB along with the app, and won't have to download it separately. Installation would thereby be easier. But, users will have to reinstall the app every time there is a new version of the DB. Also, if the DB is large, it will make the installable too cumbersome.
Approach 2: Users will have to download the full DB from the website (although I can provide a small, sample version of the DB via Approach 1). But, the installer will be simpler and smaller in size. Also, I would be able to provide future versions of the DB easily for those who might not want newer versions of the app.
My application is a trial version apk. Once the period is completed, can I initiate another application to be installed/downloaded from the android market ( purchasing process) which is a paid application using the current running trail application.
I want my app to kill a running app but i got the problem that since AP I 8 the method is deprecated and i need to use another function. So i want that if AP I level of the device is smaller than 8 it runs this Activity Manager a M = (Activity Manager) this.get System Service(ACTIVITY_SERVICE); a M.restart Package(package); And from 8 this But how do i accomplish this because using something like an if will make the compiler complain.
I have some xml files with a custom format (based on the scxml specifications) that I want my program to read. I've already written the code to read it, but I'm running into problems actually reading the file itself. I want the file to be compiled with the apk, as it will not be changed at all during run time. So I put the file (test.xml) in the res/xml/ folder, and got the inputstream by using:
getResources().openRawResource(R.xml.test); But when I read in this inputstream it is complete jibberish, which makes me suspect it is being read in binary, as openRawResource() is often used for binary files like images, if I am correct. What is the correct way to do this?
Is there any 1.5 image going around for the emulator? I would like to try my apps with onscreen keyboard. Maybe someone is actually making nightly builds but I can't find any. PS: Not sure if it's appropriate to ask in this list.
I need to import a couple of jars that where compiled under the full implementation of java. I know that Android doesn't use all the packages that java has to offer. My question is: Is it possible to import them without creating errors? Is there a tool that can convert jars to android jars? if so, can some examples be provided.
I am writing an application and due to various reasons I had to build it using make (froyo code) and not SDK. When I run my app on emulator it works fine. I have an Android device and code to build image for the device. When I build my app with device code, it builds fine. How ever, when I run the application, I get java.lang.ClassNotFoundException: <package.class> in loader dalvik.system.PathClassLoader[.]
A source file in my code is actually doing sourceClass = classLoader.loadClass(sourceName); sourceName here is pointing to a class I actually build (I have classname.java file in my code under correct package directory and package name). Note that this app is running fine on emulator, but on a device it is failing.
I verified that the .class file exists in out/target/common/obj/APPS/ xxxApp_intermediates/classes.jar, classes-full-debug.jar, classes-full- names.jar
There are so many apps in the market and I don't trust all of them. Is there a way to remove some permissions of the already compiled APK? It doesn't matter if I cannot sign it anymore with the original certificate of the developer. And is there also a way to add an error-handler into the .apk-file, so that the errors of the requested permissions will also be suppressed?
I was able to setup my android project to call a native function from a .so file. And actually I need to add box2d to my project, but I when I include the header files, it won't make. So basically my problem is how do I tell the make file to include a whole folder with header and cpp files.
I tried adding the path directly to the include statement just for the sake of testing it. The error goes away, but new errors come out.
A lot of Android apps are open source, but how can we make sure the person who finally uploads to the Google Market does not include some spyware just before uploading?
Background: Mobile apps security seems to be a growing concern, and I would like to reassure the users of my Open Source Android app. Solutions that require to modify the deployment process or application content are acceptable too.
I need an Android application which should be able to fetch data from the web (maybe an .apk or a .jar) and launch "something" from it.
If it's a "trivial" class there's no problem at all. This is my Loader
The problem is that the code I want to execute looks very like an application, which should have a "simple" view and some interaction on it.
I'm not able to invoke the "onCreate" method of my downloaded class.
I guess I've three streets:
I look for a method which silently install the application and then runs it (is it possible?) I understand how to initialize a second "application" inside my own one (with its own R and all stuff) I write my master program to fetch data from the web and construct pages dinamically.
I develop[e a small program to play the video from localhost ... but that is not working its show like ... ActivityManager: Warning: Activity not started, its current task has been brought to the front this is the error message ....
I have made an app which have target sdk a 2.2 and min sdk version as 3. And i have 2 services which start at boot time. when i run the app on 1.6 than it is running fine but as i try to run the app on 2.2 my services get start but got Crash after some time. why this is happening? when i look at log cat it is giving me something like this which i not coming in 1.6
I spent a full day to get my Android SDK sources in my setup and compiled it successfully by doing the File System for x86 and also the SDK, everything was fine but when I tried to use it in my environment (Eclipse) and tried to compile my application (which is working fine on Froyo 2.2), I'm seeing some errors, which seems that I did not get the entire SDK with all the base packages included.
Steps to reproduce:
# repo sync to android sources. # make # make sdk # make Eclipse to point to the new SDK, generated at: .../out/host/ linux-x86/sdk/android-sdk_eng.david_linux-x86/ # generate a new AVD # launch it and run the application
I developed an "heavy" application (700 Mb !). With an "apk installer" application, i can install it on the Nexus One SD card (Froyo "installLocation" option). My application is heavy because of the videos it contains (located in /raw directory). The problem I have, is that it crashes when launched, with this error :
I notice that my application continues to run in the background after I hit the home or back button. I tried calling the finish() method and it still says its running. On another note, how do I setup the keyListener to respond to the user hitting the back or home button. I tried implementing OnKeyListener and using findViewById(R.Layout.main).setOnKeyListener(this) to call finish().
I have successfully booted android on to the omap 3530 evm(mistral) using the prebuilt binaries available in the mistral site.. now i would like to run a simple application like hello world on it.. can somebody please guide me as to how to go about running it and if some tools have to installed..?
I want the application to run in background. This application should run continuously and should never get killed. Will running application as Service solve this issue? The application should get started automatically on start up. I don't need any GUI for this application. The main issue is Service getting Killed. Does service get killed ? and in what conditions will that happen?
I'm wanting to run a script called toggle.sh on Android. Should I be able to run this code?
At the moment I can run the command from the terminal and it works but when I try to run it from the application it fails (and I don't know why - there is no USB on my Android phone to plug in the debugger).
The Emulators don't have this command to run - and they are running on Windows anyway. I can't think of anything else to add to this.
I was wondering if its possible to have an application run on startup of the phone and then run permanently in the background. Also I would then like it to monitor the call log, and detect any changes and run about 15, 20 lines of code each time there is a change.