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?
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.
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?
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!
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?
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...
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.
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...
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?
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...
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. ............
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)) ;
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?
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?
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.
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"/>
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: