[Q] New dev'r need's a push :) - Android Software Development

Hi Everyone,
I am a wicked 3D modeler, wish I could say the same about being an Android developer.
I have a question...is it hard to show me a working example (a 2D object roaming a map that has a background image as the map) that I can load in Eclipse that will run in the AVD 2.2 so I can read the source and get my head to wrap around it?
The only code I have gotten a good grip on is PHP/MySQL/B3D , so new code is something I can easily (hopefully) adapt to.
So, a step 1 from loading it into Eclipse, all the way to seeing it in the emulator would be greatly appreciated.
If this is a tall order I appologize. Rememeber, I am new to Android, but so far loving the heck out of it!!!
Best Wishes

Check out developer.android.com and start with the hello world tutorial. After that I'd check out the lunar lander and/or jet boy demos

If you want to do only 2d games, head to http://www.andengine.org/
It's a free, really easy to use and fast (hardware opengl) 2D game engine.
Scan the barcode on the project's website to grab a example app showing off the engine's capabilities.
The engine doesn't have much of a documentation, but it's open-source and you can download the source code for demo application where each feature is demonstrated in a separate file with comments, so you can figure out how most things work just by reading through this code.
There are some tutorials around the project's forum including setting up the ecplipse for the first time. And in case you can't figure out something from the source code and tutorials, there are a lot of really helpful people over there so you can ask away.
The cool thing it that the engine takes care of most android-specific tasks for you, and you can just concentrate on programming your game/demo After you get a feel for it, you can try moving on to generic android examples and tutorials to implement more features and learn more about inner workings of an android application.
Most people would probably suggest doing it the other way around, but in my opinion it's much easier to get into coding if you can actually see some cool results, like animations, particle effects, physics-enabled games/demos instead of just a boring notepad app

I have done the "Hello World" from the web, it worked great.
The reason I asked for what I did is because I noticed that alot of examples have things missing to keep people from taking thier hard work. So I need something intact/working to learn from.
I looked at the andEngine and first thing I ask is what is the scan thing?
I appreciate the responses guys, thank you.

LuvinAndroid said:
I looked at the andEngine and first thing I ask is what is the scan thing?
Click to expand...
Click to collapse
Oh, sorry, i forgot you're new to android and might not have used the barcode scanner
There's a 2d barcode on the andengine website:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Just download an app called "barcode scanner" from the market, launch it and point your phone at this barcode. This is usually easier than typing an url manually on the phone
Or just search for "andengine examples" in the market and install it to see what andengine has to offer.

I do not own an Android phone, I am basically hoping the SDK and Eclipse will be all I need for a working title.
I did the Snake and Jetboy examples. The Jetboy booted but did not play well, and the snake one loads into the AVD but the snake does nothing.
Both examples tell me I have an error in my R.java file (this line- setContentView(R.layout.main); ) it fails and keeps me from running it anymore.
And below in the text box it said this in red "DeviceMonitor]Sending jdwp tracking request failed!"
Any ideas?

Well, it looks like my Norton Firewall was blocking it or something, when I turned it off then the error went away.
I have been running the snake demo all day and wow, this is going to be fun working on the Android dev side.
I noticed something I do not understand. I was assuming (I know my fault) that the collision on the border sprites were based on "this box hit that one" but it's not, it's based on the borders of the screen via math as I'm sure you all know already.
How do I add like a small island (the little sprite boxes) to it for fun and tell the game to read coll based on one image hitting another one?
thanx in advance for anyone willing to ponder this for me many thanks.

Related

Camera Timer

