Making apps - XPERIA X8 Q&A, Help & Troubleshooting

what i need to make app or game for x8

In theory ...
- Android SDK (or Android NDK if you want/need to code native ARM code)
- Oracle Java JDK
- Eclipse
(everything else I failed to consider)
Apart from that ...
- Good knowledge about how to code in Java
- At least one real Android device to test your app/game on (just because it runs in the SDK Emulator does not mean it works as smooth on a real device)
I guess it would be a good idea to look around in the Android Development and Hacking section to ask questions / get the idea.

Related

[Guide] Building your own ICS ROM on 64-bit Windows 7

Please note that this is a guide to how to setup an environment to create your own ROM, and to build a test AOSP ICS Rom that will work on an emulator. While it is possible to do all this in 32-bit Win 7, you will find it much (!) easier in 64-bit Win 7. The intention is to allow all the folks who have said they'd like to work on a ROM to get their feet wet. If you complete all the steps in this guide you will have a Vanilla ICS Rom that works in the Android Emulator. You would still need to modify the kernel for the Tegra and add the special radio and other drivers before porting to the Streak.
Of course you can skip step 4 if you are willing to either dual-boot Ubuntu, or go into Ubuntu full time. However I figure a lot of folks on here are still on Windows for one reason or another.
1) Make sure that the ROM for your Windows 7 computer is set to allow Virtualization. If you have a Core i7 this will be the default. Otherwise you will need to make sure to set it manually through the Setup that should come up before BOOT.
2) Download VirtualBox 4.1.8
DL Link here for VB:
http://download.virtualbox.org/virtualbox/4.1.8/VirtualBox-4.1.8-75467-Win.exe
DL Link here for VB Extensions (necessary for USB, shared folders, etc):
http://download.virtualbox.org/virt...alBox_Extension_Pack-4.1.8-75467.vbox-extpack
3) Download Ubuntu 11.04 64-bit
DL Link here:
http://www.ubuntu.com/download/ubuntu/download
Make sure (!) to select the 64-bit version before clicking download
4) Install VirtualBox and Ubuntu:
Install and Setup Guide:
http://www.sevenforums.com/tutorial...ndows-7-virtual-machine-using-virtualbox.html
(Note that some of the images from this guide are from an earlier version of Ubuntu)
I personally recommend that as long as you have at least a Quad Core that you give your VB machine Two Cores and Two Gigs of RAM. For the HD size of your Virtual HD remember that the Android Source Code is almost 16 Gigs. For speed and other purposes I suggest creating a fixed size 80 Gig (or larger) Virtual HD. While this can be on an external drive, if you have room on an internal drive that will also improve performance.
5) Install the Toolchain (Android Build Environment):
http://mjanja.co.ke/2011/11/building-android-4-0-on-ubuntu-11-10/
The first three steps will take between 1-2 hours. Step 4 will take an hour or so as well. Step 5 takes multiple hours due to the size of the Android repo source library. Plan accordingly
Hope this helps!
Looks good, but its way easier to use a direct Ubuntu installation, dude.
So far as i can see, you can use the sdk on 32-bit, too.
Mind everyone he said this was for AN EMULATOR
giveen said:
Mind everyone he said this was for AN EMULATOR
Click to expand...
Click to collapse
And that it still requires tuning for the Tegra chip and the custom radios. This is not a new ROM, rather it is what you would need to do to setup an environment to create a ROM.Just saw so many folks saying they would like to help, that it seemed to make sense to show them how to get started. If anyone has gone through this and is ready to take that next step, this would be a good place to let folks know.
exebreez said:
Looks good, but its way easier to use a direct Ubuntu installation, dude.
So far as i can see, you can use the sdk on 32-bit, too.
Click to expand...
Click to collapse
Support on 32-bit is "experimental" according to Google. As for a direct install, that'sonly true if you are ready to convert to Linux or dual boot. On a fast machine having the VM is actually pretty quick, and allows you to mess up without impacting everything else.
It's a tuto to creat a ROM for a smartphone or a computer?
Samoht59 said:
It's a tuto to creat a ROM for a smartphone or a computer?
Click to expand...
Click to collapse
This is more of a guide on how to build an environment were you can begin to build android.
How to Compile Skia Rendering Engine to a rom. (for Indic Support)
rahulsby said:
How to Compile Skia Rendering Engine to a rom. (for Indic Support)
Click to expand...
Click to collapse
Missing a link?

