Source for learning Java - Java for Android App Development

Good day, fellow forum members.
I finally decided to get my hands dirty with programming. Since i had absolutely zero knowledge about coding i thought i should start from something basic so i downloaded SoloLearn's Java app. I have used it for just about a day (or 30 minutes) and I'm already quarter way through it. I think I'll finish by the end of week without interrupting my daily life chores because
String mythoughtssofar = ("This seems quite interesting and easier than I expected")
System.out.print(mythoughtssofar)
Haha. But I am sure there is a lot more to learn than what this application is telling me. So I wanted to ask where should I start learning for real? Any books? Blogs? Forums? Anything else? I am serious about doing it so I don't mind subscribing to paid content such as Lynda .com (Suggested by friend). But I thought I should ask here for some good advice from the pros before I actually begin. Hopefully someone can show me the path. Thanks for reading!

Google " thenewboston "
Learn the Java & Mid-Java tutorials, about 120 vids, and you will be "min-expert" in java language, you will be expert over the usage .
After that, navigate to slidenerd to learn how to develope Android Apps .
Java => Android .

anyone else wants to add something? I assume this is the correct section to ask for help regarding education?

jackcarter3456 said:
You can prefer any option among books, online tutorials, videos, paid content etc to learn programming language. However, all the options are good but I personally want to suggest you to prefer the online videos instead of reading books or following tutorials.
This is because the videos are the faster way to learn than any other media. Reading the whole content takes too much time, but if you will learn from the online videos then it would be quite easier to learn and understand the concepts. I am suggesting the videos option, because I have also used it for learning Java, C and C++ and I think it is much easier to grab the concepts with the help of visual content instead of written content.
I hope you like my opinion.
Click to expand...
Click to collapse
It is true that there are a lot of different sources to learn programming languages and most of them will be good. Maybe try something that is about android programming when you are done with your java stuff
I personally prefer reading some online tutorials so i guess everyone learns best in different ways.

Check out the following links for Java tutorials:
Oracle Tutorial
tutorialspoint Tutorial
thenewboston video Tutorials Beginner
thenewboston video Tutorials Intermediate

mmdeveloper10 said:
Check out the following links for Java tutorials:
Oracle Tutorial
tutorialspoint Tutorial
thenewboston video Tutorials Beginner
thenewboston video Tutorials Intermediate
Click to expand...
Click to collapse
ive noticed some of his code is out of date and gives me errors is there an easier/simple way to fix them?

Veid71 said:
ive noticed some of his code is out of date and gives me errors is there an easier/simple way to fix them?
Click to expand...
Click to collapse
What link are you referring to? I gave 4 links. And could you please quote the code that is out of date? And what errors do you get? Please be more specific. How can we suggest you how to fix something if we don't know what it is?

