Using appinventor and am stuck with everything - Android Software Development

I am completely new to coding anything but websites so I figured I try appinventor to build this little app I have wanted for quite some time. I play League of Legends (Leagueoflegends.com) and there is a fan site that has items, stats, and guides which is located at www.LEAGUECRAFT.com . http://i.imgur.com/bZ7ZA.png This image shows what I have so far. I have the champions listed in order (scrolls down 72 champs) as buttons; ex. when clicking akali it launches http://leaguecraft.com/champion/Akali using my android browser. Instead of opening the browser I would like for it to return what is in the guides tab into the app in a mobile friendly version. Looking at the page source I see they have them seperated by "<a href="#champion_tab_2">Guides (71) ", is there a way to pull just that into the app? Maybe even get it to pull just the title and rating? Anything would help at this point, thank you guys!

Sorry I've never used app inventor before, but I play LoL too and i think you should check this link: https://market.android.com/details?id=com.apps.android.lolarmory

Take a look into regular expressions.
Basically, what you need to do is pull the HTML source and then use regular expressions to match that pattern and pull the data that you need.
I personally code in Java, so I'm not exactly sure how to do this in App Inventor.

Number22 said:
I personally code in Java, so I'm not exactly sure how to do this in App Inventor.
Click to expand...
Click to collapse
That was my problem too
Sent from my GT-I5700 using XDA Premium App

Related

Your thoughts on Android App Inventor?

