android layouts(ExpandableListViewer) - Android Software Development

Hallo,
I'm trying for hours now, to create an working application witch the ExpandableListLayout. Everything I try end's witch a "Force Close"....
Does anyone have an example about this Layout, and the onChildClick Event?
Or an free ebook whitch explains the Adapters?...
i'm really good @c#, but android/java and Eclipse is a real challenge
Thanks,
tactic
expandablelistlayout looks like this: http://1.bp.blogspot.com/_K2nCeh0MHDY/S3clj66gH3I/AAAAAAAABkI/nFNRFogY_e4/s320/elistcbox.JPG

Related

Absuluut newbie, help on eMbedded C++ 4.0 please

Hello,
I'm a Visual Basic programmer for some time now.
Made some useful stuff they tell me.
Used C++ (Borland) about 10 years ago, so that’s a bit rusty.
Now I've ordered a Qtek 9090, and I would want to develop some software for it to. So I downloaded and installed the SDK and eMbedded C++ 4.0.
I thought, I start out on the emulator......
I can't even get my own "Hello world" program to work........
I have downloaded a "Hello World" program which I stepped through in debug mode. I have NO idea what they are doing there.
It contains about 20 files, hundreds lines of code, just to put "Hello World" on the screen of the emulator.
And I hoped that:
Code:
#include <stdio.h>
main()
{
printf("Hello, world!\n");
return 0;
}
pleased in a form, would do the trick………
The help in the IDE does not work.
Re-install it tell's me. I have done so, but the help function does not work.
Where is the "visual" part in the embedded Visual C++?
How do I place forms and buttons e.g.?
I have no idea where to start now.
Searched a lot of forum's for starters-help, but I can not find anything that helps me on my way. I just hope I've not become stupid.....
Would somebody please help me on my way?
Can I wholeheartedly recommend the book "Programming Windows CE", by Douglas Boling? It's normally cheap (or the second edition is) on ebay and it really is good.
Failing that, you're writing a console based application for something that uses a windowing environment by default, so you'll either have to change what you're linking to, or have a winmain that makes use of a graphical UI rather than stdout. Call MessageBox perhaps? This is all made *so* much easier with a working help system that you need to get that working.
You can manage resource files visually, so it really is Visual development. Plus, for free, it's an excellent development tool. Well, it isn't bad.
The best advice I can give is to get your machine set up correctly with EVC2002, or EVC 4 with SP4 and the appropriate SDKs, and take it from there.
Good luck starting out.
Cheers,
Nick.
chiark said:
Can I wholeheartedly recommend the book "Programming Windows CE", by Douglas Boling?
Click to expand...
Click to collapse
Thanx. I'm going to order that book.
Failing that, you're writing a console based application for something that uses a windowing environment by default, so you'll either have to change what you're linking to, or have a winmain that makes use of a graphical UI rather than stdout. Call MessageBox perhaps?
Click to expand...
Click to collapse
Well, yes. I know. Like I sayed, I usualy work with VB. It was just me, trying to oversimplify things.
What I ment to express is that I'm pretty supprised I still have to write the message-loop and the main-loop and the jsadgkh-loop and....
I just hoped to put up some forms and attach code to it. But maybe I'm missing the clue on this.
This is all made *so* much easier with a working help system that you need to get that working.
Click to expand...
Click to collapse
I have set it up on an other machine yesterday, and there the help works.
Today I'm going to make use of it.
You can manage resource files visually, so it really is Visual development. Plus, for free, it's an excellent development tool. Well, it isn't bad.
Click to expand...
Click to collapse
Well.... That part, the visual part, I don't see yet, but like I sayed, I'm going to work throuhg the help, now that I've got that working.
And a 'free' tool. Well, that's allways nice. I think it is good for us, AND good for them. The more software there will be on the market, the better the devices sell.
The best advice I can give is to get your machine set up correctly with EVC2002, or EVC 4 with SP4 and the appropriate SDKs, and take it from there.
Good luck starting out.
Cheers,
Nick.
Click to expand...
Click to collapse
Thanks for you tips.
Rens
Dox, drop me a PM, I've got an old copy of the book you can have if it would help
Re the message loop stuff, you've indeed got options. You can either use the message loop approach hitting the API directly, or you can opt for using MFC to abstract the stuff away from you.
Personally, I prefer the straightforwardness of using the API rather than MFC. By the time you've written one application, you've got the bulk of the next . I also write for older machines, and the overhead of MFC is a consideration, but on the XDA it really isn't.
If the application is simple, it can all be handled by a DialogBox. You will need to write a DialogProc to handle the appropriate messages, but the need to register a window class, get messages off the queue etc is removed from you. Similarly, you can have multiple pages on a single dialog box using propertypages.
If you did want to write a console application, you can do this but you need to change the linker options within EVC.
Have a good look at the samples, too, there's some real good stuff in there.
Cheers, and good luck
Nick.

