Hello everyone,
I am trying to create my first app.
For now (what I will call phase 1), I just want to display a picture (jpeg) and play a sound (mp3).
I have later phases planned out (for example phase 2, click the picture and the sound replays).
I not have written an app before, and have only done basic HTML coding.
I have downloaded the Android SDK and Eclipse and that is all setup.
I've been google-ing, trying to find examples close to what I want to do, but it always seems like the pages I find are for more complete apps than what I want to do for now.
Any suggestions on where to look for examples?
thanks
Phase 1
Do the following steps-
1)Define an ImageView in XML and show required code. (Do look at the documentation at the Android developer website)
2) Use Audio managers... Google it.
I also recommend searching question sites before posting here. It's more likely you'll get answers there since your asking a noob question.
Phase 2
1) Instead of ImageView use ImageBotton.
Read how to use image button and you'll get the rest.
Nobody here will provide you with ready made code. Sorry if I'm rude but that's true.
Hope I answered your query.
Please give a thanks if you think this post helped you!
Sent from my Nexus 4 using XDA Premium 4 Mobile App .
Thanks boggartfly - I did try searching before posting but the results are always something more advanced or different from what I'm looking for.
And of course I'm not looking for someone to write the code for me, that would defeat the purpose of this exercise
Just PM me if you need help. @chitownjeff
Please give a thanks if you think this post helped you!
Sent from my Nexus 4 using XDA Premium 4 Mobile App .
Related
Hello All,
Next semester is my final semester at college (I'm finally graduating in May ) and I have been wanting to develop an App for my final Senior Project.
So I wanted to get some app ideas from you guys, something useful to develop.
Thanks
how about this:
Create an app that holds a picture for a calendar event, when this app is run, I want to be able to make a photo, and post it in my agenda.
Think flyers and posters! I'm getting tired of the fact theres no app out there that can do this. I've wanted this for 5 years now!
You would make my day!
Sent from my GT-I9000 using XDA App
I'd like to see some form of dedicated forum browser or plugin that can take the information from a message board like this one and make it easier to view on a mobile. I know there's an app that does something like that already but that requires a plugin for the forum and I'm refusing to pay for an app that will only read boards with that plugin.
If it can display mobile sites in a way that they're meant to be viewed that'd also be good (have a look at mobile.bcfc.com in various mobile browsers).
Thanks for the ideas guys, but I might have found a great idea. I'll be doing a little more research on it.
Thanks
Outlook Sync app for Android without going through the cloud!
A content management system client that can be hooked to any enterprise CMS. You can add support for popular ones and user can pick one during setup.
Heres an idea....
http://forum.xda-developers.com/showthread.php?t=819367
I am a recent Graduate of computer science. I have basic knowledge of Java. I have to quickly make my hands dirty developing android apps. There is very limited time for the deadline.
Can any body suggest the quickest and fastest way to learn Android and start developing apps.
Install sdk set up everything then jump into the samples until you understand then lol.
Sent from my Nexus One using XDA App
Thanks...for the reply
I have done all sdk and Eclipse installations.....Any sources where I can plunge over samples and all quick techy tutorials....
The samples I was referring to are in the sdk itself. If you have any specific question google should be suffice.
Sent from my Nexus One using XDA App
andyfan said:
Can any body suggest the quickest and fastest way to learn Android and start developing apps.
Click to expand...
Click to collapse
That kind of depends what sort of app you want to make. I've found that live wallpapers are an easy way to start. There is a good example of a spinning cube live wallpaper that you can modify to get started.
http://developer.android.com/resources/samples/CubeLiveWallpaper/index.html
Someone has even published the cube tutorial almost unchanged to try and make money from it
Making a more complex app with multiple screens and a database etc will take a lot more effort and you'll probably need to read some textbooks.
Thanks for replying jug6ernaut and jgittins
Let me tell you.......My app contains some around 4 screens which contain around 4 forms which should store persistent data of the end user.....As you said using multiple screens and database takes some time......Is there any other way I can store the persistent data....Moreover I am familiar with database concepts...
Any suggestions...
Please suggest me some books also which I can refer quickly.....
Thanks once again
I haven't read any and dev books so I can't recommend any lol.
As for saving info...depends on how much. If its not huge amounts shared preferences or regular file io. If not sql would probably be your best bet.
Sent from my Nexus One using XDA App
I started reading this blog. I have downloaded and buy a couple of books too
http://android-java.blogspot.com/
Books:
http://www.amazon.com/Pro-Android-2-Sayed-Hashimi/dp/1430226595
http://www.amazon.com/Android-Appli...-20&link_code=btl&camp=213689&creative=392969
Hey there. I need help to make an app for tablets. Its not going to be exciting, its for productivity. I need to make an app for estimations for inslation companies. I already have the layout and what needs to go into it in a PDF file but do not have the experience to create the app. I need help and will make it worth while. Pm me if you can help. Peace
I suggest starting with an online introductory course in Java programming.
simple app?
Google has a app creation program.I think its called app inventor.its in Google mobile.in the labs area.good luck
Google app inventor doesn't allow tablet apk formation at the moment. At least not that I could work out. Stretching the screen view via a tool method is innefficeint at best and I need a stand alone product for a tablet. Learning Java at the moment is a time consuming effort and I am looking for someone to aid me in my endevour. I will make it worth their time but I need someone who is interested. Maybe I should post this request in the general android forums. Not so much love here yet but thanks for the advice so far.
grhand82 said:
Google app inventor doesn't allow tablet apk formation at the moment. At least not that I could work out. Stretching the screen view via a tool method is innefficeint at best and I need a stand alone product for a tablet. Learning Java at the moment is a time consuming effort and I am looking for someone to aid me in my endevour. I will make it worth their time but I need someone who is interested. Maybe I should post this request in the general android forums. Not so much love here yet but thanks for the advice so far.
Click to expand...
Click to collapse
Money talks.
Try "I'm willing to pay $$$ for a developer to make this app for my company".
State Your requirements:
- Needs to take user input and (do what)
- Needs to output to .PDF format
- ???
You will get much more tailored responses.
get it to me i will do it for you as cheap as possible
Introduction
Hey guys. I'm working on an Android application for XDATV. We've never really featured a fully functional application on XDATV before. I thought it was high time we did that.
Noter is a note taking application. It is a good representation of several basic Anrdoid APIs.
source & download
Subversion Repository: http://xda-adk.googlecode.com
Project Checkout: svn checkout http://xda-adk.googlecode.com/svn/trunk/EclipseProjects/xdatv-noter
Image of app: http://i50.tinypic.com/qs8ro8.png
App download: https://code.google.com/p/xda-adk/downloads/detail?name=XDATVNoter.apk
goals
Demonstrate proper coding style and development.
Introduce n00bs to app development.
Make an expandable single-class app which will have the ability to integrate into future projects.
Questions and Contributions
If you have a question, please ask. I am in no way, shape, or form an Android app development expert. I do java more than anything else, not so much with Android. If you've got something to contribute, please do! If you spot a problem in the code, then let me know and I'll give you credit on the SVN Commit.
I think this is an awesome idea. Many of the developers here don't know the Android framework but have worked with lots of C based languages, so picking up Java (if we need to) is not that big a deal. Hopefully this will be the kind of thing that we can follow and learn the OS and framework as we go along. I know it's ideal for me, being a 20 years Windows developer.
Archer said:
I think this is an awesome idea. Many of the developers here don't know the Android framework but have worked with lots of C based languages, so picking up Java (if we need to) is not that big a deal. Hopefully this will be the kind of thing that we can follow and learn the OS and framework as we go along. I know it's ideal for me, being a 20 years Windows developer.
Click to expand...
Click to collapse
Yeah! That's the idea. Once the video is released I will publish it in the OP as well. I hope its understandable. If not, that's why we have this thread available.
The onclick view thing is handy:good:
hi adam! In the title of the video you mentioned testing, which i missed a little in the video. what methods or tools do you use for unit testing and stuff?
I'm sorry to clog up this thread with a post about help, but I couldn't find a thread for the series for tutorials Adam released about a year ago.
At around 8:34 in part one (http://www.youtube.com/watch?list=P...=31cxmLN09ss&feature=player_detailpage#t=513s), Adam adds a button to his test-app thing. It will not let me do this. It shows a no symbol over my cursor when I drag it over the display. I selected the .xml through res and layout just like he did. Only different thing I can tell I am doing is using 4.0 API instead of 2.3.
I have no experience with coding or doing work with Android so I apologize for any common mistakes.
klownk said:
hi adam! In the title of the video you mentioned testing, which i missed a little in the video. what methods or tools do you use for unit testing and stuff?
Click to expand...
Click to collapse
Just the standard tools. A device and a device emulator.
hi der!
is their any file named "notes.txt" is created.? if yes where can i find it?
and yeah thank you!.. am just a beginner and this helped me a lot!
Edit :
i also added "WRITE_EXTERNAL_STORAGE" permission in android manifest!
but still cant find noter.txt file anywhere as mentions in MainActivity.java file!
please help!
1031Vulcan said:
I'm sorry to clog up this thread with a post about help, but I couldn't find a thread for the series for tutorials Adam released about a year ago.
At around 8:34 in part one (http://www.youtube.com/watch?list=P...=31cxmLN09ss&feature=player_detailpage#t=513s), Adam adds a button to his test-app thing. It will not let me do this. It shows a no symbol over my cursor when I drag it over the display. I selected the .xml through res and layout just like he did. Only different thing I can tell I am doing is using 4.0 API instead of 2.3.
I have no experience with coding or doing work with Android so I apologize for any common mistakes.
Click to expand...
Click to collapse
You have to drag it from the bar on the left. There are a set of controls over there which you can select and drag/drop.
ateeq72 said:
hi der!
is their any file named "notes.txt" is created.? if yes where can i find it?
and yeah thank you!.. am just a beginner and this helped me a lot!
Edit :
i also added "WRITE_EXTERNAL_STORAGE" permission in android manifest!
but still cant find noter.txt file anywhere as mentions in MainActivity.java file!
please help!
Click to expand...
Click to collapse
Its in /data/data/tv.xda.noter/files/notes.txt You need to be "Noter" or root to access this file.
Nice video, thanks!
Don't forget to close your output stream; probably more dangerous than forgetting to close an input stream if anything's buffered. Also it's maybe stylistic, but I much prefer Reader/Writer for textual data. If you like System.out style, you can do:
PrintWriter out = new PrintWriter(new OutputStreamWriter(openFileOutput(FILENAME, Context.MODE_APPEND)));
Really great job Adam. I'm going to watch a second time tint and build the app along with the video, you have some points that are helpful that I hadn't thought of before.
Edit:
Adam, I just watched and built along with the video. What action did you do at 15:24, I can see you did something called Refactor, but I'm not familiar with it. Can you explain what it does and why you did it? Thank you!!!
Sent from my Nexus 7 using xda premium
marty331 said:
Really great job Adam. I'm going to watch a second time tint and build the app along with the video, you have some points that are helpful that I hadn't thought of before.
Edit:
Adam, I just watched and built along with the video. What action did you do at 15:24, I can see you did something called Refactor, but I'm not familiar with it. Can you explain what it does and why you did it? Thank you!!!
Sent from my Nexus 7 using xda premium
Click to expand...
Click to collapse
I just moved some code into methods and changed some names. Refactoring means renaming or moving or a number of other operations. Basically, you clean things up with a refactoring. Refactoring is an operation the IDE does safely so when methods or variables move, all the calls point at the newly refactored method or variable.
AdamOutler said:
I just moved some code into methods and changed some names. Refactoring means renaming or moving or a number of other operations. Basically, you clean things up with a refactoring. Refactoring is an operation the IDE does safely so when methods or variables move, all the calls point at the newly refactored method or variable.
Click to expand...
Click to collapse
Awesome, great to know. I'll try using this in the future!
Sweet tutorial! Will be using this as starting point for the app I want to develop. Quick issue though. When I first implement the OnClickListener, it has an error with 56 fixes available, the top two being imports. Which one of these do I pick? I see you chose something from a dropdown, but the video sped up and I can't see which one it was.
A random package said:
Sweet tutorial! Will be using this as starting point for the app I want to develop. Quick issue though. When I first implement the OnClickListener, it has an error with 56 fixes available, the top two being imports. Which one of these do I pick? I see you chose something from a dropdown, but the video sped up and I can't see which one it was.
Click to expand...
Click to collapse
There are 2 common OnClickListener classes like you say, one of them is probably View.OnClickListener and the other DialogInterface.OnClickListener. Use the View.OnClickListener any time that you are attaching it to a widget in your normal layout. Use the DialogInterface.OnClickListnener any time you have created an AlertDialog and are listening to one of its buttons.
Sweet, thank you! :good:
File Location
Hey Adam
In the video you haven't mentioned how to choose the file location.
Please guide me on this.
Thanks
pawan.dewani said:
Hey Adam
In the video you haven't mentioned how to choose the file location.
Please guide me on this.
Thanks
Click to expand...
Click to collapse
that's done in the fileinputstream portion. new FileInputStream("filename"), or you can do new FileInputStream(new File("filename", "/path/tofile"));
Hi all,
Was looking for some guidance. I want to make a very simple app. Your traditional wallpaper app - I know there are already a ton out there, but I want to experiment. Basically have the user browse by category, then download a wallpaper. For someone who has never made an app, what is a good way to go about it? Would you recommend starting from scratch or using one of those free app websites? I know a little bit of Java, not nearly enough to make an app, but I wouldn't mind learning (lotta free time ATM). Is this something that can easily be made with a free app website? I've looked into those, but am not fully sure what their capabilities are. Any advice would be appreciated!
Apologies if I posted this in the wrong forum!
I'd start by installing Android Studio. Then I would dissect what your attempting to do here in goals and separate the coding tasks. Then I would glean what I could from the reference.
Start with simple apps
hpizzle12 said:
Hi all,
Was looking for some guidance. I want to make a very simple app. Your traditional wallpaper app - I know there are already a ton out there, but I want to experiment. Basically have the user browse by category, then download a wallpaper. For someone who has never made an app, what is a good way to go about it? Would you recommend starting from scratch or using one of those free app websites? I know a little bit of Java, not nearly enough to make an app, but I wouldn't mind learning (lotta free time ATM). Is this something that can easily be made with a free app website? I've looked into those, but am not fully sure what their capabilities are. Any advice would be appreciated!
Apologies if I posted this in the wrong forum!
Click to expand...
Click to collapse
Start create a simple Calculator with good looking UI ! Its my favorite @
the best first app is something you can explore android with it, like an app with simple buttons each one runs a sound, or change background color....
Can anyone help me with the user interface ..
I want to learn advanced designing ..
Sent from my SM-G900T using Tapatalk