peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

No not possible once you give it fixed value. However you can use layout_weight to make device strech it dynamically. If you ever did any web development with CSS you should find many similarities.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I cannot answer thi question as I never played with widgets layouts, but you can have look over here http://developer.android.com/guide/topics/appwidgets/index.html

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Android SQLite database and content provider - tutorial by Lars Vogel

And yes onResume is better

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

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

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

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

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

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

Did you tried iText or Apache PDFBox?

iamthwee commented: great links +14
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
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

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
  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

@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

For Java based apps it will be always Canvas as your main drawing board and then manipulation of Bitmap. So since BlackBerry and Android are using Java you are covered there. For iPhone you will need to research, but I expect to be same as it is always Canvas and bitmaps on different layers with different visibility or edited content

JameB commented: Thanks! :) +4
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Obviously at source Adobe tutorials

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@riahc3 to tell moderator shut the up is very stupid as I do not care if you team colleague or not. I made comment after seeing your last post (1 week ago). So cut juicy part from "timely" replies as next time you may not find me in good mood

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

No you either know Java and can do Blackberry or Android, else you know C# and can do Windows, or you know Objective C and iPhone. There are some frameworks like PhoneGap which allows you mutiplatform development with JavaScript or alike but they slow unlike native apps writen in any of above languages

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

There are so many JSON Java libraries that would make returned JSON marshaling so easy and simple to do Jackson, Gson, JSON and in 2 months time you didn't come up with something better...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@Hazuan Nazri use official Android tutorials if need it http://developer.android.com/training/basics/firstapp/index.html

@katesmith8711 keep your spam off the forum kickstarter has no tutorials you linked commercial training, and other side is just sorry excuse of bad Android app sample (both links removed)

Hazuan Nazri commented: Thanks for helping me!, im still learning about android. +1
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I think you looking for EdgeEffect, read this post from Kirik

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

If I as your employer found such thing in your code I would fire you.

You should be communicating your difficulties to your team and supperiors and not create extra work for others

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Yes people should be warned, but there should aslo be a notice "Hey they fixed this..."

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

No flaming inteded, however it would be nice once in while if you wrote about something that got fixed. Open source community is doing their best to help to tacle all while trying to bring new stuff in. World is not all negative... ;)

PS: Can get you in touch with London open source community with influence on Oracle Java development, just ask.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

i know these 2 technologies and i send files but i have problem in sending html files thank you for replay if you can help me with any thing i will be greatful

Then you should have posted your code instead of other second guessing what you know and did. Your current approach is counter productive!

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Little old but still usefull free book on XML processing

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

He can install Ubuntu or simlar free to use unix based OS. These days you do not have to be PC geek to install Unix, and besides they more and more look like hybrid between Windows and Mac OS user interface

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Guess you already solve it since post is marked as solved, but for others never do compare strings as numeric values with == or != always use strin1.equals(string2)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Address edited ;)

Begginnerdev commented: Nice! =) +7
Reverend Jim commented: Classic ;-) +12
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Let be little fair and ask, how many of the companies develop security apps for iPhone/iPad? Is Apple open about their security issues as Android community?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Actually I have just started using JAVA but as always techers give us the hardest things as a homework!

I found hard to believe that, databases are taken normally after 4-5 months that mean at minimum 12 weeks

Secondly forum rules are clear

Do provide evidence of having done some work yourself if posting questions from school or work assignments

And if you tried as you said, then post your code or problematic section

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

As pritaeas said it is always about good habbits of your developers. It is always responsibility of each developer to keep up with latest code. Whenever you merging staging to production there should not be any conflicts (there is off chance of it, but should be too often). There are various options available:

  • You can setup a hook with your company chat system for example we used in past Jaconda, now we moved to HipChat and when someone commit new code everyone is notified and it is responsibility of each developer to keep up with changes and have his local repo up-to-date
  • Use Gerrit where 1 or more people have to approve anyone commit before it is added to a branch
  • delegate a person for a job or create roaster when everyday someone else is in charge of new commits, each commit should be submitted as separeted branch and delegated person has to check it and merge it to staging branch this can be easily combined with JIRA/PivotalTracker or other task/story monitoring system where all activities(new features/tweaks/bugs) are monitored
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You better create your tables with appropriate charset parameters something along the line of

CREATE TABLE IF NOT EXISTS `test` (
  `id` int(10) NOT NULL,
  `name` varchar(10)
  collate utf8_unicode_ci NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

In most cases server is run on Apache Httpd server, but there must similar stuff on IIS for Microsoft too. In Apache server you will have to setup/configure your subdomains example. As pritaes mention m or mobile or any other designation is just different folder/directory that is used, and it is server resposibility to direct request to correct one.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Follow Integrating Felix with NetBeans and then add as need it stuff from Apache Felix OSGi Tutorial

PS: Binding your slef to IDE is bad appraoch, IDE is only tool to help you to manage project, not tool to solve your problem...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@tux why to bother with nasty csv when you can have proper Excel doc?
Apache POI magic rediscovered :P

tux4life commented: Nice suggestion ;-) +13
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Why do you start two different post for same discussion topic? Thread closed, please continue discussion here

tux4life commented: Too bad, you left the Java duke for a lion :P +13
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

1)Flash is not supported as of Android 4.1 which was one of the annoucments of Google IO 2012 so you already limiting your market
2)You seriously expect some one to write you app for free???

Mr.M commented: No but talk private as long as you can help. +0
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Read Processing XML with Java has plenty of examples dependent only on SAX.

PS: Tell who ever said no to 3rd party libraries that he is idiot

tux4life commented: Totally agree with your comment about 3rd party libraries. +0
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You got it wrong, it can be used on any size. You should read Building a Dynamic UI with Fragments

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@jalpesh_007 you lost it on mentioning roseindia, in one of the worst and out of date collection about JSP that it is trying to teach 10 years old approach that is long time scrapped

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Wouldn't be easier to use fragments that can always query parental activity for "super" data and fragments do the rest of interaction?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You need to have server side application that is listening for request sent through HttpClient request, process it and return result to caller. Often best way to retrun data is in JSON object that is easy to parse

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

Are you asking about this? http://www.jdatepicker.com/docs/tutorial/index.html If so then better to get glasses as it is one of the first results on Google search

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Moderator hat OFF:

Ooooooh, what a scary guy you are.

Not scary, I'm friendly and I only bite when I'm forced to by stupidity of others.

You really like to wallow in your own stupidity and ignorance.

Stupidity and ignorance? Why because I paid for half off the software your post mentioned. Didn't paid for other half because I either do not know it or ever use it.

You must think you're hid real good behind this so called wall of anonymity, you're not.

Everybody with basic search skills would find out who I'm in seconds and I have no reason to hide my identity because my work (day work and personal time work) just create and provide me with credential that companies in industry find interesting, desired and welcoming.

Finding your stupid butt is what I do as a hobby & you're not really worth the effort.

Is that suggestion for date? I maybe gay... On second though, no thank you, you far bellow my level of interest and I can not learn anything useful from you.

Moderator hut ON: Mind your manners, keep it pleasent and organized. Have good day.

happygeek commented: Nicely put, with hat on and off +0
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

If you stupid, sorry irresponsible, enough to publish your email details... What you expect. So easy to write simple script to search forums for combinations as @hotmail.com or @gmail.com

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Yes you can use JSON. Get some simple library for server so you do not have to do it by hand, and on Android you can use either Jackson or Google GSON

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Obviously there is way to do it. However if you do not give me any starting ground (in a form of code) all I can do is only point in direction of google as I did