Does anybody know of a simple camera timer that I can install on my Xda2? I've searched around but not really come up with anything...
Thanks in advance
Here is one.
Unzip the attached file and copy cameratimer.exe to \Windows\Start Menu\Programs on your XDAII.
Cheers
Jamie
Just wanted to check now some people have downloaded it, is it working ok?
I have hard coded the camera app to \Windows\Camera.exe but wasn't sure if the windows directory has a different name in other countries.
Cheers
Jamie
Works nicely for me. T-Mobile ROM 1.60. Also works for video if you have the camera set to that mode. Cool.
Thanks, a neat little utility.
Excellent! Works like a charm, many thanks!
i actually posted this topic a while back; asking if there was indeed a camera timer app. nice to see that there IS one! cheers
compatibility
does this work with other pocket pcs that can take photos?
I doubt it will work on non Himalaya based devices. Unless they use the same IA camera app and it must be located in \Windows\Camera.exe
Jamie
excellent little utility Thanks
now all we need is a custom-built tripod...
Jamie,
Thanks a lot for the nifty little application. If you have sometime on your hands can you consider adding a commandline parameter option? I would love to be able to call your application with a call like
CameraTimer /t5 /Quiet
and get it to do its magic quietly. The /Quiet parameter would mean it would exit the Camera application after taking the picture. Can this be done?
Thanks in advance. Best Regards
Ok, a new version. This one will run as the old one or you can put a number on the command line which will cause it to run in "Quiet" mode.
eg "Camera.exe 10"
Jamie
Sorry didn't read that last post properly.
You can now add a "q" to make it exit the camera app after taking a picture eg:-
"CameraTimer.exe" will run with UI
"CameraTimer.exe 10" will run without UI
"CameraTimer.exe 10 q" will run without UI and exit the camera app after it's done.
Jamie
Simple is great! Thanx!
Jamie,
This is amazing!!! Thanks for responding so fast! Most appreciated.
Best Regards
Thanks... and more!
Hello and thanks for this great little program!
Since you've been very responsive to previous suggestions and you may still have all the development environment configured for this little tool, I thought I would try to request new features too! Here are my ideas:
- Display a static text field in the program dialog box that shows your name, the program version and a summary of the command line options. This should bring you the fame you deserve for writing this tool... and also help people to remember how to use the "unattended" mode!
- add an option (both GUI and command line) to loop <X> number of times (or maybe until closed?) sleeping for the <delay> seconds and taking a new picture. This would make the program great for a sort of continuous picture log, where it could be used to take shots every <delay> seconds for the whole day. I could also be useful if you are alone and trying to take your own picture: set the device to repeatedly take one shot a second, start this and just calmly walk over, try different poses, lure unsuspecting strangers into the frame, whatever... You can later simply keep only the good shots.
Just some ideas, I hope you won't mind people being so demanding!
;-)
The time delay and extended photo shoot option is certainly a good idea but then I guess you will need to take the cradle with you to support the unit while it takes the shots.
I've now added the loop option and fixed a couple of bugs.
You can download the latest version at http://www.coderz.co.uk/cameratimer.html
@lostgweilo, sorry only the UI version supports looping
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
THANKS!
Finally, this is the proof I was waiting for. Folks, the internet actually works and human nature is fundamentally good.
All these years of waiting, ah it was all worth it. Thanks again.

Create a program that changes a register value

I'm pretty new to developing programs for PocketPC's, but I really would like to create my own little program
I already have Visual Studio 5 and Windows Mobile 5.0 SDK.
What I would like to do is select an option in my program. When selected it should change a register value.
For example:
====
Choose one of the following options:
CAPS indicator of the keyboard?
|O| On |O| Off
Save - Cancel
===
This is a small example of what I would like to do. What the program does behind the scenes is very simple actually:
When selected ‘yes’ it should change the register value to:
\HKCU\ControlPanel\Keyb\EnableIndicator -> DWORD ‘1’.
When selected ‘no’ it should change the register value to:
\HKCU\ControlPanel\Keyb\EnableIndicator -> DWORD ‘0’.
When you press ‘Cancel’ I want to undo all changes.
When ‘Save’ is pressed, it should save all selected items and exit the program.
I think when I know how to do one item it’s not to hard to add more after that.
Hope anyone can help me with this one![/b]
mccune: what language are you writing in?
Have you had a look at any books on pocket pc (or windows) programming in relation to the registry?
V
TnX for the fast reply Vijay555.
I've played a little with Visual Basic at school.
I'm writing the program with an English version of Visual Studio 5.0. After I finish it I wan't to create it for the Dutch users also..
Been looking around for some tutorials on how to create a simple program, no luck so far.. ..most tutorials are to advanced!
This is what I have so far
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
[edit]
As you can see I want to use checkboxes instead of radio buttons.
[/edit]
If you think you might have a word of advice about different tutorials you're more than welcome. I would really like to finish this little app, and know what I'm doing! :lol:
McCune,
That's why I asked. I've never formally learnt to program, and played with VB in my spare time to knock up programs and things. However, since getting my Magician in August or so, I've got increasingly into tweaking and programming for it. As such, I've had to learn c++, and I consider myself an enthusiastic beginner.
However, the one mistake that I would warn anyone not to make, is to learn how to practically program, without knowing what you're doing.
Learning c++, I started playing with tutorials and taking apart examples, which was how I "learnt" VB. However, going VB to C++ is a big step, and it looks like you might be doing some .net? But I think that was the wrong way to learn.
My advice: grab a book, work through basics to understand the symantics and theory behind the language, get to know just that much (Ie not much, but enough!), and then throw yourself in like a madman. But really, trying to learn c++ through tutorials, without learning very basic foundations behind it, put me back quite a while. .net might be easier to pick up if you know VB, but certain system specific foundations are essential.
Sorry to sound preachy, because I really know far too little to preach to anyone, but this is merely my advice from an enthusiastic hacker, who likes to take shortcuts: learning a new platfrom and language requires that you do learn a little foundation stuff first, so a few longcuts, and you'll reap myriad rewards!
Have a read through the big post here for some very useful books:
http://forum.xda-developers.com/viewtopic.php?t=37884&highlight=vijay555
V
Just found out that Nicodekker posted a similar program on this forum.. ..Hope he can help me out here
No need to post anymore in this thread, because nicodekker's thread is running much better :lol:
TnX for the advice vijay555, I'm reading my *ss of at the moment Keep up the good work!
Can you tell (link) where is that program. I'am interested too!
Thanks
It's on this forum
Link:
Check it out

