how to set up api 19.1 for $21 Walmart LGL15G android - Android Themes

I am a 31 year C & assembly firmware / deviceOS driver guy trying to build api 19.1 sample camers2basic code from the studio samples. I downloaded 19.1, android studio, oracle jdk on a fresh 14.04 ubuntu 64 bit dell. and got "FIX BUILD PATH" ERRORS, and unfortunately donb't have a clue where to start.
I don't know enough, as I am brand new to java, to fix the build path and get the untouched sample code building and downloading t ot he phone. adb shell works. But I am blocked and confused as to why it doesn't work on the fresh install on my marvellously cheap cheap android.
Thank you for newbie guidance. Bradshaw in Buzzards Bay, MA.

bradshawlupton said:
I am a 31 year C & assembly firmware / deviceOS driver guy trying to build api 19.1 sample camers2basic code from the studio samples. I downloaded 19.1, android studio, oracle jdk on a fresh 14.04 ubuntu 64 bit dell. and got "FIX BUILD PATH" ERRORS, and unfortunately donb't have a clue where to start.
I don't know enough, as I am brand new to java, to fix the build path and get the untouched sample code building and downloading t ot he phone. adb shell works. But I am blocked and confused as to why it doesn't work on the fresh install on my marvellously cheap cheap android.
Thank you for newbie guidance. Bradshaw in Buzzards Bay, MA.
Click to expand...
Click to collapse
SOLVED, by setting up /etc/udev/rules.d/51-android.rules and setting api 19.1 and sdktools 19.1 and taking an eclipse basic camera example, unzipping it and importing it as an eclipse project.
Also had a bad $JAVA_HOME for my oracle Java fresh install. echo $JAVA_HOME now shows /usr/lib/jvm/java-7-oracle, also did a command line HelloWorld jave test, which worked and proved the path
There is a lot to set up here. Nice to have the latest android studio running! It is super. What a great way to work!

Related

On-device C#compiler. Help me build it properly...

Hello xDevs
I'm trying these days to port the DotGNU .Net compiler toolchain for the pocket-pc. There was a port in the past (that even has an IDE! Pocket C#), but seems quite outdated and probably abandoned. I want to revive the effort.
Up to now, I have been successful in building (using CeGCC) and running the c# compiler on the Kaiser, but does not seem to be able to compile even the simplest program. So I'm calling out for help from this great community
The compiled toolchain can be downloaded from my site here: http://hypest.org/pnet_0.8.0_wince.zip
Limitations:
Problematic usage through the PocketC# IDE, so you have to use it directly from a command shell. (grab it from here). Even through the console, the usage is "unconfortable" as the compiler spawns a new process and its output is only shown momentarily.
See post #2 for a walkthrough of how to build the toolchain on an Ubuntu 7.10 linux machine (so to reach the point I am up to now).
Thank you,
hypest
walkthrough
This is a walkthrough executed in a console window on an Ubuntu 7.10 linux distro.
0.1 Make sure Flex, Bison and Alien are installed
sudo apt-get install flex bison alien
0.2 Make a directory to work in
mkdir /tmp/pnet_port
cd /tmp/pnet_port
1.1 Get and install CeGCC
wget http://downloads.sourceforge.net/cegcc/cegcc-cegcc-0.51.0-1.i586.rpm
sudo alien -i cegcc-cegcc-0.51.0-1.i586.rpm
2.1 Get and unpack treecc
wget http://download.savannah.gnu.org/releases/dotgnu-pnet/treecc-0.3.10.tar.gz
tar xzvf treecc-0.3.10.tar.gz
2.2 Build treecc
cd treecc-0.3.10
./configure
make
sudo make install
cd ..
3.1 Get and unpack DotGNU Portable.NET
wget http://download.savannah.gnu.org/releases/dotgnu-pnet/pnet-0.8.0.tar.gz
tar xzvf pnet-0.8.0.tar.gz
cd pnet-0.8.0
3.2 Setup proper path
export PATH=/opt/cegcc/arm-wince-cegcc/bin:$PATH
3.3 Get, unpack and apply my patch file
wget http://hypest.org/hypest_pnet.patch.zip
unzip hypest_pnet.zip
patch -p1 < hypest_pnet.patch
3.4 Build pnet
make
4.0 Finished
hypest
What benefits will this give a developer above what Pocket C# will do?
I actually did a repackage of Pocket C# a while back so that it would work on a WM5 device.
I've not used it for a while but someone may be interested in using it to compile on the newer devices.
Here is the link:
http://www.jaml.com/PocketCSharp/
Cheers
Mark
markvan said:
What benefits will this give a developer above what Pocket C# will do?
Click to expand...
Click to collapse
No extra features are to be expected for now I suppose. My goal is to make the toolchain "just work most of the time":
- Pocket C# includes an outdated version of the pnet compiler and perhaps that's the reason it doesn't compile some of my codes (rather simple ones, I should say). So I wanted to try to use the latest possible pnet version.
- the source code Mr Vitaliy Pronkin gave out, is not directly compilable as it seems to include only the files that he modified. I couldn't find the pnet version he used to be able to recompile Pocket C#, so I had to do it "from the beginning".
- I would also like to bugfix the IDE itself (make it landscape-friendly for starters).
A nice bonus of recompiling the pnet toolchain is that it makes other languages available too (java, c...)
markvan said:
I actually did a repackage of Pocket C# a while back so that it would work on a WM5 device.
I've not used it for a while but someone may be interested in using it to compile on the newer devices.
Here is the link:
http://www.jaml.com/PocketCSharp/
Cheers
Mark
Click to expand...
Click to collapse
Thanks for the link Mark.