The phone shaver - fun

Hello folks,
a friend of my had a funny idea, putting a shaving sound on his phone and playing it. His phone is the MDA Mini and it really looks cool.
Now don't you think it would be fun to write a little programm which plays such a sound and shows the picture of a shaver on the screen. so that it could be assigned to a hardware button.
http://www.sounddogs.com/previews/36/mp3/292083_SOUNDDOGS_SH.mp3
Could be a nice laugh.
Unfortunatelly I don't know anything about programming....
Or is this just to complicated to write and therefore waste of time.
Cheers
Alex
Wouldn't it be more accurate to make it vibrate, perhaps show the Philishave interface on the screen, and make you more attractive to women/men/animals/vegetables?
V
vijay555 said:
Wouldn't it be more accurate to make it vibrate, perhaps show the Philishave interface on the screen, and make you more attractive to women/men/animals/vegetables?
V
Click to expand...
Click to collapse
haha...that's gonna be real funny. I'm definitely installing it if anyone manage to write it.
Well I think the vibrate does not quite give it the shaver effect. Since it sounds not like a shaver. Listen to the sound:
http://www.sounddogs.com/previews/36...UNDDOGS_SH.mp3
I already have it on my Hermes using Mediaplayer.
Anybody for programming yet?
Cheers
Alex
I thought this simple project would be a great exercise to use for learning c++, so I bought a book, DLd eVC++ and all the other M$ crap they say you need only to have it crash when trying to create a new project..
So, then I DLd CEGCC to see if it would work, and I managed to compile the "Hello world" program, but when I tried a simple program to load a bitmap and ran into all these missing dependencies (or whatever the errors were).
Well, I didn't manage to get started in c++ because of the lack of information on the differences between the win32 api and wince api, Frankly, I'm freaking lost. In alot of forums I checked out people would ask questions only to be answered with stuff like "Why do you want to do that?"
I'll probably come back to the C++ after it simmers in my mind for awhile.
but, I don't like to give up, and don't mind compromising, so I threw together this package that uses PIE and some simple web pages to do the Pocket Shaver thing.
At least I tried LOL. It's kinda crude, but what the heck, it's for fun anyway.
Joeman
BTW: if anyone knows how to write a C++ program that loads a bitmap and will compile in CEGCC, I'd be very pleased if you'd share the source code...

[Q] Need help for a app book programming.

Greeting Devs
I´m working for a while with Android on the HD2.
I´m looking for a reasonable app which i can look formulas and tables in the area of mechatronics.
As I had to realize, I have found nothing clever.
So I have come to the idea, to built on my own a APK
I have no idea of programming experience in Java, however, and programmable logic controllers and other little-known scripting language and consider myself quite capable of adapting a presentation app to my wishes and to compilers.
Okay.....
Now we come to the point can someone of you recommend a type of modular or prefabricated app in which I have a book which includes a search function in which I can then search for key words and the book is also scrollable?
A few important properties:
--->Must be in the landscape are absolutely
--->Editable bookmarks
At this point I would like to thank you in advance for any possible answer, and I wish you all a wonderful weekend.
With friendly greetings
TylerDurben

Where to start in Android application development?

