[Q] What exactly do I need to develop for the Android platform? - Xperia Play Q&A, Help & Troubleshooting

I'm sure things will sail smoothly once I can just get to the programming environment... thing is, that's a trial in itself.
From what I gather, all I'll need is the SDK+ADT plugin for Eclipse... and Eclipse Helios.
...yet they don't exactly make it clear cut as to which of all this stuff I actually need to have a compatible Helios.

Depends on what you want to develop
ROMs? Kernels? Apps/Games?
I'm trying my hand at Unity 3D (program used on Shadowgun). Looks simple enough but is hard as hell to get anything working. Most I could do is a couple of platforms and a stationary character :S
I'll upload the APK and you can have a look. Its nothing special though. I'm gonna try and do some more work on it though and get a working build done
Im hopeless at using Winrar so its 2 seperate Rar files. Unpack first one then unpack second one when prompted.

CTU_Loscombe said:
Depends on what you want to develop
ROMs? Kernels? Apps/Games?
Click to expand...
Click to collapse
Apps/Games.

Eclipse is a modular IDE, with lots of plugins to develop in many different languages. You can download any of those packages, since you'll have to download the Android ADT Plugin as an external repository later anyways. Thing is, those prepackaged Eclipse installers set you up with the latest kit for your platform of choice so you can start coding. It would be little wonder if they added an "Eclipse for Android Developers" in the future.
Btw the latest Eclipse, which is the one you're downloading from the Eclipse website, is Eclipse Indigo. Beware that Eclipse is a huge beast, it needs lots of resources and the interface is quite a bit convoluted.
Swypesation

TLRtheory said:
Apps/Games.
Click to expand...
Click to collapse
For games I'd say Unity but its quite expensive. I torrented it for testing purposes as i know Im never gonna make anything that works.
Eclipse is good for app development providing you are good at Java
http://www.appinventor.mit.edu/
This is a good little tool to mess about with as well. Allows you to make apps within your browser

Logseman said:
Eclipse is a modular IDE, with lots of plugins to develop in many different languages. You can download any of those packages, since you'll have to download the Android ADT Plugin as an external repository later anyways. Thing is, those prepackaged Eclipse installers set you up with the latest kit for your platform of choice so you can start coding. It would be little wonder if they added an "Eclipse for Android Developers" in the future.
Btw the latest Eclipse, which is the one you're downloading from the Eclipse website, is Eclipse Indigo. Beware that Eclipse is a huge beast, it needs lots of resources and the interface is quite a bit convoluted.
Swypesation
Click to expand...
Click to collapse
"Convoluted" seems to be a good overall word to describe this whole experience.
When I can't just easily get to a programming environment, they should have a more direct option.

Related

Market Repository

android appears essentually a linux distro aimed at phones (maybe i am wrong?). is it possible to add a repository to the market? say for apps that are only ment for certain phones. What i mean to say is:
Could we have a repository for kaiser phones where apps are designed for or modified for kiaser?
Most apps run fine it seems to me, what exactly are you getting at?
chambo622 said:
Most apps run fine it seems to me, what exactly are you getting at?
Click to expand...
Click to collapse
for example on debian. There is a normal repository where you can find all the free programs that the debian community recommend. However since the debian devs tend to be open source nazis (they only include things that are open source) people commonly add ubuntu repositories (where things are allowed that arnt open source, like flash10).
In relation to android:
while alot of the apps run great on my phone, many apps die or dont work at all. I have seen, on this forum, requests on this forum for certain apps, that dont work, to be ported. which leads me to believe that its possible to modify those programs available in market to work for our phones.
In conclusion:
I propose the idea of creating a server which would host the android programs that have been modified to work for certain phones. ex: kaiser. On my kaiser i could browse regular apps on the android market oooor check the kaiser repository for apps that are ment for kaiser and are therefor garunteed to work.
maybe its not possible, maybe its just a bad idea. But i thought i would throw the idea out there.
(please let me know if its still not clear. Im kinda hungover and only got a few hours sleep).
also if this is possible i would be willing to help out with programming the app and i may be able to get a server going for it. (although im new to java so i would definitly need help)

[Q] Dreamweaver and phonegap + development