Eclipse and building Phone.apk

I am working on a PC W7,
all the components is installed, Android SDK 1.6 r1, Eclipse Ide for Java Developer, JDK etc, all works well...
I can build without problem the apps from the SDK Sample and some other in Google Code like SMSPopup.
But I took from Cyanogen GitHub the Phone.apk Zip file
http://github.com/cyanogen/android_packages_apps_Phone
with the source and when I build I get a lot of errors in Eclipse, same problem with the Advanced Launcher, Loccy's Better browser...
Clean... and Fix from Eclipse does not change anything
Any suggestion? (apart: use linux, download the entire android source etc...)
xenio2000 said:
I am working on a PC W7,
all the components is installed, Android SDK 1.6 r1, Eclipse Ide for Java Developer, JDK etc, all works well...
I can build without problem the apps from the SDK Sample and some other in Google Code like SMSPopup.
But I took from Cyanogen GitHub the Phone.apk Zip file
http://github.com/cyanogen/android_packages_apps_Phone
with the source and when I build I get a lot of errors in Eclipse, same problem with the Advanced Launcher, Loccy's Better browser...
Any suggestion? (apart: use linux, download the entire android source etc...)
Click to expand...
Click to collapse
You can not only git clone the Phone app, you need checkout a lot many others such as build/framework/core... etc.
And then type "make Phone" to build the app. Of course, you need a cygwin or just use a linux machine...
Yep...
My hope was not to hear that answer... I am too noob for that...
Maybe I try to install a Linux machine with the entire Android source... just for fun...
Thanks.
I did some important progress.
I did it...
I am on W7 64bit Host
with Sun VirtualBox I installed a Guest Ubuntu 9.04
this part from: http://developer.android.com
Android SDK 1.6
JAVA JDK 5
Eclipse with Android Plugins (ADT)
Some add to path for Java/Android SDK in ~/.bashrc file
this from: http://source.android.com/
Installed all the packages as in the Get Source page
Installed Repo
and the get source section...
in my $HOME
$ mkdir mydroid
$ cd mydroid
$ repo init -u git://android.git.kernel.org/platform/manifest.git
type your name and email
and now get all the files from source.android
$ repo sync
and build it
$ cd ~/mydroid
$ make
...after some hour
I modified the file I need to in the ~/mydroid/packages/apps/Phone/ directory
and build only the Phone.apk
as read in this thread http://groups.google.com/group/andr...47985716f84f?lnk=gst&q=build#6de347985716f84f
Make sure you're cd'd into the mydroid/ directory
Type ". build/envsetup.sh"
Type "mmm packages/apps/Phone"
if there are no errors the build of Phone.apk is in
~/mydroid/out/target/product/generic/system/app
I know this is easy for you devs, but this took me 3 days to
Now I like to get the Phone.apk source from Cyanogen GIT and try to build in my VM, I have no idea how to do it, and I think it modify the Settings too.
Please help me for this last part...
Thanks
Xenio
This may be easy for some, but I can say you just saved me 3 days of work. Thank you for the follow up post.
how to create apk file
hai everybody
my name is sriram
i am doing MCA
actually i want to create apk file, i dont know event the basics
can you help me
Kind of you

