PS: "I am using nebeans ide." You do not need to tell us what IDE you are using, it is code that matters...

though I do wonder what he's done that makes his eclipse project's compiling dependent on the order of dependencies in the project settings window :)

I do remember NetBeans being funny back in the day while building JME app and you messed up order ;)
But hey then I been student and had no clue about building tools, and been happy IDE did it for me :D

Above description wouldn't help in solving your issue. If your build is dependent on JRE System Library above/below JUnit.jar it is plainly obvious you are dependent on IDE and your project will not build sucessfuly from command line, therefore cannot be run from CI. I do strongly suggest to check out Gradle or Maven

Well you have to work out some logic that will find out in which location proximity you are in. Once you identify location it should not be hard either have Map<Location, StringResources> where StringResource is only id to the strings new StringResources(R.string.resource_1, R.string_resource_2). However this is only short term solution, it would be better to send data to server that should return you these data that you want to show user

You are misunderstanding concept. This is not jar library that you add to your project, but rather expectation that user has this application installed on device and thereore with help of Android intent you can say "load this url with following application of this package name"

OsaMasw commented: thanks +2

There is no official API yet as this is still under development. However according to VLC forum you just need to do this

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setPackage("org.videolan.vlc.betav7neon"); // Use org.videolan.vlc for nightly builds
intent.setDataAndType(Uri.parse(""), "application/mp4");

My suggestion would be to check first for vlc in PackageManager to avoid crash if app not installed. You can follow discussion on intent here

Without seeing actual code hard to say...

Add button

  1. Setup new layout just with button
  2. When adding button inflate this new layout to reduce all that mess with LinearLayout.LayoutParams
  3. Then add button to parent (LinearLayout)

Buttons disapeared on fragment return - you need to apply some persistance to record your change, which should happen onPause and re-initiaded with onResume. You could do this with bundle that you pass around. However this will become more complicated as you move around app and other needs to be past to other components.
So you need to decide what storage is best for you For start you may want to use SharedPreferences, if you have more complex structure database would be better.

Ahhh, OK. Simple, lets examine code (sorry for cheeky comments)

if(new File("ATM.xls").exists()){ //check if file exists
    System.out.println("File exists"); //YES it does exist
    //but I failed to assigned to some object
    File excel = new File("ATM.xls");//doesn't exist so I create new file
    //but this go no further because it is local variable

So the code should be something like

File excel = new File("ATM.xls");
if(!excel.exists()) {
    try {
    } catch(IOException e) {
        Systemout.println("Failed to create new file, \n" + e.getMessage()); //Log framework would be much better instead of system print outs
//I have made sure file either exists or is created and now I can continue

That only creates WritableWorkbook, an object to which you have to write some data and then close in order for file to be generated. Check these examples

  1. Increase allocated memory to device (You should have minimum 8gb ram on your pc/laptop or emulator will be always slow). Secondary you may want to install HAXM (you do have to run actually manual install once downloaded through Android SDK as it is 3rd party product) you will find it in your ANDROID_SDK_DIRECTORY/extras/intel/Hardware_Accelerated_Execution_Manager
  2. Use Genymotion instead, free registration for personal usage, way faster then default emulator
  3. Get real device, there is nothing better then real device and fast deployment. Motorola Moto G or Moto E cost about £100 ( I call it good investment)

Yes, but that post was Modified 19 June 2011
Also check this recent discussion on Reddit

@SimonIoa can we please keep discussion to single thread???

As I said in other thread I would not recommend Flash based appplication as it is not supported by Android neither iPhone. However you can do HTML 5, CSS and JavaScript and use stuff like cordova which should help you to create hybrid app that will run on both platforms(Android and iOS). Otherwise you need to do native development.

I do only native Android development so I will not be able to help you with this. Have look at for articles in regards of this. Also they do have their own forum where you can ask questions and get answers...

You aware that Android and iPhones ditched support for Adobe Flash

You need to run your music as servive, you can see example here

jalpesh_007 commented: is helpful. +4
ravi142 commented: @Thank you +2

Ohhh dear god, my past is biting me back...

I did wrote this tutorial 6 years ago, hopping to show people how to do scriplet-less Java web development. At the time I had no idea about build tools like Ant, Maven or Gradle and it was common to have lib directory in the project where you will put any library jars and then point your IDE to it to pick up as additional dependencies used in project.

I do not use Eclipse preffer IntelliJ studio, but in Eclipse you should be able to link jar files by doing following Click Properties > Java Build Path > Libraries > Click Add External Jars

Sorry for being sarcastic but under which rock you been living? Both iPhone and Android do not support Flash for last 2 years and Adobe is not doing any development on Flash anymore.

You can either use HTML5 or JavaScript

Sounds like you are missing stuff that is available only with Java EE. Did you installed any Java EE?

Time is Android represented either by Date or Time objects. Each of these will return result in miliseconds as long variable ( ). Then you just need to compare time1 to time2 to find if it is lesser/equal/greater

Most likely you are missing JDBC driver, or you have duplicate (at least that was problem with Tomcat if you had JDBC driver in Tomcat lib folder and another in your project lib folder).

Without seing your project hard to advice otherwise...

If i read it correctly your insertValue is part of R.layout.add_item. If that is case then

final EditText insertValue = (EditText)findViewById(;

will be null because edit text was not found. You have to find it in coresponding view, so it should be like

final EditText insertValue = (EditText) addView.findViewById(;

I'm Android developer so to be fair no idea how services are done with Cordova. However here are some pointers

by the way cordova(phonegap)/Titanium is powerful tools to create native mobile apps

These tools are not native, they are cross platform, full stop.
Native mean Android written in Java or iOS writen in Objective C. Not bunch of html & JS or C#. They maybe useful for company that cannot or is not willing to invest in Android and iOS devs, however they will never be fast as native code and will always be behind with latest Android SDK.

javascript , html5 and cSS3 is not native android development. PhoneGap is now called Cordova and you can find their documentation here and for Titanium over here

  1. It is not textView but TextView
  2. Secondly like I mentioned previouly you can format text in similar way like CSS. Each elements of layout can be styled individually or under shared style.

Individual options besides layout_width and layout_height will include


These in case of TextView expand also to


and others. Just check out Android API like here for TextView
You can read more about styles here