MoDaCo - Automatic Application Update Check (AppToDate?)

Paul over at MoDaCo is starting to get some interest in a new application he's developing - basically it involves developers providing some XML with their installer that ties in with some similar XML on the applications' download page on their web server.
When a new version is released, the XML on the download page is updated, "AppToDate" will check the download server and you'll be able to see that a new version is available.......
AstraWare, Developer One and SK-Tools have already expressed an interest in making their software work with "AppToDate".......what are you waiting for!?!?!
I'll stop babbling, this is what Paul posted over at MoDaCo "AppToDate"
I have a dream! OK, so it's not quite as ground breaking as some other dreams of our time, but it's a dream none the less. It goes something like this...
I have a whole bunch of software on my device. Probably 15 apps at least. I also write software, which is downloaded by a fair few people, both commercial and free. I like to ensure that my software on my device is up to date with the latest versions, and it's a right pain in the ****. Not only that, I'd like my end users to have the latest versions installed to get the best possible experience... and to facilitate that I have to write a custom update checker into each of my applications. Fine for big apps, not great for quickly rustled up apps or tweaks.
But there could be another way.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
What if you could have an application that lived on the device, that wasn't tied to any one application or vendor, that could check for updates for everything installed on your device? IMHO, that would be awesome. A dream. For such an approach to work, you'd need a few things...
Someone to write the update application, and to develop it. A community project perhaps?
The update application MUST be FREE for end users and developers
The update application MUST be easy for developers to plug in to
The application needs to be used by end users!
Freeware developers need to use the application!
Commercial developers need to use the application!
Now here comes the audience participation part - if you are a user, would you like to see such an application? If you are a developer - either freeware or commercial - would you like - and would you use - such an application? Make your voice heard here, and if there's an appetite for this, let's make it happen! I'll be updating this topic to list developers who would like to be involved.
Oh, I forgot to mention... I've basically written the update application! It's simple, has plenty of scope for future development, can update itself (of course) and in order to be used by a 3rd party, just needs an XML file dropped into the updater directory from your install CAB, and a current version XML on your server!
Beautiful! The response to this topic will determine how much time I spend on getting it production ready
P
Click to expand...
Click to collapse
Lend your support to this - with all the updates for various applications flying around, it's an almost impossible task to know if you're running the latest and greatest version - hopefully it will grow into a REALLY useful tool.
Thanks for listening
Mark.

Android-style Cards (Like on the Palm Pre)

I know everyone doesn't like to copy other operating system with their neat features such as the iphone multi-touch and the icon docks and stuff.
But, i really feel that android can become more successful in multi-tasking but adding what the Palm Pre has which are cards, which are separate windows that encase a certain application, in which you can swipe between each card to run that app, since Android does allow background running apps this can help android users to be more efficient in their multi-tasking and everything else.
Wonder if theres a way android devs can develop code for this to be impliment or does this have to come from the andriod development core to write the files and kernel for this?
any feedback / comments on this is welcome
It would probably be in a form of an application (such as ahome, dxtop, etc), because doing that kind of work to the kernal would be more tedious lol.
P.S. the lakers game made me cry. lol
andonnguyen said:
It would probably be in a form of an application (such as ahome, dxtop, etc), because doing that kind of work to the kernal would be more tedious lol.
P.S. the lakers game made me cry. lol
Click to expand...
Click to collapse
lets hope devs can start working on this i would pay money for this app!!
and omg i know :/ failed.
but i like i told everyone else its all about money so they just wanted to extend this series more blah.
If anything, Sweeterhome should be able to implement this.. although i don't think it would run as smooth..
johnnylicious said:
I know everyone doesn't like to copy other operating system with their neat features such as the iphone multi-touch and the icon docks and stuff.
But, i really feel that android can become more successful in multi-tasking but adding what the Palm Pre has which are cards, which are separate windows that encase a certain application, in which you can swipe between each card to run that app, since Android does allow background running apps this can help android users to be more efficient in their multi-tasking and everything else.
Wonder if theres a way android devs can develop code for this to be impliment or does this have to come from the andriod development core to write the files and kernel for this?
any feedback / comments on this is welcome
Click to expand...
Click to collapse
Doesn't holding down the home button basically already do this?
[email protected] said:
Doesn't holding down the home button basically already do this?
Click to expand...
Click to collapse
Holding the home button just displays the last used apps, regardless of whether or not they are running/open.
anyone else on this?
Of course I'm with you. I think that with Android 2.0 supporting OpenGL ES 2.0, we can see full use of Tegra's 3D UI with its 3D windows showing running applications. Holding down the Home button would take you to this view...
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I have a Facebook group petition to support this new Gphone design:
http://www.facebook.com/group.php?gid=41818671785&ref=ts