[Q] nOOb: export apk from Eclipse IDE?

So, I've been doing some Android development tutorials, as I have almost no experience in any sort of coding. I'm working in Ubuntu 11.10 with android-sdk-linux, Eclipse IDE, & java version 1.6
Things are going ok, but...
I tried to export a signed apk of my application project from Eclipse yesterday, and when I try to install it on my D3 I get this error:
HTML:
Error Parsing Package
What am I doing wrong?
thanks in advance...
lunacie said:
So, I've been doing some Android development tutorials, as I have almost no experience in any sort of coding. I'm working in Ubuntu 11.10 with android-sdk-linux, Eclipse IDE, & java version 1.6
Things are going ok, but...
I tried to export a signed apk of my application project from Eclipse yesterday, and when I try to install it on my D3 I get this error:
HTML:
Error Parsing Package
What am I doing wrong?
thanks in advance...
Click to expand...
Click to collapse
Sorry bro, I have no idea. You might get more help Android Development and Hacking or more specifically Android Software Development which is a subforum of the first link. Sorry I personally can't help you out more than that, wish I could.
If your device is recognized as a development device, you should be able to just hit the 'Run' button and it should compile your app, install it to the device and automatically launch it. Your device needs to have USB debugging turned on and you need to have the ADB driver installed (need to get it from Motorola if this is a Moto device, it won't install automatically like the rest of the storage drivers).
My Droid3 shows up as ???????? in adb. I was exporting a signed apk to install because I can't get the device to recognize. Am I missing a configuration of some kind? I'm guessing there's some kind of vendor code or something that I need for ADB to work properly with my phone?
tnx
EDIT: think I figured it out. it's the udev rules, looks like i'm on the right track....
EDIT 2: Got it! Thanks for the heads up.

Question On Rom Cooking.

Hey Guys.
I'm starting off to create my own very first ROM. So I need help setting it up. I have Oracle Virtual Box using Ubuntu 12.04. But i can't get java to install on it.
I tried running the following code on the terminal:
sudo apt-get install sun-java6-bin sun-java6-jre
but it justs gives me:
E: package sun-java6-bin has no installation candidate
E: package sun-java6-jre has no installation candidate.
Please Help Me Out.
Well , the Java 6 JDK has already been officially removed from the Ubuntu repositories.....so the only option left is OpenJDK.....but it will be buggier than Java 6 JDK
"I have to go. It's just....they really need me." - Sora
CallMeVentus said:
Well , the Java 6 JDK has already been officially removed from the Ubuntu repositories.....so the only option left is OpenJDK.....but it will be buggier than Java 6 JDK
"I have to go. It's just....they really need me." - Sora
Click to expand...
Click to collapse
Hmm. But i can still run the kitchen on the open JDK ryt? And do what should i type into the terminal to install Open JDK?
http://lmgtfy.com/?q=java+openjdk6+installation
Is that so hard?
Closed and moved to Q&A.

[Q] Android Studio error on first startup

I recently downloaded/installed android studio since I am taking an online class on the topic. I had an error (screenshot attached) the first time I tried to use the program. Reinstalling Android Studio and restarting my computer did not help. Any suggestions?
icecats said:
I recently downloaded/installed android studio since I am taking an online class on the topic. I had an error (screenshot attached) the first time I tried to use the program. Reinstalling Android Studio and restarting my computer did not help. Any suggestions?
Click to expand...
Click to collapse
Go to: Tools > Android > SDK Manager, and make sure you have the latest version of the SDK installed.
If you're up to date then it is most likely an error with your gradle build files. If you can't get it working open your module:app build.gradle file, and check what your 'compileSDKVersion' and 'buildToolsVersion' are.
Try changing your 'compileSDKVersion' to 21, and your 'buildToolsVersion' to 21.1.2. I think these are the most recent stable releases.

Categories

Resources