[Q] Kernel & Android (GT-7310)

Hi, sorry to post of question here, but it seems it is the only place where it is possible to talk about development for the GT-73xx.
I would like to do some work on the kernel, I am looking at this : [not allowed to post a link to motley-git]
But is there a guide on how to compile this GT-7310 kernel, and how to safely flash it to the tablet ? Does Samsung publish the source code of the bootloader ?
My goal is to develop a simple graphical user interface for a particular application using OpenGL but still be able to access the hardware features like WIFI, Audio, USB and multi-touch. So the tablet would only run my application.
I do not really need to run the Android OS (especially any java components), but if there are some kind of hardware android APIs I can still use from my C/C++ app, that would be great.
any help will be much appreciated

Is there any JAVA emulator works on 9305?

I wanna run some java applications (jar/jad) on the phone. There was an application called "JBED Android Java Emulator", but it only works on Android 1.5 to 2.3 (not on 4.1).
So is there any emulator can work on i9305 (Android 4.1)?
Thx!
This thread did not belong in development
Moved to Q&A

What is needed to be an android developer?

What is needed to be an android developer? What things I have to learn to develop apps and make custom roms or kernels?
It isnt that easy. Just an app that is slightly complex can take 3-4 months if you have 0 knowledge before you start
Sent from my LG-P880 using xda app-developers app
alekthefirst said:
It isnt that easy. Just an app that is slightly complex can take 3-4 months if you have 0 knowledge before you start
Sent from my LG-P880 using xda app-developers app
Click to expand...
Click to collapse
Thanks for the reply. I am going to learn C, C++, VB.NET, Linux and Java. After an year and three months my course will complete. I want to know, what is needed more to learn. Please tell.
C language is the base for kernel development.. ROM is not difficult to make/develop/mod.. but Kernel is.. good luck friend
Sent from my LG-P990 using xda premium
Subhajitdas298 said:
Thanks for the reply. I am going to learn VB.NET, Linux and Java. After an year my course will complete. I want to know, what is needed more to learn. Please tell.
Click to expand...
Click to collapse
Visual Basic .NET is not required for android developing. VB (.NET) was created by Microsoft and is supposed to run and supported only on Windows. (can be emulated on linux though..)
Linux: you need to specify what you want to learn about linux. How to access the terminal, know the different shells (sh, bash, zsh, ..) and how to use them (executing commands, creating scripts, using system variables, pipes, ...). It's also good to know the boot process and how it's working to boot into linux (kernel -> initial ramdisk --> init --> usermode).
Another thing is how to compile applications using gcc and understanding the automatic building process using Makefiles and how to configure it (using defines, ./configure) to make a build that fits your need.
Other things to learn and understand: debugfs, tmpfs, ramfs, procfs, devfs, sysfs, ramdisk structure, and much more.
Also important are the differences between linux distributions. They all have it's own way to process different operations, for example, installing and updating the distribution or apps. (debian/ubuntu -> apt-get, fedora -> yum, suse -> yast, ...)
Java: only needed if you want to develop android apps running in userspace executed by the dalvik virtual machine (=> normal apps that run on android os). Java's coding syntax is based on C's. When coding apps for android os be sure you get used with the android sdk.
C: not bad to know. You can do kernel stuff and develop apps that can be executed by the linux/android kernel directly without involving the dalvik-vm which allows you to access internal things. Custom recoverys, for example, were developed using C and the android ndk with a modified ramdisk to execute the recovery binary instead of the dalvik-vm which initializes android.
C++: not really needed, but it supports object oriented programming which makes everything better structured and understandable. The android ndk has some support for c++ header files to work with.
So.. one year isn't enough. There is so much to learn and it's really not easy.. more frustrating
Then finally you can start to work build roms for a specific device, because every device has other hardware components and different ways to do this and that. You need to know and understand them to successfully develop software that runs fine on the specific device.
gordon0001 said:
Visual Basic .NET is not required for android developing. VB (.NET) was created by Microsoft and is supposed to run and supported only on Windows. (can be emulated on linux though..)
Linux: you need to specify what you want to learn about linux. How to access the terminal, know the different shells (sh, bash, zsh, ..) and how to use them (executing commands, creating scripts, using system variables, pipes, ...). It's also good to know the boot process and how it's working to boot into linux (kernel -> initial ramdisk --> init --> usermode).
Another thing is how to compile applications using gcc and understanding the automatic building process using Makefiles and how to configure it (using defines, ./configure) to make a build that fits your need.
Other things to learn and understand: debugfs, tmpfs, ramfs, procfs, devfs, sysfs, ramdisk structure, and much more.
Also important are the differences between linux distributions. They all have it's own way to process different operations, for example, installing and updating the distribution or apps. (debian/ubuntu -> apt-get, fedora -> yum, suse -> yast, ...)
Java: only needed if you want to develop android apps running in userspace executed by the dalvik virtual machine (=> normal apps that run on android os). Java's coding syntax is based on C's. When coding apps for android os be sure you get used with the android sdk.
C: not bad to know. You can do kernel stuff and develop apps that can be executed by the linux/android kernel directly without involving the dalvik-vm which allows you to access internal things. Custom recoverys, for example, were developed using C and the android ndk with a modified ramdisk to execute the recovery binary instead of the dalvik-vm which initializes android.
C++: not really needed, but it supports object oriented programming which makes everything better structured and understandable. The android ndk has some support for c++ header files to work with.
So.. one year isn't enough. There is so much to learn and it's really not easy.. more frustrating
Then finally you can start to work build roms for a specific device, because every device has other hardware components and different ways to do this and that. You need to know and understand them to successfully develop software that runs fine on the specific device.
Click to expand...
Click to collapse
Isn't VB.NET not required to make PC apps to manage phone, like some kind of phone manager or hacker or something like that?
In short I have to learn linux in core level- is that right? They told me, they are going to teach ubuntu. Don't know if they are going to teach in core level. Is there any ebook to learn Linux deeply?
Sure you can use it for developing apps for windows but it doesn't allow you to build native/winapi dynamic link libraries (dll) which can be quite useful. VB. NET also doesn't allow you to build userspace(ring3)/kernelspace(ring0) drivers which is essencial for supporting new hardware.
VB is, in my opinion, only good for building simple apps with a nice user interface. Sure it's quite easy to learn, but you do have not the possibilities like you have with C, C++ or Delphi.
And yea, the internals of linux would be a good start. But also getting used with KDE and GNOME (desktop managers) which both are useable on ubuntu. Ubuntu is also good cause google officially supports building android stuff on it.
Gesendet von meinem LG-P880 mit Tapatalk 2
gordon0001 said:
Sure you can use it for developing apps for windows but it doesn't allow you to build native/winapi dynamic link libraries (dll) which can be quite useful. VB. NET also doesn't allow you to build userspace(ring3)/kernelspace(ring0) drivers which is essencial for supporting new hardware.
VB is, in my opinion, only good for building simple apps with a nice user interface. Sure it's quite easy to learn, but you do have not the possibilities like you have with C, C++ or Delphi.
And yea, the internals of linux would be a good start. But also getting used with KDE and GNOME (desktop managers) which both are useable on ubuntu. Ubuntu is also good cause google officially supports building android stuff on it.
Gesendet von meinem LG-P880 mit Tapatalk 2
Click to expand...
Click to collapse
Thanks for reply but I didn't get the first paragraph. Anyways, what is delphi?
like gordon0001 already said, when you're new to android, start with a ROM, never with a kernel it can make you go crazy
and trust me, i know what i'm talking about
so for the start, i'd suggest you to learn java, maybe experiment with some apps, and then make your own rom.
if you're used to it a bit, you might want to start messing around with kernels. therefor you need C.
but be warned, i cannot be held responsible if you go crazy
simple application, less requirement.
start with examples within the sdk
Sent from my LG-P880 using Tapatalk 2
laufersteppenwolf said:
like gordon0001 already said, when you're new to android, start with a ROM, never with a kernel it can make you go crazy
and trust me, i know what i'm talking about
so for the start, i'd suggest you to learn java, maybe experiment with some apps, and then make your own rom.
if you're used to it a bit, you might want to start messing around with kernels. therefor you need C.
but be warned, i cannot be held responsible if you go crazy
Click to expand...
Click to collapse
I am not saying, I am going to start right away. It will take me one or more years to learn everything. I am just asking, what is required other than java, c and c++?
Also, is there an Ebook, where I can learn (understand) linux? Specifically Ubuntu.
K9998 said:
simple application, less requirement.
start with examples within the sdk
Sent from my LG-P880 using Tapatalk 2
Click to expand...
Click to collapse
I will keep that in mind.
Subhajitdas298 said:
I am not saying, I am going to start right away. It will take me one or more years to learn everything. I am just asking, what is required other than java, c and c++?
Also, is there an Ebook, where I can learn (understand) linux? Specifically Ubuntu.
Click to expand...
Click to collapse
for the building/compiling process, batch wouldn't be that bad
and about ubuntu, i'd suggest learning by doing
it's not really hard. with a few commands you can live with linux quite well
laufersteppenwolf said:
for the building/compiling process, batch wouldn't be that bad
and about ubuntu, i'd suggest learning by doing
it's not really hard. with a few commands you can live with linux quite well
Click to expand...
Click to collapse
I am totally Linux noob. So, someone has to teach me.
Can you tell me how to install ubuntu alongside Windows 7? I want to install it on a blank partition. I have 64 bit downloaded and burnt on a dvd.
just boot the dvd, the GUI will guide you through
still some Qs, tho:
and for partitioning, have you already partitioned your hdd? and what is it's size?
how much RAM do you have?
and which linux have you downloaded/do you want to use?
laufersteppenwolf said:
just boot the dvd, the GUI will guide you through
still some Qs, tho:
and for partitioning, have you already partitioned your hdd? and what is it's size?
how much RAM do you have?
and which linux have you downloaded/do you want to use?
Click to expand...
Click to collapse
Already partitioned. Using for 2 years.
HDD Size - 1 TB.
Partitions (GB) - 97 (Win 7 service pack 1, 32 bit, ram lock removed), 97 (blank, want to use for Linux, ubuntu 13.04 64 bit), 147 (songs, movies etc.), 480 (games and software collection), all that is left (tv recordings and other stuff).
RAM - 6 GB DDR3.
Processor - Intel Core 2 Duo @ 2.93 GHz (overclock to 3.2 GHz).
GPU - ASUS NVIDIA GeForce 210 Silent 1 GB DDR3.
Total graphics ram - 37** MB.
Subhajitdas298 said:
Already partitioned. Using for 2 years.
HDD Size - 1 TB.
Partitions (GB) - 97 (Win 7 service pack 1, 32 bit, ram lock removed), 97 (blank, want to use for Linux, ubuntu 13.04 64 bit), 147 (songs, movies etc.), 480 (games and software collection), all that is left (tv recordings and other stuff).
RAM - 6 GB DDR3.
Processor - Intel Core 2 Duo @ 2.93 GHz (overclock to 3.2 GHz).
GPU - ASUS NVIDIA GeForce 210 Silent 1 GB DDR3.
Total graphics ram - 37** MB.
Click to expand...
Click to collapse
i, for one, would recommend xubuntu. no bloatware, nice UI, pure performance but it is your call for sure
and with 6GB RAM, swap should not be needed (i'm running xubuntu with 4GB RAM, and no need at all for swap )

Knowing more about developing

Please I need help on how to develop an android app
Android Studio is usually the place to start. It's an IDE for building apps.
Download Android Studio & App Tools - Android Developers
Android Studio provides app builders with an integrated development environment (IDE) optimized for Android apps. Download Android Studio today.
developer.android.com
It is possible to build apps just using just the command line.
Use the link above and scroll down to Command line tools only.

Categories

Resources