peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

By supporting all densities read more here http://developer.android.com/guide/practices/screens_support.html

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

The whole 4 and above is Jelly Bean, and version are backward compatible so you do not have to anything. It is different story if you want to get new stuff on old version, classic examples are ActionBar and Fragments

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I'm Java developer that moved to Android since Java is the ground language of Android development. Finished university degree in Mobile Computing when iPhone was just becoming big on the market, however I had no knowledge of Objective C, neither device or Mac OS machine (was impossible to develop without Mac based OS at the time). I had knowledge of Java ME and bits and bobs of Symbian but nobody was looking for junior mobile developer. Got my chance with Android 2 years back, knowledge of Java ws big plus and also knowing JUnit and Mockito that are standard tools for testing. Started development on Windows machine to find limitations with Maven base builds so I moved on Ubuntu and later MacBook Pro that been comany perk. Since then never looked back on any other mobile platform

Anima Templi commented: Great reply +1
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

What platform/api you using? can you leave reference to specific class?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@pardeepkhatri quit experting around and ask specific question or you will keep getting "treatment" as with your original question.
Every half baked developer knows that main development base for Windows is Visual Studio, and if he doesn't know he will find it with Google search.

PS: Do not expect people to do your homework, you show some effort, you ask specific question you may get fast reply...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@djones60 looking for XML feeds old school, cool kids play with JSON
@Myronz hijack next time create your own thread and best to do iy in Mobile Development section

@leogem you have to be more clear on what service you want to provide, but in general you can work with JSON objects easy to query for and even easier to handle. As djones60 said there is XML from feed. This is little old school plus the processing time is longer then with JSON given device specs. There is also possibility of data mining with libraries like JSOUP where you take whole page and run data extraction on specific block possible on device but is time consuming so it is better if it is done by remote server.

You can get test of either from Daniweb API that enables you to either play with XML or JSON

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Why didn't you posted specific error you getting? Do not expected people to go over your code line-by-line

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Here is your answer

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

What would be forum when everybody could delete as it please him/her? Just chat...

Take situation someone posts question, you reply to it, the OP doesn't like it and reply in rather rude style, you reply too and whole situation culminates. However before admin/mod can take action OP removes/edit his rude replies to something softer, but your rude replies are there. Who gone get blamed???

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Reito Meier - Professional Android 4 Application Development becomed industry standard. Another good one is from Apress Beginning Android 4 or if you already Java developer Pro Android 4 there is plenty of other books you can find list on top of Mobile development forum section Starting mobile development

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Thank you

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Starting "Java" [Java tutorials / resources / faq] is good place to start. Also please make sure that you do not post links to your blog in every posts...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Not a Maven error, it is your spring configuration. Ages since I did it, but do you have jaxws-web-context.xml in resources/jaxws/?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Are you planing to address the issue of formatted code that is oveflowing its container? Example first post in this thread http://www.daniweb.com/software-development/java/threads/462074/maven-project

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I would suggest to rather buy book like Reito Meier Professional Android 4 Application Development or Apress Beginning Android 4 as their introduce you in structured way to topic where online tutrials are likely to be just cream swooping and failing to give more of background and more in depth info. It is your call, but I would say these book are better investment than any tutorial out there

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You are student so you are highly unlikely can afford professional training and if you find something cheap it is most likely gone be rubbish. So you have better chances by reading a book by Reito Meier Professional Android 4 Application Development

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@jimmyparker 2 months late for your reply, beside what are your grounds for above claim?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You did not imported/provided pdfbox-1.8.2.jar to your IDE (IntelliJ, Eclipse, NetBeans) correctly. Therefore it is complaining about not existing imports.
Tell us what IDE you using and we can give you guidance how to associate library JAR with your project in your IDE, or just google "import library jar IDE_NAME"

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Never used pdfleo I though you been talking about iText or PDFBox that is why I asked what your code looks like...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Well would be beneficial if you actually posted code or what ever you are executing. Not sitting next to you to see on your screen ;)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Oh yeah and trying to run the first two suggested software from the command prompt keeps erroring with the files not being found.

What you mean running from command prompt and getting errors. That is hardly a description of issue from developer...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Did you tried iText or Apache PDFBox?

iamthwee commented: great links +14
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

McAfee blog was posted on 2nd August(so this is old story) and app was taken off Google Play

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
  • Commercial product advertising where there are free drivers available
  • You too late for original poster to by interested in this
  • Thread closed before more time travellers arrive....
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@rubberman I wouldn't say so Maven repo shows lot of activity ,last one on 29 July 2013

As for original question, I'm sure it is possible. Unfortunatelly I never use it...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Crucial have easy memory selection system where you provide laptop manufacturer, model number etc. If not sure of any of data you can always use their system scanner app to do it for you

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@evan.winstead.7 sorry but you unlikely to find any long or continues series on any programming subject, beside promotional videos and simple beginners setups. As stultuske said only reading documentation, and searching forums for posts on topic will help you. Coding was never been about watching videos like you can do for Photoshop etc.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Should be @array/list not strings/list

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