I recently found out (thanks to Cyanogen's Twitter) about Google's Android App Inventor and wanted to see what everyone thought about it? I think it's great in that more apps would theoretically be released, though of questionable quality. But also I'm wondering about the value of development using code, would this become more valuable as a result of laziness on the part of some developers? Or would its value decrease since it's easier to make an application now? I haven't actually used the program yet since I want to gain a firm grasp on actual coding but these questions were in the back of my mind since the invention of things other WYSIWYG eg Web Development.
I'm thinking this is a good thing, you can make apps on the go, for practically anything. It will continually get better, unless it crashes and burns because it floods the market and similar with ultra-****ty programs.
Later on Google will probably release some sort of testing program to run it through the hoops to see if it's good enough, or something like that.
Remember, it's still in beta
great great great, it means idiots like me will be able to solve some of our own niche needs*, that have as yet not be done.
*a special farty sound.
I'm disappointed it's not available for download now. I was all excited reading about it and then realised it's not even out yet.
It can only be a good thing and the app market can easily be changed to filter out the inevitable rubbish it will partly create. However a lot of useful and ingenious apps will also be created that wouldn't have been (like the one I will make).
I'm looking forward to it, there's a few things I want to make that aren't in the marketplace. Just wondering what sort of functionality we will be allowed, if I can make my own task manager/battery monitor widgets for example.
I like the idea too.
Hopefully this doesn't lead to a glutton of bad apps on the market!
Depending on how functional it is, we might never need the market ever again. Half an hour making your own app vs half an hour searching the market and trying half a dozen bloated ad-ridden apps.
Morghus said:
I'm thinking this is a good thing, you can make apps on the go, for practically anything. It will continually get better, unless it crashes and burns because it floods the market and similar with ultra-****ty programs.
Later on Google will probably release some sort of testing program to run it through the hoops to see if it's good enough, or something like that.
Remember, it's still in beta
Click to expand...
Click to collapse
But its already pretty powerful... and bound to get better.
jimlad said:
great great great, it means idiots like me will be able to solve some of our own niche needs*, that have as yet not be done.
*a special farty sound.
Click to expand...
Click to collapse
Yeah... But who knows, Maybe that TINY niche need is something else that someone might want to use and then that ends up bing a profitable app. Not because It makes a ton of dough, but because it was so quick and easy to make.
Biffy said:
I'm disappointed it's not available for download now. I was all excited reading about it and then realised it's not even out yet.
Click to expand...
Click to collapse
Im using it right now.If you read the actual website... there are links to all the tools and how to use them.
saj222 said:
I like the idea too.
Hopefully this doesn't lead to a glutton of bad apps on the market!
Click to expand...
Click to collapse
This is always a potential. With ease of programming comes more apps, and with more apps comes more Bad apps. But if this helps one person make one useful app, its done its job.
I really hope to get good with this, and maybe have alot of community support here... this could very wellbe a powerful tool for noob developers.
IDK though, I wouldn't think anything could ever replace actually typing out code as opposed to using blocks which is what it seems like App Inventor does.
rawdikrik said:
Im using it right now.If you read the actual website... there are links to all the tools and how to use them.
Click to expand...
Click to collapse
Could you be a bit more specific on how you got the final 'my projects' section working?
i have installed everything.. and the final stage it requests my details (which i had previously filled in)
rawdikrik said:
Im using it right now.If you read the actual website... there are links to all the tools and how to use them.
Click to expand...
Click to collapse
When I login I get: "We will be granting access to App Inventor for Android over the coming weeks. Fill out this form (only your Gmail address is required) and we’ll have you building apps soon! While you are waiting feel free to read more about App Inventor and learn how it works."
Have been all over the http://appinventor.googlelabs.com/about/ website and can't find any links to download or use tools. Am in the UK so maybe that is the problem.
Same here with me. Maybe they need to verify our info and then give us the links to download
Biffy said:
When I login I get: "We will be granting access to App Inventor for Android over the coming weeks. Fill out this form (only your Gmail address is required) and we’ll have you building apps soon! While you are waiting feel free to read more about App Inventor and learn how it works."
Have been all over the http://appinventor.googlelabs.com/about/ website and can't find any links to download or use tools. Am in the UK so maybe that is the problem.
Click to expand...
Click to collapse
Its in beta right now, so like most great Google things in their infancy it is invite only.
App inventor looks wicked, reminds me of Visual Basic only useful since it works on platforms besides Windows >
I think this is a progressive idea!
But hope the market stays as clean as possible with QA Apps!
I made a simple app (send an SMS).
- Made it using the app inventor : Apk file takes 1MB and once installed, the apps takes 3.5MB of space!!! (whitch cannot be moved to SD, even with Froyo)
- I made the same app "the normal way" with the android sdk and eclipse : the apk file takes 13KB and the installed app takes 20KB
I heard that when its released, all the apps will not be put on the market right away... in the future... maybe, but that'll prob be after Google makes a filter as to which apps can be put on the market. Not to mention, the Google $25 market upload fee will still apply, so even if Google doesn't filter, it won't completely flood the market.
Sent from my Eris using XDA App
djeanhimself said:
I made a simple app (send an SMS).
- Made it using the app inventor : Apk file takes 1MB and once installed, the apps takes 3.5MB of space!!! (whitch cannot be moved to SD, even with Froyo)
- I made the same app "the normal way" with the android sdk and eclipse : the apk file takes 13KB and the installed app takes 20KB
Click to expand...
Click to collapse
I suppose it's to be expected. As with all tools of this type, you get ease and speed when developing but you also get a huge runtime when compiling.
Dragos
Aint normal IMO...
The compiler knows which objects it has to take in account when building the package.
I mean it's not a big deal to include only what is necessary...
Anyway, that size problem (added to some interface bugs i encountered) makes me believe that this project is far from being usable.
By now, the only use I'd make would be prototyping views on it.
It's in BETA for a reason.

any one got google application inventor.........?

any one got google application inventor ?
i think i have requested thousand times for Google application inventor.....but they didn't respond yet.......
i think they will publish on 2012............
I was sent an invite weeks ago, they will get round to you...
Until it allows icons for apps and market submission ... Its just a bit of fun.
Sent from my HTC Desire using XDA App
I got the acceptance today... it's not an application that you can download... it's web based and runs in an applet type application with a jnlp installer. Personally, I think it might be ok for prototyping... but good luck making anything that is close to advanced with it. It would be easier just to write the code.
i am waiting for my reply.........goooooogle............
I wish I had the mind of a programmer! I want to be able to code and write apps so bad, but I'm more of a visual guy. I do 3d animation. Every time I try to learn programming my brain begins to melt.
DevilDogVIKING said:
I wish I had the mind of a programmer! I want to be able to code and write apps so bad, but I'm more of a visual guy. I do 3d animation. Every time I try to learn programming my brain begins to melt.
Click to expand...
Click to collapse
Agreed! I realllly wanna learn code but it boggles me. This app inventor may not be too advanced, but it'd be fun to tinker with to make small personal apps. Still waiting for my invite lol :impatiently waiting for google to email back:
Sent from my Eris Lightning 3.02
smartsreenath said:
any one got google application inventor ?
i think i have requested thousand times for Google application inventor.....but they didn't respond yet.......
i think they will publish on 2012............
Click to expand...
Click to collapse
Yeah, I just got one yesterday. But as eatmold says you can't use a custom icon on the phone (though that may be possible to do, but the people who know guard the secret - google say its on the list, but knowing them that will be 2012!)
However it is possible to export and import code (not java, some special google stuff) - so people might be able to exchange and share information.
i am a medical student.........for us Google application inventor is a wish come true.............
just think how long Gmail was in beta. still waiting on my invite
Kermode said:
But as eatmold says you can't use a custom icon on the phone
Click to expand...
Click to collapse
Get folder organizer. Might be one word. It allows you to place a widget, with a custom icon, that launches either a folder, or an app. So you'll have a stock app in the app drawer, but at least it'll look nice on your desktop
I asked for my invite second day. Still no invite
Where can i sign up to this?
perevers said:
Where can i sign up to this?
Click to expand...
Click to collapse
i cant post links yet... bummer...
https: //services.google.com/fb/forms/appinventorinterest/
just got it
Took about 3 to 4 weeks. I rather enjoy it. Going to school for computer science and its great for learning basics. Its block dropping but the blocks say the code so if you try its a great teacher. N1
Im still waiting on my invite, perhaps its location based on the invites?
it may be location based of usage based. I applied a month ago and nothing yet. I even put detail about the app i wanted to create in my application to them.
mallman said:
it may be location based of usage based. I applied a month ago and nothing yet. I even put detail about the app i wanted to create in my application to them.
Click to expand...
Click to collapse
I agree. It's been almost two months since I signed up and still nothing. Everyone who's gotten it so far, what state are you in?
Sent from my Eris
I got the invite on Aug. 18th and I am in Maryland.
David
I got mine. I live in Virginia.
It's pretty neat, but I've been having issues with VoiceToText not waiting until my TextToSpeech is finished running.
Like, I'm trying to create a voice driven menu for hands free use so I ask a question and then want it to pause for an answer... Instead it starts talking and the VoiceToText box comes up at the same time. Frustrating...
Darnit! It seems like you are all on the east coast... but so am i lol. I'm in CT, maybe ill see it soon!
Sent from my Eris
Got mine Aug 20. In Colorado.

Facebook via Android

Hi,
First of much love to Android and may it be the best (and better than Apple)
I use Facebook additively and I installed Facebook for Android via Market.
Every time I post a status update or a check in using my HD2 I get " via mobile " instead of "via Andoid"
I would like to have "via Android" so everyone can see who great and versatile Android is.
I have uninstalled the Facebook app that came with the rom (HD2 NDT GINGER ROM Version 16.0) and downloaded and installed Facebook for Android via Market.
But this did not fix the problem so I checked my Facebook account settings and there wasn't anything there.
Does anyone know how to get "via Andriod" on Facebook?
P.s. I know you can change status via 3rd party apps and I prefer make the app do what it was designed to do.
FYI the android facebook app sucks ass even though everyone uses it...including me...
pteradactyle said:
FYI the android facebook app sucks ass even though everyone uses it...including me...
Click to expand...
Click to collapse
I'm glad you're having fun with it. Well try the XDA app (which includes places) Windows app is even worse.
try using xda premium app and i won't hurt to have a look at ur settings in ur facebook account
Ty5982 said:
try using xda premium app and i won't hurt to have a look at ur settings in ur facebook account
Click to expand...
Click to collapse
I have used the xda app but it clearly says "via xda" I would like via Android as I did installed it.
Account Settings are ok and there's nothing there to suggest there is a problem.
In fact, there is no suggestion I have Facebook for Android installed which is totally strange.
xda_apprentice said:
I have used the xda app but it clearly says "via xda" I would like via Android as I did installed it.
Account Settings are ok and there's nothing there to suggest there is a problem.
In fact, there is no suggestion I have Facebook for Android installed which is totally strange.
Click to expand...
Click to collapse
A reply from Facebook via a letter (make of it what you will)
" Thank you for submitting this bug report and taking time to help us improve the site. Although we are unable to reply to every bug report at this time, we may contact you for more details as we troubleshoot the issue you reported.
If you have not already done so, make sure you are using the latest version of your device application.
Screen shots often help our team diagnose problems that users are seeing. To submit a screenshot, please attach your screenshot in a reply to this email. You can take a screen shot on an iPhone by hitting the Home button and the Power button at the same time. This screen shot will be saved in your Photos.
Finally, please note that Facebook cannot provide any support for applications built by external developers. Currently, the Facebook for iPhone and Facebook for Android applications are built by Facebook. If you continue experiencing issues with a mobile device application built by external developers, we recommend contacting the developer. You can do this by going to the application’s page and clicking the "Contact Developer" link on the left hand side of the page.
Thanks for contacting Facebook,
The Facebook Team"
Basically, this letter means XDA developers should run Facebook as they are complete idiots.
I know it used to say via Android instead of via mobile but it seems there was an update of the app at one point and it disappeared. To test if you want you could install an older version of Facebook on your phone by finding it's apk file online. This was done by Facebook though but at the rate their app is developing and the quality it is, it shouldn't come as a surprise to us that they make stupid mistakes. Facebook is a huge company that could easily make a better Android app and I don't understand why they don't care... I encourage you do give them a 1 star rating on the Android market and write what you think of their app there.
Sent from my HD2 using XDA App
rainor94 said:
I know it used to say via Android instead of via mobile but it seems there was an update of the app at one point and it disappeared. To test if you want you could install an older version of Facebook on your phone by finding it's apk file online. This was done by Facebook though but at the rate their app is developing and the quality it is, it shouldn't come as a surprise to us that they make stupid mistakes. Facebook is a huge company that could easily make a better Android app and I don't understand why they don't care... I encourage you do give them a 1 star rating on the Android market and write what you think of their app there.
Sent from my HD2 using XDA App
Click to expand...
Click to collapse
I have given them a 1 star and think many XDA users should do the same!! Mark Suckerberg (yes I know how to spell his name!!) needs to get into action and pull his finger out of his butt !!
pteradactyle said:
FYI the android facebook app sucks ass even though everyone uses it...including me...
Click to expand...
Click to collapse
I second that one. FB app for Android is huge pile of bull ****. I'm using it myself and the number of bugs is enormous.
I remember I was seeing "via Android" signatures before but they must have changed something so now it's gone.
"Suckerberg" Nice one!
dcabro said:
I second that one. FB app for Android is huge pile of bull ****. I'm using it myself and the number of bugs is enormous.
I remember I was seeing "via Android" signatures before but they must have changed something so now it's gone.
"Suckerberg" Nice one!
Click to expand...
Click to collapse
It's really weird that on my wall it clearly states "installed Facebook for Android"
So I have no idea what's going on!
I was running Windows 6.5 stock but Windows Mobile app is totally useless and had no Places feature. And then, I installed XDA app but that was not that impressive and gave a "XDA Windows Mobile" tag. As much as I like XDA I don't want it as a tag on all my posts.

Android and iOS Viruses

So a friend of mine looks at 'particular video's' on his phone, and goes on 'particular sites'. He sent me an MMS of a screenshot of his phone. He uses an iPhone 5. I myself have a Nexus 4, and am wondering whether there's any chance of viruses being sent etc? i.e. from his phone to mine, because I looked at the pic he sent me. The pic was a screenshot of a text convo he had with me a while back.
No there is not. The only way to get a virus is the permissions in a modded apk. Like if your trying to download a game and one of the permissions says send calls and text to people, this may cost you money, then you know that's a virus. But you can't really screw up your phone like that.
Sent from my Nexus 4 using xda premium
So there's definitely no chance any viruses or anything can be on my phone? My phone is clean?
Pictures, no
Image files, and plain text are not mediums viruses can be hidden in. So as long as you don't download anything he sends you thats .apk format and install it you are fine. Now cookies, etc phones still get those. Best thing to do is not look.
Good luck. Computer is a better place to do that kind of thing...
Sent from my Nexus 4 using xda premium
tory13579 said:
Pictures, no
Image files, and plain text are not mediums viruses can be hidden in. So as long as you don't download anything he sends you thats .apk format and install it you are fine. Now cookies, etc phones still get those. Best thing to do is not look.
Good luck. Computer is a better place to do that kind of thing...
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
Actually I have personally seen Image files (JPEG's) which had evil java script appended to them (ads on Pirate Bay).
MP3 files can also have evil code appended to them as well.
However, I don't believe Android would be able to execute the code outside of a web browser.
SpookyTunes said:
Actually I have personally seen Image files (JPEG's) which had evil java script appended to them (ads on Pirate Bay).
MP3 files can also have evil code appended to them as well.
However, I don't believe Android would be able to execute the code outside of a web browser.
Click to expand...
Click to collapse
It's possible to execute such code if the music player/gallery is vulnerable to certain exploits, but it's very unlikely.
Also, android itself is very secure.
Most "viruses" you read about were installed by the user himself. They are just legit apps with "too much" permissions that behave maliciously but most of them don't use any kind of exploit.
tory13579 said:
Pictures, no
Image files, and plain text are not mediums viruses can be hidden in. So as long as you don't download anything he sends you thats .apk format and install it you are fine. Now cookies, etc phones still get those. Best thing to do is not look.
Good luck. Computer is a better place to do that kind of thing...
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
You are quite wrong here. These media are files and there is no way of knowing what they contain if received from an unknown and unsolicited source.

Experienced Coder, Android Noob

I have been a Java coder for about eight years now, and am curious about getting into Android app development.
I am winding if there are any tutorials that just dive into actually making apps besides your basic Hello World app like the Android Developers one does. More useful stuff, like fragments and such, that are actually going to be practical to use and teach you more than just how to make a button retrieve and send text.
Any ideas?
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
Well if u say u noe Java then I suggest you go to the devloper abdroid website ...
Its a pretty decent website and understandable if you know Java...
Gud Luck !
drinfernoo said:
I have been a Java coder for about eight years now, and am curious about getting into Android app development.
I am winding if there are any tutorials that just dive into actually making apps besides your basic Hello World app like the Android Developers one does. More useful stuff, like fragments and such, that are actually going to be practical to use and teach you more than just how to make a button retrieve and send text.
Any ideas?
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
Click to expand...
Click to collapse
I would say go and watch thenewboston's later tutorials and TwistedEquations has some pretty good things with fragments and some other more updated android stuff features. Other than those two things I would just think about what you want to do and look it up on StackOverflow since they pretty much cover every question you might have. You can also just go to the android reference page to find out what methods are available most are pretty self explanatory.
Also you should probably update to Android Studio, if you haven't already because it seems like Google is going for some pretty deep integration with it that will make life much easier.
Hope this helps you out
I really like Vogella's tutorials: http://www.vogella.com/tutorials.html
Acela1230 said:
Also you should probably update to Android Studio, if you haven't already because it seems like Google is going for some pretty deep integration with it that will make life much easier.
Hope this helps you out
Click to expand...
Click to collapse
Using Android Studio since last 1 day or so...Didnt like it much..Seems to be more complex than Eclipse. Also able to open only one project in one window, no project manager like used to be in eclipse where we can manage all projects simultaneously.
Also the cltr + shift + f shortcut to arrange the format of XML not working... Frankly didnt find any advantage over Eclipse till now... But I'm still in getting used to it because I know I have to develop apps on it only because I always like to work on latest stuff...
If you have any tips or feedback then I would really appreciate it.
Thanks
Hey I am struggling to get started, other than hello world I haven't done anything yet. I think I should use the developer.android for learning (because it's official). But still please tell me what to do there. Should I start with the api guides and read all of em one by one, or should I start with the training tab on the website, but then there are many things there that I don't understand well. Idk I'm confused. There's even design part apart from development, should I start with that or that should come after development? Help me with a good ide too, eclipse isn't that great and android studio seems laggy, I hear intellij is the best option right now (and android studio later when it is completely developed).
I had completed my java tutorials way back, I don't think I have a problem with java.
Sent from my HTC Desire S using xda app-developers app
I would not start with the official site. I spent some money on a great book (which is just available in German).
The official site is more difficult to understand than many other tutorials like the ones by Vogella.
I was thinking of grabbing Android Studio, but I'll stick with eclipse for now until it's a little more developed. I started on eclipse, so I'm familiar with it.
It seems like after that first Hello World tutorial, all the official ones are "fluff". Do u really need to know the lifecycle right up front, even before I learn how to actually make an app?
Sure, I get that the lifecycle is important, but if all you have is a lifecycle, with no app on top, that doesn't make sense.
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
WHOOPS
I myself started 7 months ago... The official guide is a valuable resource... But readability is horrible... I typically dig around it... Then look up implementations and further explanations else where... Usually stackoverflow
Taptalked u see ... əəs n pəʞlɐʇdɐʇ
drinfernoo said:
I was thinking of grabbing Android Studio, but I'll stick with eclipse for now until it's a little more developed. I started on eclipse, so I'm familiar with it.
It seems like after that first Hello World tutorial, all the official ones are "fluff". Do u really need to know the lifecycle right up front, even before I learn how to actually make an app?
Sure, I get that the lifecycle is important, but if all you have is a lifecycle, with no app on top, that doesn't make sense.
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
Click to expand...
Click to collapse
It is important but you will not need it at the beginning for very simple apps as long as you do not want that everything is shown properly after an orientation change. Start programming and learn it by doing.
drinfernoo said:
I was thinking of grabbing Android Studio, but I'll stick with eclipse for now until it's a little more developed. I started on eclipse, so I'm familiar with it.
It seems like after that first Hello World tutorial, all the official ones are "fluff". Do u really need to know the lifecycle right up front, even before I learn how to actually make an app?
Sure, I get that the lifecycle is important, but if all you have is a lifecycle, with no app on top, that doesn't make sense.
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
Click to expand...
Click to collapse
Understanding the Activity Lifecycle is must. You can watch its tutorial available on Youtube by Marakana...It will explain you everything needed in 1 single video...rest you will learn with experience.
nikwen said:
It is important but you will not need it at the beginning for very simple apps as long as you do not want that everything is shown properly after an orientation change. Start programming and learn it by doing.
Click to expand...
Click to collapse
coolbud012 said:
Understanding the Activity Lifecycle is must. You can watch its tutorial available on Youtube by Marakana...It will explain you everything needed in 1 single video...rest you will learn with experience.
Click to expand...
Click to collapse
This is what I meant I understand that it is an integral part of making apps work as intended and expected, but it seems like it's something I'm going to have to learn to utilize sometime later down the road of development, instead of right straight up front.
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
Actually you should learn that pretty early. Its easy to understand
Think of it like a video game:
On create is when the game is first started
On pause is when you pause the game
On resume is when you unpause it
On stop is when you turn the game off
These are the main methods of the activity life cycle you need to know. You would setup your activity in the on create. In the on pause you would save variables the user entered (android saves certain things automatically). In the on resume you would call those variables back and refill the fields with them. On stop you would close anything that may be running (alarm, music, video) as not to take up resources from the system.
This is important because android pauses activities when orientation is changed so the user would lose all their variables if you don't save them even if they accidentally went into landscape from portrait.
Sent from my Nexus 7 using XDA Premium HD app
Acela1230 said:
Actually you should learn that pretty early. Its easy to understand
Think of it like a video game:
On create is when the game is first started
On pause is when you pause the game
On resume is when you unpause it
On stop is when you turn the game off
These are the main methods of the activity life cycle you need to know. You would setup your activity in the on create. In the on pause you would save variables the user entered (android saves certain things automatically). In the on resume you would call those variables back and refill the fields with them. On stop you would close anything that may be running (alarm, music, video) as not to take up resources from the system.
This is important because android pauses activities when orientation is changed so the user would lose all their variables if you don't save them even if they accidentally went into landscape from portrait.
Sent from my Nexus 7 using XDA Premium HD app
Click to expand...
Click to collapse
Good explanation. :good:
For handling orientation changes check the onSaveInstanceState method.
jetx2x said:
I myself started 7 months ago... The official guide is a valuable resource... But readability is horrible... I typically dig around it... Then look up implementations and further explanations else where... Usually stackoverflow
Taptalked u see ... əəs n pəʞlɐʇdɐʇ
Click to expand...
Click to collapse
Cool Tapatalk sig you have there
Taptalked u see .. əəs n pəʞlɐʇdɐʇ
Acela1230 said:
Actually you should learn that pretty early. Its easy to understand
Think of it like a video game:
On create is when the game is first started
On pause is when you pause the game
On resume is when you unpause it
On stop is when you turn the game off
These are the main methods of the activity life cycle you need to know. You would setup your activity in the on create. In the on pause you would save variables the user entered (android saves certain things automatically). In the on resume you would call those variables back and refill the fields with them. On stop you would close anything that may be running (alarm, music, video) as not to take up resources from the system.
This is important because android pauses activities when orientation is changed so the user would lose all their variables if you don't save them even if they accidentally went into landscape from portrait.
Sent from my Nexus 7 using XDA Premium HD app
Click to expand...
Click to collapse
Understood. My point is that the official tutorial spends more time showing off exactly what you posted than actually showing how to make an app complicated enough to take advantage of it.
EDIT: And I pretty much understand the concept and use of having the correct lifecycle, just looking for more now.
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
drinfernoo said:
Understood. My point is that the official tutorial spends more time showing off exactly what you posted than actually showing how to make an app complicated enough to take advantage of it.
Click to expand...
Click to collapse
Yea the official tutorial is really just to show you how to use eclipse with the SDK.
The rest is kinda left to you to do. Its a matter of thinking what you want to do and then doing it. Most tutorials just explain how to use the methods provided in the api. If you had an idea of what kinda app you wanted to create perhaps we could point you in the right direction.
I recommend adding api demos from the sample apps to see how to do most things in android. Since you said you know java reading through the code in this shouldn't be to hard to understand.
Sent from my Nexus 7 using XDA Premium HD app
Acela1230 said:
I recommend adding api demos from the sample apps to see how to do most things in android. Since you said you know java reading through the code in this shouldn't be to hard to understand.
My biggest hurdle is I get confused in the XML to Java connection and changeover
Sent from my Nexus 7 using XDA Premium HD app
Click to expand...
Click to collapse
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
Zatta said:
Cool Tapatalk sig you have there
Taptalked u see .. əəs n pəʞlɐʇdɐʇ
Click to expand...
Click to collapse
I saw it... And couldn't resist... Lol
Taptalked u see ... əəs n pəʞlɐʇdɐʇ

Categories

Resources