[Library] Color picker (Open Source)

Hi guys,
I don't know if this is the right forum, so please forgive me if it isn't
During the development of Minimalistic Text I came across the lack of a good color picker view for Android.
In the first attempt I used the one from the samples (The "Ring").
The second attempt has been to integrate this one and add the possibility to change the alpha channel.
In the end I decided to build my own.
To let you use this color picker and - if you like to and are able to - improve it, I've extracted it into an Android library project and made it open source.
It's hosted at Google Code:
http://code.google.com/p/devmil-android-color-picker/
The code has almost no code comments. I will add them if I have time.
At the moment it is localized to German and English.
Please let me know what you think and write me an email if you want to contribute.
Thanks
Devmil
Here are some screenshots (in German):
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I guess you never found hxxp://code.google.com/p/color-picker-view/ which has been around for a while now. It got an optional alpha slider too.
But on the other hand it doesn't support HEX input or RGB sliders like yours.
afzkl said:
I guess you never found hxxp://code.google.com/p/color-picker-view/ which has been around for a while now. It got an optional alpha slider too.
But on the other hand it doesn't support HEX input or RGB sliders like yours.
Click to expand...
Click to collapse
no, I haven't found this one. But the one I have used before is quite similar. I added the alpha slider to it.
The main difference for the new selector is the choice between the three input methods.
Working on project created ColorPickerPreference.
Shared it here github.com/attenzione/android-ColorPickerPreference (sorry, can't post links)
Why not RGB sliders or HEX input field?
because regular users will not use them. this is our project group opinion
OP Thanks, this is just what i was looking for. I wanted a color picker where you could choose a color like in photoshop but also input exact values for the more advanced users. Is it alright if i take a look at the code and see if I can get it all on one tab. Ill probably just end up using your stock one though.
Smasher816 said:
OP Thanks, this is just what i was looking for. I wanted a color picker where you could choose a color like in photoshop but also input exact values for the more advanced users. Is it alright if i take a look at the code and see if I can get it all on one tab. Ill probably just end up using your stock one though.
Click to expand...
Click to collapse
Yes, of course! This is why it is open source
Devmil
Thank you!
When I was programming for WM in c# I had occasion to need a colour picker, but never really found one and couldn't be bothered to create it myself (the program was intensive enough by itself not to want to add something like this to it). Now I have transitioned to android I'm sure that I'll need this at one point. so thank you for sharing this! I might never need it (although I'm pretty sure I will use it), but if and when I do, I'll be damn thankful that you put in the effort!
So again, thanks!
-edit-
I'm having some trouble getting the code...seems I need some kind of version control software, but I wouldn't know which one (Mercurial?). Could you add a source download (.zip or .rar) for me to download so I could use (link/include) it in Eclipse? Or am I really being a noob at this (I have successfully used other libraries in c#, so I'm not a total noob ).
On further inspection: I can access the sourcecode, but I guess I just don't know code.google.com AT ALL. I can create a server side clone (don't want to do that, I think), and I can go through all the files in the source and copy/paste to local files, but do I really have to do that to integrate this? Could someone tell me (or point to a tutorial) the best way to get all the code local so I cn use it? Or is the best way just to check out the source online (source file by source file) and copy/paste it into my own project as and how I need it?
Sorry for being a noob, but as I mentioned, I come from c# and have zero experience with code.google.com. I know enough to get everything into my Eclipse project through copy/paste, but there must be a better way!
PS: on winxp sp3, eclipse 3.6 (android 2.2, targetting 1.6, but that's beside the point, if I'm at all in the right ballpark )
Awesome library! I hacked it up a bit, adding a recent colors list, turning it into a activity, and added it to my app https://market.android.com/details?id=com.rj.pixelesque
Amazing Work
Thanks so much for the color picker, this improved the function of my app if a big way. Thanks YOU!
can i use this in my paid app??
Yes, you can use it for whatever you like. Including paid apps.
a stupid question but how to include it in my code??
You can download the source code using a Mercurial client.
I have pushed a compiled library into the downloads section. So if you don't want to have the source code and build it on your own you can simply use the library.
thnx for the help and the color picker
I've just checked the download section, but there is no compiled library. AND is there the chance to have a sample app, how to use it simply?
noob question
op , how to use this as library after downloading ?

Categories

Resources