Last week I've gotten a HTC sensation and decided to start developing some web-like applications for it. As because I don't like Eclipse, I went with Dreamweaver CS5.5 and the included phonegap framework.
I build and emulate my application just fine, it works as expected in emulator, the .apk gets created, but when I try to do adb install haluza.apk, I get failure
Code:
Failure [INSTALL_FAILED_ALREADY_EXISTS]
which is obviously incorrect, as before the haluza.apk wasn't ever installed before. aswell adb uninstall haluza.apk reports only "Fail"
Are there some reserved words that shouldn't be used as application/site name ?
I'm more or less convinced it might be some dreamweaver thing, but am not sure
And forums are empty regarding this topic :s
Or the best solution is simply to install Eclipse and go with pure java programming ?
You try renaming it and trying an install?
Also is it just eclipse you don't like or is it java as well? Cause i cant stand eclipse either, but Intellij is a way better ide for java and their Android community edition is free
From something awesome
yep, I tried 3 different names.
Weeeell I've been doing some java at the Uni, but I don't like its appealing strictness. PHP = <3 ... But anyhow there's quite a lot demand for java developers so I guess I'll try to move on to it.
And I hate eclipse. I don't know why, it just appears SO SLOW, that it's unusable. Dreamweaver / VS.NET are like rockets compared to it.

[Q] Converting PC game to Xperia Play