Hello everybody, long time lurker, first time poster. I'm posting to ask about where to get started in developing Android applications? I have half a degree in computer science, am familiar with coding, and work in Android software QA, but I'm trying to get my skillset up to the next level and actually start developing applications on Android. Is there any specific books or literature I should read to get me started on my journey? I'm also a long time IT guy on both Windows and Unix-based systems, so I'm by no means computer illiterate. I'm also a long time phone modder as I've been tweaking Android phones since the original G1 running 1.0. Thanks in advance!
Take a look at the Android Developer guide. It has samples and tutorials. If you google, there are also several free PDFs on the subject.
A good Java book will also help a lot. Just start to write a few trial apps and you will get there quickly!
The best place to learn for me, is android web page:
Here you have everything to start:
http://developer.android.com/guide/index.html
And to set up the environment for developing:
http://developer.android.com/sdk/index.html
If you want to learn from the scratch, the links I posted are your point. You can also take a look to the tutorials:
http://developer.android.com/intl/es...llo-world.html
You can also start with java, if you want.. I reccomend you take a look to this:
http://download.oracle.com/javase/tu...ava/index.html
http://download.oracle.com/javase/tutorial/
and start from Java SE 6 (http://download.oracle.com/javase/6/docs/)
http://www.oracle.com/technetwork/ja...sp-135888.html
I don't know what your college classes are like for CS, but you should have the basics of programming, why not start writing some Android apps?
Start with the basic "Hello World". Get used to working with main.xml and TextViews, EditViews, ListViews, Buttons and Listeners. Android is mostly JAVA, some Android-specific operations and your xml files.
Take some of your CS 101 type programs and try to write them on Android. The more programs you write, the more you learn.
Try to learn something new everyday and in no time at all you'll be impressed with how far you have come.
Rootstonian said:
I don't know what your college classes are like for CS, but you should have the basics of programming, why not start writing some Android apps?
Start with the basic "Hello World". Get used to working with main.xml and TextViews, EditViews, ListViews, Buttons and Listeners. Android is mostly JAVA, some Android-specific operations and your xml files.
Take some of your CS 101 type programs and try to write them on Android. The more programs you write, the more you learn.
Try to learn something new everyday and in no time at all you'll be impressed with how far you have come.
Click to expand...
Click to collapse
Yes this is really a good advice
Just start writting little programs and you will go up soon
You could use the sample code that comes with the sdk, and start with different things: First, layout, xml and the like. You could then start with some othe things, like services, broadcast receivers, content providers, to get the feel of them. And finally, work with the hardware: Internet (wifi or 3g), bluetooth..
Hey guys, Sorry to get off Track but I've been trying to Complete my ROM for Everyone that's Currently using it. Anyways... Reading All the Posts in this Thread it seems to me that there Definitely are some Well-Seasoned Veteran Developers here, so Forgive Me but I have to ask, Is there Anyone that can maybe Help assist me with getting FlashLite Working on my Rom.... Please?
The link to my Rom Thread is in my Signature... and my phone is a (CDMA) Sprint Hero!
Thanx in Advance!!
*Sent on My*
Fast as its Ever Been....
"Sprint" Hero.... Running My, *ExEnHeroC* Rom, w/Kifno's Twist, Also The XDA-BLUE.apk!! "Page 10" of My Thread!!
http://forum.xda-developers.com/showthread.php?t=957867
http://www.megaupload.com/?d=WTMLMK6M
http://www.mediafire.com/?bb1axugm0bw7oro
http://m.youtube.com/index?desktop_uri=/&gl=US#/profile?user=PMGRANDS
At Barnes and Noble there is a book called Android App Development in 24 Hours. It is a freaking great book. Helped me a lot when I started. It breaks down the chapters in to hours with exercises and explanations. Being familiar with Java fundamentals would be good, but not necessary. The first couple hours(chapters) explains the a general overview of the history of the OS and helps you build your first app. My favorite part of the book is how it teaches you to build and app piece by piece over the rest of the chapters adding new features each hour. So, by the end you have and app with quite a bit of features that work and you actually understand how and why. At the end, you have an app that has a lot of Android features as well as knowledge of how they work and can be used. It doesn't go into the more advanced features, but it is well worth the money for beginners. I still use it as a reference because of the easy to understand instructions. Sometimes, the Internet guides assume you have been using Java for 10 years and skip how and why they are doing something. And even then I doubt every veteran Java programmer remembers everything. I am half asleep so forgive any grammar errors.
Ken
Sent from my iPhone with the bigger Gee Bees.
http://www.youtube.com/watch?v=SVZ1P35xgNQ
Really good tutorial for the first basic steps. In terms of installing eclipse/java and hello world. He continues with his tutorial in part 2, part 3 and so on.
Android/fruItphone app. idea needs help...
If there is anyone who has knowledge on building apps for Android, I would be extremely interested to share with them an idea for an app. I'd hope this app would be able to work on that other fruIt based dumbphone, too.
Well, there is planty of developers out here I'm one of them (thought not the smartest ) so, if you want to share the knowledge, feel free to PM me

[Q] Kivy and android wear ?

Doc is scarce on that subject, anyone already tried this ?
If affirmative, please link to examples. I'd like to make watchfaces but Java is a PITA for me, the syntax makes my eyes bleed.
I don't want to use tools like facer I'd like to get my hands dirty, but not with java...
I'd start with adb-sideloading one of the sample APKs.

Categories

Resources