Android :: How To Include 3rd Party Jar In APK With Make In Repo
Dec 30, 2009
I am working on the Android builtin Contact app. It can be build with "make Contact" in the repo. Now, I want to use a 3rd party jar, and how to package the jar into Contact.apk?
It is easy to include external jar for Eclipse Android project, but not for android git repo codes. I am afraid package/apps/Contact/Android.mk should be changed to include external jar, how to do it?
View 2 Replies
Mar 19, 2010
I have a couple of third party classes which serve as a library I can build my application upon. They are contained in a folder which was added Java Build Path -> Libraries (in Eclipse) with "Add Class Folder". It works fine so far an my app compiles. But the produced .apk contains only my classes and therefore the application does not run. How can I tell Eclipse to package the third party classes into the .apk as well?
View 1 Replies
View Related
Jan 24, 2009
I'm new to Mac and android. I went through all the steps mentioned to prepare to get android source on Mac.
However after getting repo and changing it to executable I can't execute repo init -u .... I keep getting -bash: repo: command not found
my $PATH is /opt/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/ bin:/usr/X11/bin
View 2 Replies
View Related
Jun 6, 2009
I am using Virtual Box with KUbuntu Linux on x86(Windows XP) system and setting up system for Android Source SDK. I have installed repo through (curl http://android.git.kernel.org/repo >~/bin/repo). Now I am trying to initialize repo by $ repo init -u git://android.git.kernel.org/platform/manifest.git but here I am getting an error shown as follows:
Traceback (most recent call last): File "/home/tirtha/mydroid/.repo/repo/main.py", line 235, in <module> _Main(sys.argv[1:]) File "/home/tirtha/mydroid/.repo/repo/main.py", line 217, in _Main repo._Run(argv) File "/home/tirtha/mydroid/.repo/repo/main.py", line 123, in _Run cmd.Execute(copts, cargs) File "/home/tirtha/mydroid/.repo/repo/subcmds/init.py", line 218, in Execute self._SyncManifest(opt) File "/home/tirtha/mydroid/.repo/repo/subcmds/init.py", line 123, in _SyncManifest m.PreSync() File "/home/tirtha/mydroid/.repo/repo/project.py", line 1440, in PreSync cb = self.CurrentBranch File "/home/tirtha/mydroid/.repo/repo/project.py", line 271, in CurrentBranch b = self.work_git.GetHead() File "/home/tirtha/mydroid/.repo/repo/project.py", line 1226, in GetHead fd = open(path, 'rb') IOError: [Errno 2] No such file or directory: '/home/tirtha/ mydroid/.repo/manifests/.git/HEAD'
I have try to go to the mentioned folder and it looks like /home/ tirtha/mydroid/.repo/manifest.git/HEAD rather '/home/tirtha/ mydroid/.repo/manifests/.git/HEAD'. Can anybody suggest me the reason of the error and any solution for this.
View 3 Replies
View Related
Oct 29, 2010
How can we make our browser as default in android. i want to implement that when you open up the internet browser it gives you two options: regular browser and Mybrowser(third party browser which is made by me). If you select the regular broswer it says that the phone cannot access the internet unless it is on the Mybrowser. can we implemnt this feature? if yes than how?
View 1 Replies
View Related
Mar 15, 2010
When I wanted to get Android source code, I knew that I have to use "repo". So what is repo? Why do they use repo and not just use GIT?, and is there a GUI for repo that enables me to pause/resume syncing, because every time I get disconnected occasionally it seems that repo starts syncing from the beginning!
View 1 Replies
View Related
Jan 25, 2010
I am trying to get the source code for the android os. How do I repo sync a particular folder from the master branch?
View 1 Replies
View Related
Jul 3, 2009
i did repo sync platform/packages/apps/Contacts.git and i received the specific src files for that project now that i modified what i wanted, i want to ubild my changes and patch them to my current Android OS. I tried running make from working directory, but there is no makefile. How would i go about doing so?
View 2 Replies
View Related
Nov 30, 2009
I was just wondering if I want to sync to the latest Eclair repo which one of the following would be the correct command? What is the difference between them? Currently I am using cupcake version and wanted to move up to eclair. Would I need to do any thing else as far as syncing and building the eclair branch? Currently I am using "Ubuntu 9.04 (Jaunty Jackalope)" and java version "1.6.0_16". Code...
View 3 Replies
View Related
Apr 21, 2010
I am trying to set up a private repository of Android source code while hosting the git trees on github as private repos. I have no problem changing the manifest.xml file to point to public git trees hosted on github in the same way that CynagonMod does, but when trying to point to private repos I get the following error when trying "repo sync":
Initializing project username/android_external_webkit ...
fatal: The remote end hung up unexpectedly
error: Cannot fetch username/android_external_webkit
Where username/android_external_webkit is of course a private github repo of the same name. I understand the error occurs since I did not specify my user name and credentials to github, but I fail to see how to do it in the manifest.xml with repo.
View 1 Replies
View Related
Jan 19, 2009
I am trying to download the android source onto a new ubuntu 8.10 installation on a x86 machine. All the steps worked fine until I tried to init the repo client. I get the following. I can't find anyone else having such an repo error. I did find an obscure message that said the python error might be due to a missing readline module. I tried to install lib32readline5-dev as in the download instructions and got the following error Any ideas anybody? I am somewhat new to linux but have had a fair amount of unix experience in the past. Code...
View 14 Replies
View Related
Jul 15, 2012
I ran the command to sync with android-4.1.1_r1. Its literally been syncing for hours and still not done. I'm currently on /platform/pdk. As for Ubuntu, I've never used it before but I'm running the guide posted on XDA for building with Ubuntu and I've done everything to the point of syncing...which I'm waiting to advance after this is done.
When you have to pull the proprietary files it says to use the device name. In my case it would be Samsung_d2tmo (for T-Mobile sgs3) correct?
View 7 Replies
View Related
May 15, 2014
My repo wont sync even with the flag -f?
View 9 Replies
View Related
Apr 3, 2012
im trying to download the MIUI Patchrom from Github and the only way is through Terminal, how to download from a Repo?
[URL]
View 4 Replies
View Related
Feb 9, 2013
When I'm in the ~/kelso/android/ system directory in the terminal and try to repo sync,it just keeps saying " update repo to latest version 1.8" then it downloads a files and stops. I try to repo sync again and same thing...
I've googled for hours with no results. Back when I had Ubuntu 10.04 this was never an issue.now that I'm running a clean installed version of 12.10,compiling CM isn't going so smooth...
PC36100
View 1 Replies
View Related
Oct 7, 2013
After I ran the curl to install the latest version of repo, when I attempt to run a repo init I get this error
Code:
dan@dan-laptop:~/aokp_jb$ repo init -u https://github.com/AOKP/platform_manifest.git -b jb-mr2 -g all,kernel,device,vendor
gpg: keyring `/home/dan/.repoconfig/gnupg/secring.gpg' created
gpg: keyring `/home/dan/.repoconfig/gnupg/pubring.gpg' created
gpg: /home/dan/.repoconfig/gnupg/trustdb.gpg: trustdb created
gpg: key 920F5C65: public key "Repo Maintainer <repo@android.kernel.org>" imported
gpg: key 338871A4: public key "Conley Owens <cco3@android.com>" imported
gpg: Total number processed: 2
[URL ......
repo 1.12.4
gpg: Signature made Tue 01 Oct 2013 12:44:27 PM EDT using RSA key ID 692B382C
gpg: Can't check signature: public key not found
error: could not verify the tag 'v1.12.4'
View 3 Replies
View Related
Apr 4, 2009
I use the following command to fetch all the source code of android
repo init -u git://android.git.kernel.org/platform/manifest.git repo sync
but I can not get platform/external/alsa-lib.git and platform/hardware/ alsa_sound.git
I don't know what's the rule for repo to fetch the code from http://android.git.kernel.org/
View 2 Replies
View Related
Mar 17, 2013
I'm trying to compile CM10.1 from source, but when trying to do a new repo sync I get this error:
Code:
fatal: duplicate project CyanogenMod/android_device_samsung_maguro in /home/nickamina/android/cm10.1/.repo/manifest.xml
View 2 Replies
View Related
May 6, 2009
I have a problem trying use <include /> within a table row. Any android:xxxx atributes applied to the widget within the include are ignored. Here's is a test I put together. The two buttons outside the table layout render correctly(adjusted width and height), the one's inside do not. Strangely, the custom TwoStateButton:xxxxx attributes are rendered correctly in both cases. ............
View 4 Replies
View Related
Jul 11, 2010
So I read the xml tricks 2 from developer.android.com, and it worked for me. But I need to programmatically include 1 xml into another. addview returns
07-12 01:01:18.429: ERROR/AndroidRuntime(267): java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first. 07-12 01:01:18.429: ERROR/AndroidRuntime(267): at android.view.ViewGroup.addViewInner(ViewGroup.java:1970)
((ViewGroup) placeHolderProductList).addView(productList, new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT)) ;
View 4 Replies
View Related
Oct 21, 2010
I have downloaded the Galaxy SDK from: http://innovator.samsungmobile.com/galaxyTab.do When I try to install my app on the emulator, I get an error: "missing shared library". I think the Google maps api is not included in the emulator. Is it possible to include the api?
View 2 Replies
View Related
Jun 18, 2010
I'm writing a Android.mk to make a APK-A. and APK-A would use other classes defined in APK-B. I wonder that how should I wrote the Android.mk to include APK-B. Which tag should I use?
View 1 Replies
View Related
May 27, 2009
I am using Android SDK 1.1 Intellij idea plugin Android_Support_6812.zip
Everything was fine. But now, error occurs during run application from idea . I am not using external libs, only android sdk. But application compliled and deployed fine using ant.
CODE:................
View 6 Replies
View Related
Jun 25, 2010
I understand that sense UI is an overlay for android, but what exactly does It include? What is sense ui and what is android? I suppose I am asking If I rooted my phone and put stock froyo on (when available) what wouldn't be there?
View 4 Replies
View Related
Mar 3, 2010
Following is the layout xml file. Here I used <include> tag. in that the layout="@layout/player_view", player_view is another xml file that contains a seat with avatar, 2cards and player name and bet amount. I need 2 seats like that so I used <include> 2 times and it is showing in screen fine. My problem is how to access the views in the player_view to give different names to players and to show different cards for each seat. I didn't find any where how to do that.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:background="@drawable/game_background">
<AbsoluteLayout android:id="@+id/game_table" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:layout_margin="30dip"
android:background="@drawable/game_table"
View 3 Replies
View Related
Aug 28, 2009
I have some layout xml that looks like this:
== file1.xml == <?xml version="1.0" encoding="utf-8"?> <LinearLayout ...> ... ... </LinearLayout>
I want to include that in some other layout xml, so I do this --
== file2.xml == <include layout="@layout/file1.xml"/>
The question I have is how to pass arguments (and refer to them) from file2.xml to file1.xml. So, for example:
== file1.xml == <?xml version="1.0" encoding="utf-8"?> <LinearLayout ...>
<TextView android:text="@text" android:layout_width="fill_parent"
android:layout_height="fill_parent"/> ... </LinearLayout>
== file2.xml == <include layout="@layout/file1.xml" text="abc"/>
View 2 Replies
View Related
Jun 14, 2009
I'm reworking some of my layouts to use Relative layout. I have some building blocks which I'd like to reuse. The problem I seems to have with the include of the layout and position other layouts out of this include. Example:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height=wrap_content"
View 2 Replies
View Related
Nov 3, 2010
I need to attach several text files with the apk so that these text files can be stored at SD card when APK is installed. How can I do it?
View 3 Replies
View Related
Sep 13, 2010
I have to show progress dialog while button click. Is there any sample code to show this.
View 2 Replies
View Related
Jul 7, 2010
More specifically, have the files show up: /data/data/com.mydomain.foo/media/foo.js
Is this something I would have to provision programatically at runtime?
View 5 Replies
View Related