mmdeveloper10 said:
What link are you referring to? I gave 4 links. And could you please quote the code that is out of date? And what errors do you get? Please be more specific. How can we suggest you how to fix something if we don't know what it is?
Click to expand...
Click to collapse
sorry the new boston youtube ones ive gotten stuck on video #10 and video #14 on 14 it doesnt even give me an error code it just refuses to launch
02-17 21:14:26.655 2867-2867/com.example.veid71.floatinginterface4 I/art: Not late-enabling -Xcheck:jni (already on)
02-17 21:14:26.746 2867-2867/com.example.veid71.floatinginterface4 W/System: ClassLoader referenced unknown path: /data/app/com.example.veid71.floatinginterface4-1/lib/x86
02-17 21:14:26.894 2867-2867/com.example.veid71.floatinginterface4 D/AndroidRuntime: Shutting down VM
02-17 21:14:26.895 2867-2867/com.example.veid71.floatinginterface4 E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.veid71.floatinginterface4, PID: 2867
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.veid71.floatinginterface4/com.example.veid71.floatinginterface4.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.CharSequence android.support.v7.widget.Toolbar.getTitle()' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.CharSequence android.support.v7.widget.Toolbar.getTitle()' on a null object reference
at android.support.v7.widget.ToolbarWidgetWrapper.<init>(ToolbarWidgetWrapper.java:98)
at android.support.v7.widget.ToolbarWidgetWrapper.<init>(ToolbarWidgetWrapper.java:91)
at android.support.v7.app.ToolbarActionBar.<init>(ToolbarActionBar.java:73)
at android.support.v7.app.AppCompatDelegateImplV7.setSupportActionBar(AppCompatDelegateImplV7.java:205)
at android.support.v7.app.AppCompatActivity.setSupportActionBar(AppCompatActivity.java:99)
at com.example.veid71.floatinginterface4.MainActivity.onCreate(MainActivity.java:28)
at android.app.Activity.performCreate(Activity.java:6237)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)*
at android.app.ActivityThread.-wrap11(ActivityThread.java)*
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)*
at android.os.Handler.dispatchMessage(Handler.java:102)*
at android.os.Looper.loop(Looper.java:148)*
at android.app.ActivityThread.main(ActivityThread.java:5417)*
at java.lang.reflect.Method.invoke(Native Method)*
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)*
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)*
on video #10 and on this video i get this error for this line "cannot resolve symbol setonclicklistener" "cannot resolve symbol view" "variable onclick is never used"
FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
fab.setOnClickListener(new View.OnClickListener() {
public void onClick(View view); {
Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
.setAction("Action", null).show();

I also discovered SOLOLEARN which I found so far useful. I'm in the same boat as you xlife18

Start with tutorialsguide and go to the android section, they explain it from beginners up

Had same issues with bostons videos. He wasnt using the oncreate default code that needed to be written for android. Thats what i discovered to be the issue. For alot of my errors.

Related

[Q] tips about develop an application ?

Hello, i`m newbie to android programming ( java ) i want to make an aplication for an auction website.
With what i can start to learn to can build this application ?
I was thinking to build application for auction website over RSS feed its a good choice or bad ?
Any other suggestion from where to start or what type of application to go are welcome ( if rss feed type its bad )
Thanks.
gkilah said:
Hello, i`m newbie to android programming ( java ) i want to make an aplication for an auction website.
With what i can start to learn to can build this application ?
I was thinking to build application for auction website over RSS feed its a good choice or bad ?
Any other suggestion from where to start or what type of application to go are welcome ( if rss feed type its bad )
Thanks.
Click to expand...
Click to collapse
First you will need to learn Java. This is a great book for that purpose: http://www.headfirstlabs.com/books/hfjava/
I learned Java with it myself. It is good for beginners and in no way reading it is boring!
nikwen said:
First you will need to learn Java. This is a great book for that purpose: http://www.headfirstlabs.com/books/hfjava/
I learned Java with it myself. It is good for beginners and in no way reading it is boring!
Click to expand...
Click to collapse
i need some tips or reference from where to start building the application or in what way, a start point to application i will learn java and develop my skill when i have a target what to do.
i know basics of java allready used on other things but until now i never made an android application.
gkilah said:
i need some tips or reference from where to start building the application or in what way, a start point to application i will learn java and develop my skill when i have a target what to do.
i know basics of java allready used on other things but until now i never made an android application.
Click to expand...
Click to collapse
Ok. This is a tutorial for that: http://developer.android.com/training/index.html
Check the first lesson.
gkilah said:
i need some tips or reference from where to start building the application or in what way, a start point to application i will learn java and develop my skill when i have a target what to do.
i know basics of java allready used on other things but until now i never made an android application.
Click to expand...
Click to collapse
There's a good series of 200 video tutorials for beginners made by thenewboston, it's quite good and it will show you how to build a dozen different applications with different purposes (i.e a stopwatch, an internet browser etc...). It will give you the basics of the Android APIs & the xml part of the job along the way.
Plus they're short videos so you can watch one when you have a few minutes anytime.
Here's the playlist with the 200 videos : http://www.youtube.com/watch?v=1j4prh3NAZE&playnext=1&list=PL33384E9848C4F55E&feature=results_main
I've looked through several books for beginners, and I think "Hello, Android" by Ed Burnette is the easiest to start with.

Need Suggestions

HI i have android app development experience for 2 years.
I understand the framework but when it comes to typical situation when i think it would have been better if more android internals were given or more documentation was available.
So my question is for app developers what is the next stage for learning in android development So that we have deeper understanding of the framework and solve typical issues as well. for eg
Activity finish() dismissis and removes the dialog in that activity but i could not find any docs regarding this. so i was in dilemna what to do?
Please help how to advance more into android and if possible please give links to study material or links where i can get a path
Thanks
So this was the question I got after my all app compiling and decompile for 3 months.
So I was just a app modifier,and I thought about being app developer,I mean creater.
So I googled and learnt the coding(toughest part) and iam now a good developer who is on the way of development.
And for ur question finish();
All those datas are in java format packed as class.dex,you must open that to see the source file as java.
However u can see .smali file wen u decompile any app which you/me/ can't understand....(those r derived from java)
Offff good question:thumbup::thumbup:
.........................................
visit www.fb.com/softcrush
RamachandranProgrammer said:
HI i have android app development experience for 2 years.
I understand the framework but when it comes to typical situation when i think it would have been better if more android internals were given or more documentation was available.
So my question is for app developers what is the next stage for learning in android development So that we have deeper understanding of the framework and solve typical issues as well. for eg
Activity finish() dismissis and removes the dialog in that activity but i could not find any docs regarding this. so i was in dilemna what to do?
Please help how to advance more into android and if possible please give links to study material or links where i can get a path
Thanks
Click to expand...
Click to collapse
My number one snag I would do, if I could go back to when I started, would be "Learn what a Context is, and the different types" which coincidentally relates to why a dialog hung of a context does disappear
Hi,
Stackoverflow.com is a good source of information to resolve doubts.

Develpoing GUI in Java

Hi everyone,
some days ago, i was substancially forced to join an Android project by my professor.
The fact is that his course was about C++ (your equivalent of that course should be Compuer Science II, and i have a good knowledge of C++), and this project is in Java. I have a little experience in Java (in fact, one of the courses that i am attending is focused on Java). Now, i think that in order to be a Computer Science engineer i have to fit myself to the situation ( i have some docs about the project) but i have no experience in Android app development and a very little knowledge of XML, so i ask you some help :good:.
What i have to do is to realize some GUI for his application. It is not very difficult, but i have no idea about from where i have to begin. In these 2 days i have managed to start some very simple application from Eclipse on my smartphones, but that's all, nothing more. So, is there any book or (better) some short guide or video to follow?
I use, as IDE, Eclipse (because i usually use it for Cpp, but some people said me that Android Studio should be better). I know that Eclipse is a really god IDE (For Cpp i tried also CodeBlocks, VisualStudio and Netbeans), but i know too that it raises some error that newbie user could not managed to solve easily: one of them is a java.lang.nullPointerException raised in every main.xml file...
Moreover, the project has to connect to a IBM Bluemix-stored database.
Last but not least please share a comment about my English (that, i have to admit, is not very good). I would really like to know how it - really - is.
(Excepting the typo in the thread title).
So, i ask you to kindly share resources (video, guides ...) about realizing GUI in Android.
Well first i'd recommend using android studio since it is the official ide for android by google, and I have worked with eclipse for 2 years and the android plugin is just too buggy.
About designing the ui it is usually done in xml rather than in code since its more intuitive and there is a preview.
You should start learning the basics and from there they teach you how to design the ui.
Try the official guide in the google developers section for android "developers android training"
Are you talking about https: //developer .android.com /training/index .html ?
Yes exactly, they have some nice guides there.
Here is a very nice guide for creating your first app in Android Studio: http://www.raywenderlich.com/78574/android-tutorial-for-beginners-part-1
Here is a layout tutorial: http://code.tutsplus.com/tutorials/android-user-interface-design-layout-basics--mobile-3671
Here is a compilation of Android beginners tutorials: http://www.sitepoint.com/12-android-tutorials-beginners/
If you give a more focused description of what you are trying to achieve (what are you intending to display and how do you want to display it), more focused tutorials can be suggested.
Best of luck
EliteRazor said:
Hi everyone,
some days ago, i was substancially forced to join an Android project by my professor.
The fact is that his course was about C++ (your equivalent of that course should be Compuer Science II, and i have a good knowledge of C++), and this project is in Java. I have a little experience in Java (in fact, one of the courses that i am attending is focused on Java). Now, i think that in order to be a Computer Science engineer i have to fit myself to the situation ( i have some docs about the project) but i have no experience in Android app development and a very little knowledge of XML, so i ask you some help :good:.
What i have to do is to realize some GUI for his application. It is not very difficult, but i have no idea about from where i have to begin. In these 2 days i have managed to start some very simple application from Eclipse on my smartphones, but that's all, nothing more. So, is there any book or (better) some short guide or video to follow?
I use, as IDE, Eclipse (because i usually use it for Cpp, but some people said me that Android Studio should be better). I know that Eclipse is a really god IDE (For Cpp i tried also CodeBlocks, VisualStudio and Netbeans), but i know too that it raises some error that newbie user could not managed to solve easily: one of them is a java.lang.nullPointerException raised in every main.xml file...
Moreover, the project has to connect to a IBM Bluemix-stored database.
Last but not least please share a comment about my English (that, i have to admit, is not very good). I would really like to know how it - really - is.
(Excepting the typo in the thread title).
So, i ask you to kindly share resources (video, guides ...) about realizing GUI in Android.
Click to expand...
Click to collapse
You can take a look at vogella web site tutorials
They have very usable tutorials, easy to understand.
Thanks everyone, i'll give a look to these resources

[Q] Extract JSON data and display in ListView with Searchbox

Hi Everyone,
I am currently a very new starter in the Android App Development stage. I have tried to develop a ListView with Searchbox facility to search data that comes from a specific URL in the form of JSON data. I managed to understand displaying this data in ListView, but adding a search facility is something I'm struggling to grasp somehow.
The code attached is a reference code I am trying to tune before I move on to actually developing my app. However, it doesn't seem to work on the emulator, giving me the error that the MainActivity file has stopped working.
I am unsure if there is a fundamental error somewhere, and would be really grateful to get some advice on this. I have looked online and can't seem to find a good resource that explains merging ListView with JSON data effectively with a Searchbox.
ajitmenezes said:
Hi Everyone,
I am currently a very new starter in the Android App Development stage. I have tried to develop a ListView with Searchbox facility to search data that comes from a specific URL in the form of JSON data. I managed to understand displaying this data in ListView, but adding a search facility is something I'm struggling to grasp somehow.
The code attached is a reference code I am trying to tune before I move on to actually developing my app. However, it doesn't seem to work on the emulator, giving me the error that the MainActivity file has stopped working.
I am unsure if there is a fundamental error somewhere, and would be really grateful to get some advice on this. I have looked online and can't seem to find a good resource that explains merging ListView with JSON data effectively with a Searchbox.
Click to expand...
Click to collapse
You should implement the search on the listview adapter, not on the activity itself.
Take a look at the following article:
http://www.mokasocial.com/2010/07/arrayadapte-filtering-and-you/

Help Developing An App

Morning all,
I have never created an app, but decided to look into it late last year. I began work on an app around September 2014, did a little work every weekend, and haven't really touched anything since November.
I have experience with HTML, CSS etc (I can write them). I can also have a basic understanding of other codes such as PHP, JavaScript, Java, C etc - basically, enough that I could take some code and edit it to suite.
I was hoping that creating an app would a) help grow my current business and b) give me a new challenge to learn new code.
Anyway, I'm really stuck on what to do. I downloaded Eclipse at home, but my laptop is on it's last legs. I have been creating the app at the office, using Adobe Flash Builder 4.7. I read a few tutorials, and downloaded some sample apps to learn from (as part of some of the tutorials). However, none of them have what I want.
My App Idea
So, enough waffling on, I'll try and explain my app without giving away what I want to do.
Basically, the app will be one where users can enter an error code, and press search. The result would be a page showing the description of the error code, and then what the solution is to fix it. There is then potential to add a "buy this part from" link which will suggest suppliers to visit.
So, as an example, let's say a user got a Blue Screen error code on their PC of "ABC1234". They would enter that code into my app, and the result would say something like:
Code: ABC1234
Description: RAM Error - overheating
Fix/Solution: Replace RAM
What I Have So Far
Other than a couple of test files that I've been learning with, I don't have anything solid in terms of an app. What I do have though is an Excel file with 889 error codes and what each code means.
What I Need
So, I guess what I need is either:
some help/guidance on how to create an app that in it's simplest form is a home page with a search box, and then 889 pages in the background that return depending on the searched error code.
or, someone willing to help me develop such an app
Firstly, download Android Studio - Don't use eclipse anymore
Secondly, here is a tut on using an older version of Android Studio
Have a go, see how you end up. Let us know, if you're really needing help, ask here again
Thanks,
I'll have to try that once I get home as the IT Administrator at work has to vet everything that gets installed.
minooch said:
Firstly, download Android Studio - Don't use eclipse anymore
Secondly, here is a tut on using an older version of Android Studio
Have a go, see how you end up. Let us know, if you're really needing help, ask here again
Click to expand...
Click to collapse
Hi sir! Is Android Studio is better than Eclipse?
john.reyes.jmr said:
Hi sir! Is Android Studio is better than Eclipse?
Click to expand...
Click to collapse
Yes.
john.reyes.jmr said:
Hi sir! Is Android Studio is better than Eclipse?
Click to expand...
Click to collapse
Jonny said:
Yes.
Click to expand...
Click to collapse
^^^
The only way to say it
Jonny said:
Yes.
Click to expand...
Click to collapse
Thanks sir but do we have a highly compressed Android Studio? 800mb+ is such a big file to download.
Like minooch said, install an IDE, understand how it works and then try some tuts on Internet to learn how Android works. What you want to do isn't really hard, you'll manage quickly to do it but you will be prouder if you do all by yourself.
Some hints : Don't go coding directly, try to organize your project (data structure, classes, methods) before starting to code. On a small project, it's not as important but if you start doing things well now, you'll thank yourself in the future
minooch said:
Firstly, download Android Studio - Don't use eclipse anymore
Secondly, here is a tut on using an older version of Android Studio
Have a go, see how you end up. Let us know, if you're really needing help, ask here again
Click to expand...
Click to collapse
What are the requirements for this app to run on my PC ,jdk?i have installed jre but didn't worked help me ....
Randomly Set said:
Morning all,
I have never created an app, but decided to look into it late last year. I began work on an app around September 2014, did a little work every weekend, and haven't really touched anything since November.
I have experience with HTML, CSS etc (I can write them). I can also have a basic understanding of other codes such as PHP, JavaScript, Java, C etc - basically, enough that I could take some code and edit it to suite.
I was hoping that creating an app would a) help grow my current business and b) give me a new challenge to learn new code.
Anyway, I'm really stuck on what to do. I downloaded Eclipse at home, but my laptop is on it's last legs. I have been creating the app at the office, using Adobe Flash Builder 4.7. I read a few tutorials, and downloaded some sample apps to learn from (as part of some of the tutorials). However, none of them have what I want.
My App Idea
So, enough waffling on, I'll try and explain my app without giving away what I want to do.
Basically, the app will be one where users can enter an error code, and press search. The result would be a page showing the description of the error code, and then what the solution is to fix it. There is then potential to add a "buy this part from" link which will suggest suppliers to visit.
So, as an example, let's say a user got a Blue Screen error code on their PC of "ABC1234". They would enter that code into my app, and the result would say something like:
Code: ABC1234
Description: RAM Error - overheating
Fix/Solution: Replace RAM
What I Have So Far
Other than a couple of test files that I've been learning with, I don't have anything solid in terms of an app. What I do have though is an Excel file with 889 error codes and what each code means.
What I Need
So, I guess what I need is either:
some help/guidance on how to create an app that in it's simplest form is a home page with a search box, and then 889 pages in the background that return depending on the searched error code.
or, someone willing to help me develop such an app
Click to expand...
Click to collapse
Hello.. You just cannot make a app like for such kind of work. You have to make make a website server for the same and then make a app for it. I know a technique for such kinda work.Web crawling us your answer. If you could setup a website for that then I can make a app for that easily within two days. Inbox for any further information or quote back
**********Hit thanks if I helped you***********
Shreyseviltwin said:
Hello.. You just cannot make a app like for such kind of work. You have to make make a website server for the same and then make a app for it. I know a technique for such kinda work.Web crawling us your answer. If you could setup a website for that then I can make a app for that easily within two days. Inbox for any further information or quote back
**********Hit thanks if I helped you***********
Click to expand...
Click to collapse
Hi,
What would be involved in creating an app?
pranavraut033 said:
What are the requirements for this app to run on my PC ,jdk?i have installed jre but didn't worked help me ....
Click to expand...
Click to collapse
You need the JDK. Please read the instructions on the download page. Under the section 'Requirements'

Categories

Resources