As with any code you will need to first provide some http client to be able to setup connection and query server and then you will need to process returned result. Sorry I can't be more specific but I do not use phonegap. Search for phonegap json examples and you may run across examples like this

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I would recommend to use Android Studio as Eclipse is know to have these random issues...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Why not instead provide solution ;) (it doesn't matter how trivial can be someone may have run in similar situation in future)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Nothing wrong with POM. Yu just need to setup proper cofiguration in Eclipse. In IntelliJ you can manually specify which folder is source code, where to find resources and where is test.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@stultuske valid point, but we already cleared our views on the question with @mmcdonald No need to torture him more ;)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Please post your pom.xml so we can have look at it

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

We have freedom of speech none is stoping you, nevertheless question was where can I get resource to learn Java web development not what framework I should use (Spring, Hibernate, Wicket etc.)
Well you may have CENGAGE books but how did you get them? Enrolment? Amazon or similar shop? And do they hold titles on requested topic? Lastly I never heard before of CENGAGE so it may be geographicaly specific to your location, so you have to be mindful of suggested resources availability...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

1) Java code in JSP horrible
2) First page missing catch statement at all
3) Read JSP database connectivity according to Model View Controller (MVC) Model 2

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@mmcdonald
1) Question was about learning resources for JSP not for opinion what is currently used
2) CENGAGE Learning is online university from what I seen and have very few books available publicly andI seen none for Java or JSP in that respect
3) Latest Java books on Amazon doesn't mean it gone be about JSP and it doesn't mean they would be useful to beginner

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You may also try Head First Servlets and JSP

stultuske commented: a-yup +14
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@Cronicle8 obviously you doing something wrong, always make sure that you set appropriate sized resources in res density folders (mdpi, hdpi, xhdpi et.) Secondly Android Studio is not exactly drag&drop type of UI development like Microsoft Visual Studio or NetBeans so yo ubetter watch out to keep your code clean.

Besides if you want to share your code with issues and expected results you are more then welcome to post them....

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@arronlee commercial products are not welcome, secondly your link was leading to C# and .NET examples and this is Java forum therefore link removed

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You will need to contact their support because according to documentation you should be able to authenticate with following command

curl -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
https://api.quizlet.com/2.0/users/YOUR_USERNAME

I tried it and it failed. For once I'm not aware that command can contain back slash "\", but even without it there is error message
However calls to cards are working, for example

curl https://api.quizlet.com/2.0/sets/415?client_id=YOUR_CLIENT_ID&whitespace=1

would return JSON object representing US state capitals

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I'm gone use JSON from here to demonstrate what I mean.
To read simple JSON as this

{
    "age":100,
    "name":"mkyong.com",
    "messages":["msg 1","msg 2","msg 3"]
}

You would need with default Android JSON API have to do something like this

    JSONObject jsonObject = (JSONObject) obj;

        String name = (String) jsonObject.get("name");
        System.out.println(name);

        long age = (Long) jsonObject.get("age");
        System.out.println(age);

        // loop array
        JSONArray msg = (JSONArray) jsonObject.get("messages");
        Iterator<String> iterator = msg.iterator();
        while (iterator.hasNext()) {
            System.out.println(iterator.next());
        }

Just see that cumpsy way of iterating through messages. This can be solved by using above libraries.
With Gson I would simple declare POJO (plain old java object)

public class Something{
    @SerializableName("age")
    private int age;
    @SerializableName("name")
    private String name;
    @SerializableName("messages")
    private List<String> messages = ArrayList<String>();

    public Something(int age, String name, List<String> messages){
        this.age = age;
        this.name = name;
        this.messages = messages;
    }

    //your getter methods here, no need for setters
}

and then use Gson to extract Something from JsonObject

JsonObject jsonObject = //Read server reply and get it as InputStream, pass it to Reader and use JsonParser to get you JsonObject
Gson gson = new Gson();
Something something = gson.fromJson(jsonObject, Something.class)

JAckson library works in similar way with annotations, I'm just more familiar with Gson.
This is much cleaner and simpler, since when JSON structure get more complicated you can replace primitive types with complex POJO as need it. Example company details including contact people can be represented as Company with name, Address, List<Contact>. Hope this …

Falcon25 commented: Very helpful thank you +1
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Here is iText tutorial on how to add Euro

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

From what is available without creating new account you need to first obtain token line 45 and only after that you can do login with OAuth. Replies from server are in JSON format so you should either know JSON API provided with Android or better to replace it with GSON or Jackson. Their documentation provides some Sample Calls that you can use for start. Beside trying to code all calls you can try to run it through CURL tool (you will have to download it for Windows, on Unix+Mac it is provided)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
  1. On button click get ID from text field
  2. Setup connection to database, run query and wait for return
  3. Display return
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

So why didn't you state this in first place?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@Alex Thompson big brother is watching... Some of your copy&paste posts been already deleted. You continue with them and your account gets banned

stultuske commented: NSA noticed it too? :) +14
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

That is what I meant. Lot of manual parsing and if they make smallest change in their page you can get screwed and spend much time on figuring out difference and how to fix it. (Speaking of own experience with Dice Battlelog for Battlefield 3 and filtering data out of it. Luckily lot of stuff is in JSON so I do not need to parse html, beside first page after login)