Hello everyone. I was wondering if there is any way to convert the popular game, "I wanna be the guy" to the Xperia Play. Or for that matter, any Multimedia Fusion game. Since the game was made in Multimedia Fusion 2, and the source code was released, AND there is an option to export the game into android, it should be possible, right? If anyone knows how to do this, and will be willing to work on it with me, then please reply to this thread. Thank you.
The android export is only a placeholder-text at this point, it's still being worked on
Hmmm, well there is a java export. Maybe we could somehow import that into eclipse and then edit the buttons.
bballchace said:
Hmmm, well there is a java export. Maybe we could somehow import that into eclipse and then edit the buttons.
Click to expand...
Click to collapse
Its nowhere near that simple. While Android programs are programmed in "Java" theres way more behind the scenes with libraries involved and other parts of the Android SDK.
It could be done, but it is a staggering amount of work.
Rogue Leader said:
Its nowhere near that simple. While Android programs are programmed in "Java" theres way more behind the scenes with libraries involved and other parts of the Android SDK.
It could be done, but it is a staggering amount of work.
Click to expand...
Click to collapse
well, since thats basically out of the question, what if i got an html5 source code of a similar game that was made in gamemaker? would that be possible to port onto the Xperia Play? Sorry about me being such a noob, I am not familiar with the Android SDK, and only know C++
bballchace said:
well, since thats basically out of the question, what if i got an android export of a similar game that was made in gamemaker? would that be possible to port onto the Xperia Play? Sorry about me being such a newbie, I am not familiar with the Android SDK, and only know C++
Click to expand...
Click to collapse
Creating a game using game maker will only give you the binaries not the source, you cant just use it to make an android or iOS game.
Honestly the easiest way to make a game for android would be to create it in flash and then put in in some kind of wrapper to make it launch natively. The proper way to make a game would be to learn how to create one using C++ which will probably take a good few months before you could even create something basic. It depends how fast you are at learning new things.
However if you are going to learn programming I highly recommend starting somewhere easier like VB or Java to at least understand the general concept of programming. (preferably VB is you are a total newbie)
bballchace said:
well, since thats basically out of the question, what if i got an html5 source code of a similar game that was made in gamemaker? would that be possible to port onto the Xperia Play? Sorry about me being such a noob, I am not familiar with the Android SDK, and only know C++
Click to expand...
Click to collapse
That would be even more work than converting the Java program. There is no simple way to "Port" games from one platform to another unless there is an emulator (and they don't make PC emulators for Android, and even if they did it would probably run like ****).
Android games are programmed in Java, however the Android SDK has libraries to make it work for every possible function of an Android Phone. If you don't know Java, you won't get very far in making anything work on Android. There are also special libraries for the Xperia Play you will need to download and then program the code into the game to recognize the gamepad controls.
If you really want to do this I would go ahead and learn Java, make a few programs and then tackle the game. Its going to be quite the project, but you'll definitely learn a lot.

[APP] Lemon v1.3.0.1

Lemon
MODERN BROWSING
FEATURED
Massive Overhaul - completely rewritten to optimize the code and unify the overall interface
OTA Updates - updates require little to no user interaction
Security - hide and lock the browser with the touch of a button
Privacy - browsing history is only stored locally and can even be automatically deleted on exit
Auto Complete - suggests words depending on your history
Screenshot - nothing special, but you may take HD screenshots right within the browser
Notepad - notes that save automagically
Open Source - the source has now been released
Click to expand...
Click to collapse
NEW
Privileges Fixed - no longer runs needs to run in administrator mode thanks to @SixSixSevenSeven
Click to expand...
Click to collapse
BUGS
Outdated Browser Component - this browser is based off IE7 on some computers
Mishandles Links - links that open in a new window or tab will most likely open in your default browser
Click to expand...
Click to collapse
Lemon has been abandoned for quite some time now and I have removed the screenshots and download links. I am considering coming back to this project in the near future when I have time to put Windows on my MacBook. Until then, however, you may play with the source.
Source // Website
Maybe post some screenshots, or possibly a download?
netham45 said:
Maybe post some screenshots, or possibly a download?
Click to expand...
Click to collapse
Thank you for the recommendations Just uploaded 3 screenshots and added a download link towards the bottom.
Nice start. No go on RT.
cx1 said:
Nice start. No go on RT.
Click to expand...
Click to collapse
I wonder why this is not working on the RT.. I wish I had this device to test some things on. Anyways, this build was focused on 4.0 .NET framework made in visual studio 2012 for windows 8 Desktop. Thanks for trying.
EDIT: Problem is with the installer, download the ZIP below it and use that. I will try to find a fix for the installer. Sorry for the inconvenience.
mellowdev said:
I wonder why this is not working on the RT.. I wish I had this device to test some things on. Anyways, this build was focused on 4.0 .NET framework made in visual studio 2012 for windows 8 Desktop. Thanks for trying.
Click to expand...
Click to collapse
Try targeting 4.5 for Windows RT.
netham45 said:
Try targeting 4.5 for Windows RT.
Click to expand...
Click to collapse
Just updated to .NET 4.5
Nope will not run on RT unless I'm doing something wrong?
THEBIG360 said:
Nope will not run on RT unless I'm doing something wrong?
Click to expand...
Click to collapse
hmm, any errors being displayed? Or just not opening?
EDIT: Problem is with the installer, download the ZIP below it and use that. I will try to find a fix for the installer. Sorry for the inconvenience.
You would need to target "Any CPU" in the .NET code, and recompile any third-party x86 libraries that you are using to target ARM, and it would probably work then. Most (although not all) of the system libraries on Win8 are also on Windows RT, and (at least in the case of .NET libraries), the ones that aren't can sometimes be brought over from a Win8 box anyhow.
GoodDayToDie said:
You would need to target "Any CPU" in the .NET code, and recompile any third-party x86 libraries that you are using to target ARM, and it would probably work then. Most (although not all) of the system libraries on Win8 are also on Windows RT, and (at least in the case of .NET libraries), the ones that aren't can sometimes be brought over from a Win8 box anyhow.
Click to expand...
Click to collapse
At the moment, I am trying to get geckoFX 15 and xulrunner 19 added to the project so I do not have to use the default WebBrowser component given in Visual Studio. If you would like, I could send you the source and maybe you could help porting to Windows RT and adding geckoFX? Btw after v1.0 this will be Open Source to all Thanks for all the support guys.
Works now thanks, scrolling is a little hitchy how ever its a great start. On another note would it be possible to make the onscreen keyboard auto pop up?
Will the flash be optimized, the browser is really fast. Its just the flash side of things that is buggy.
Seems to bypass the Flash whitelist on Windows RT. That's quite handy.
Re: [APP] Lemon Browser v0.9.7.3
I can surely attempt the auto pop up on screen keyboard, also the glitchy scrolling will be fixed soon. Thanks
Sent from my Nexus 4 using xda premium
Just FYI: a web browser requiring Administrator to run is absolutely unacceptable. Browsers should run with extremely limited permissions (lower than standard user, ideally) rather than elevated permissions. I fixed this by hand-editing the .EXE file's embedded manifest to run AsInvoker (rather than RequireAdministrator). You should change the manifest in VS. Preferably, the whole thing would run in a low-IL sandbox the way IE does, and/or use some other sandboxing technique.
Also, there's little reason, especially for RT-targeted builds, to use Debug unless you include the source files and expect people to use them when reporting bugs. Release builds are typically smaller and faster.
Finally, could you get this to use a somewhat less awful rendering engine than IE7? I don't mind using Trident in general, but IE7 is archaic and awful. How do you justify "faster than Chrome" on a browser that can't even pass Acid2, much less run a modern speed benchmark? Gecko would be awesome, though I don't believe anybody has managed to port it to RT yet so that would be x86-only at first.
There are other things I'd like to see, ranging from simple UI conventions (double-clicking the tab bar, tapping Alt to show the menu bar, etc.) to some significant security issues (loading mixed content - that is, HTTP content on an HTTPS site - is a potentially serious risk).
Re: [APP] Lemon Browser v0.9.7.3
I appreciate the feedback, about the debug, i honestly did not even think about that, its just much faster to update using the debug folder. I will make it the release build next time. Next - about the admin permissions - Unfortunately this is needed to enable the temporary download of version.txt (allows OTA updates). And I was not planning on targeting the RT at all. I simply made this on my windows 8 laptop and released to the public for however they would like. I am now working on a 3D FPS though and will be releasing the code to this very shortly. And for the IE7 subject, I tried using firefox component but it does not allow the "LoadComplete" sub. Simply put, I do not know how to do 'if web page loaded' do this. I need this feature so i can load favicons etc. Please understand that this was made < 1 week ago. I highly appreciate all the comments though because I can not even begin testing all of these. Plus with school and other activities I do not expext this to be a huge project. Just simply a fun project (focused on gui) to add to my projects. Thanks again
Sent from my Nexus 4 using xda premium
No worries on the Debug/Release, just a tip.
The admin thing, though... that's a serious problem. If the problem is just downloading a file, download it to the local application data folder instead of the install directory. If auto-updating is desired, make a separate updater that runs as Admin, and have the browser launch the updater program when it detects an update.
That said, though, admin is only needed if the browser is "installed" to a location where Admin is required to write. Programs installed in (for example) the user profile don't require this. In fact, on machines where the user *can't* get Admin (think about computers at a school, library, or office), the fact that it can install and run without requiring admin is a major advantage.
I understand that this is a side project for you, and I applaud you for hobby programming and sharing it with us, that's fantastic to see. I also do quite like the GUI, although I find it a bit bare-bones at the moment. Additionally, you getting it to work on RT is fantastic. However... I cannot in good conscience recommend using a web browser that sets the state of environment security back by nearly seven years. The web is an extremely hostile "place" and we've learned many lessons over the years. one of the critical ones is that web browsers are simply too easy to attack for them to be trusted; the only safe way to use one is to assume it will be compromised, and run it in a suitable contained environment. Microsoft did his with the IE7 Protected Mode on Vista betas in 2006, but even on XP it was possible to run IE as a non-Admin.
Re: [APP] Lemon Browser v0.9.7.3
I will admit chrome will always be my favorite browser Just wanted to throw something visually appealing together though after seeing all the horribly designed ones on youtube lol. If anyone would like the source just email me. The code is (slightly cluttered) but OCD friendly. everything labeled and named properly. If someone would like the source, i recommend also downloading the android holo icons from their site. That is what I am currently using and this allows identical pre-made light / dark icons.
Sent from my Nexus 4 using xda premium
Hello !
really thank for this build ! :good:
A question:
Can you integrate a download manager which allow us to download files with screen off but which avoid the complet stand-by state of the tablet during the download ?
Because with IE it's impossible to download something with the Surface screen OFF.
It could be a really cool feature, and the only browser which allow that ! :highfive:
@+
*********_
Edit:
Oh......
Your browser yet intagrate this feature !
Cool... Now I can download big files with screen Off !
I love you
samco08 said:
Hello !
really thank for this build ! :good:
...
Cool... Now I can download big files with screen Off !
I love you
Click to expand...
Click to collapse
Thanks! I appreciate that aha. Major update (kinda lol) will be released soon. Have to work on Mango Tools first (I might toss a thread up on this tool) but this can be found on my site mellowdev.net It just allows you to easily perform ADB commands on android phone. Anyways right after this I will work on v0.9.8! Hoping to add lots of cool, unique features to give this browser an edge. I know that speed means a lot and I have received many complaints on using the IE7 component. However my focus at the moment is to add features. Web browsing for most is just type in words and search. I want this to be so much more. So anyways aha thanks again. Love the support here!

android 2.1 app dev environment

i find that i prefer using my nst more & more.. in fact, my swanky but gas-guzzling tablet has been all but discarded, except for watching movies in bed.
i am going to find open-source apps, and recompile the latest sources specifically for android 2.1 eclair, as i find that most devs and google market are removing eclair from their horizons. i am particularly interested in small-sized efficient apps. i do use quite a lot of them, but mostly very old versions.
for this purpose, i want to setup a eclair-dedicated dev environment. i am happy to share all apps that i compile & use myself. hopefully, many others might find useful too.
where i need your help is with advice on how best to setup a tiny/efficient (not bloatware) dev environment, bearing in mind that it will only be used to recompile apks for eclair on b&w eink. i notice that some of you are very efficient in creating extremely small apk, and this is what i want to do.
platform:
on my debian wheezy host, i installed virtual box and created a debian wheezy minimal guest. virtualbox guest additions has significantly altered my perception of virtualbox. i had been using kvm previously.
pre-requisites:
install openjdk-7-jdk
dev environment:
google lists android studio as the only official one. it is huge, bulky, cumbersome bloatware imho. i think this is targetted at the new kids on the block not used to terminal environments. but this seems to be my only option for now, till i hear from you lot of some simpler dev tools.
my requirement is very simple, all i need to do is, change some code somewhere and compile.
so i downloaded android studio, and unpacked it in a directory reserved for my android development. loading it is like watching windows booting up! and then it downloads android sdk, which is another huge bloatware, particularly since it insists on downloading all the crap-lollipop-ware which i have no intention of using.
so my dev environment is almost ready! if anyone has suggestions or tips, or want more detailed instructions/commands, please comment..
Don't forget that the NST only runs 2.1 Éclair apps, as its OS is 2.1 Éclair.
This sounds like a great project - I also prefer my NTG (in fact, I'm on it right now!).
veloo said:
for this purpose, i want to setup a froyo-dedicated dev environment.
Click to expand...
Click to collapse
Check requirements for compiling Eclair/Froyo itself, SDK version doesn't matter since it supports all API versions.
Personally I'd use a virtual machine with oldest supported 32-bit *buntu release- better chance that required packages versions will be present in official repos.
EDIT:
This may help, discussion was related to kernel compilation however there should be link to quick tutorial about CM6 (Froyo) compilation- http://forum.samdroid.net/f28/setup-kernel-build-environment-using-virtualbox-windows-7-64-bit-4007/ (sorry if 10-sec advertisement pops up)
thanks folks.. my bad! indeed it is eclair, and not froyo. i have updated my op above.
gen_scheisskopf said:
EDIT:
This may help, discussion was related to kernel compilation however there should be link to quick tutorial about CM6 (Froyo) compilation- http://forum.samdroid.net/f28/setup-kernel-build-environment-using-virtualbox-windows-7-64-bit-4007/ (sorry if 10-sec advertisement pops up)
Click to expand...
Click to collapse
that discussion seems to be about iphone development
veloo said:
that discussion seems to be about iphone development
Click to expand...
Click to collapse
Nope, it's for Samsung i5700 Spica (latest official firmware- 2.1)
all that talk about crosstool toolchain arm-iphone-linux-gnueabi got me confused.. sorry!
No problem. Back then we had to use whatever was available and compiling Crosstool-NG was easier option than to get precompiled Android toolchain.
Anyway check links in the thread, there were tutorials about compiling Froyo from scratch (note: samdroid's wiki is down) and IIRC Eclair had about the same requirements
thx but my objective atmo is not compiling froyo or eclair or any roms. it is purely to compile apps for use on the nook.
I'm aware of that. IMO link provided can help you in preparation of build environment
At work I use Android Studio to build apps, but at home I still just use Notepad++, the Windows tools in the Android SDK and the (ancient) Borland make.
I probably will migrate to Android Studio at home eventually.
Still, coding by hand you learn a lot about things.
In the old days for text editing very large data files I used VE & Vedit plus the old Norton commander file manager, I could select any sort of columns within a text file in VE, hex, plus grep commands. Or ms-word macros with VB APIs if needed too. But these were for huge files from publishers. For most things though I had been using Notepad++ or UltraEdit for years. In recent past I hardly use them, instead I use Sublime Text Editor for almost everything, I like the recent portable version which launches fast. Also if I'm debugging live with breakpoints & watches & changing code in PhpStorm, the open instance of Sublime updates code as I work in PhpStorm. I tried a few modern text editors in the same league which supposedly have bested Sublime, but I keep going back to it for most coding or text. Apart from php and various text formats, Sublime handles & color codes for other types too like html, JavaScript etc. Interesting discussion on modern text/code editors & IDEs:
https://www.youtube.com/watch?v=5K-TalfLFas
Hey a nice effort to build apps optimized for Nook Simple Touch.
Renate, Marspeople, have already created some nifty apps for our device.
How about you update the OP with links to their apps(with due credit to them and express permission for the same) besides sharing your own collection of NST optimised apps ?
I'm totally noob at this, My little dream it's develope a clock app for the nook but I'm stuck in "hello world" when I try to compile my app in Android Sudio 2.1.3 it throws this error: "uses-sdk:minSdkVersion 7 cannot be smaller than version 9 declared in library" Can somebody help me?
I
Use SDK suite ver. 9 and higher or declare in library, that you're using ver.7.
Necropost, I know, but do you hhave links to posts by the people mentioned, with the apps they've developed?
aiamuzz said:
Hey a nice effort to build apps optimized for Nook Simple Touch.
Renate, Marspeople, have already created some nifty apps for our device.
How about you update the OP with links to their apps(with due credit to them and express permission for the same) besides sharing your own collection of NST optimised apps ?
Click to expand...
Click to collapse

Categories

Resources