peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

SharedPreferences is the simplest way to persist your app changes

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

Without seeing actual poms it is hard to advice. Nevertheless Maven shoul dbe warning you about double imports of same package, given that project A needs B and C you should not be adding these again.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You searching wrong name it is DCentral 1 by John McAfee. Secondly your question is very generic...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Android documentation is your friend http://developer.android.com/training/implementing-navigation/nav-drawer.html besides code snippets you can also download whole working sample and examinate it in your own time

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
ravi142 commented: @Thank you +2
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Emulator is notoriously slow and developers avoid it and use real device. Your machine should have more 8GB of RAM so you can assign extra memory for emulator when you create/edit it so it has at least 2GB. You should also make sure that you are using Intel images for emulator

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Or even better learn Wicket framework

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

This is not Android/iOS/Windows phone with regular operating system update. You should check LG site for updates, but there is no guaranty it will lead to Java update since device is using Java Microedition which is sort of dead since 2008/2009

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Never heard of such think. You can map JSON to Java class with GSON or Jackson, but these are mapped to specific parameter of JSON

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Sorry I would suggest to ask directly on cordova mailing list, because as far I'm aware there is nobody here with interest of Android apps through 3rd party libraries

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Obviously start with reconding, decide on encryption and how each side will verify the other side, encrypt data and send chunks of it

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I know it is possible, nevertheless it is completelly conter productive and Google would strongly advise against such think. Consider reading design guidelines

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Who ever designed your design has no idea about design for mobile devices. To have tabs inside tabs would be just stupid. Instead you should use navigational drawer to show set of options (first set of tabs) and on selection from here you show in main view appropriate set of tabs

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@donnasander you been close it is Java however it is manipulating AWT that is not part of Android framework

@Stefan_1 have look on this article from stackoverflow should help you http://stackoverflow.com/questions/17826358/drag-and-move-a-circle-drawn-on-canvas

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Here are all anwerd you need

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Keep It Organized

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

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Keep It Organized

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

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Keep It Organized

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

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

Without any actual error people are not gone be able to help you.

Also please make sure you folleoded instructions how to deploy to device and that device is registered http://goo.gl/TPK2uU (I had to use google url shortener as daniweb formatting did not liked msdn url format)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

try

adb devices
adb shell pm set-install-location 2
adb shell pm get-install-location
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Well either you posted wrong code piece or you did not implemented this yet and trying to trick us in doing your work.

Either way there is no send button and no action associated with it to do what you ask to do

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

build.xml is used by Ant to provide specific instruction how to build your project https://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html

Similary Maven uses pom.xml tutorial and Gradle uses build.gradle tutorial

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@JamesCherrill not all using Java 8 yet :P

@James_30 given that you mention build.xml I believe you have Ant build and your IDEs (NetBeans, Eclipse) do know where to find joda jar in libs folder. However if you compiling from command line you need to include also path to any jar on compile time

Example (please correct me if wrong, didn't do this in ages...)

java -classpath C:\PATH_TO\joda-time-1.6.2.jar my.application.package.name
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Not working is rather bad description. If you post any error/crashes you gettng perhaps someone may help you...

Jimmy Gim commented: same feeling with you +0
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

From my point of view IntelliJ is far better then Eclipse handling build tools like Maven and Gradle (second is becoming more and more popular, well I have to addmit I do use it for Android development)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

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

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Since you did not specified exact problem I can only point you to Facebook oficial documentation https://developers.facebook.com/docs/android/share

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

From command line you can execute

android sdk list -a

For windows you may have to go with android.bat it is ages since I did Android setup on Windows machine

to get list of all available updates. I get something like this

Refresh Sources:
  Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml
  Validate XML
  Parse XML
  Fetched Add-ons List successfully
  Refresh Sources
  Fetching URL: https://dl-ssl.google.com/android/repository/repository-10.xml
  Validate XML: https://dl-ssl.google.com/android/repository/repository-10.xml
  Parse XML:    https://dl-ssl.google.com/android/repository/repository-10.xml
  Fetching URL: https://dl-ssl.google.com/android/repository/addon.xml
  Validate XML: https://dl-ssl.google.com/android/repository/addon.xml
  Parse XML:    https://dl-ssl.google.com/android/repository/addon.xml
  Fetching URL: https://dl-ssl.google.com/android/repository/addon-6.xml
  Validate XML: https://dl-ssl.google.com/android/repository/addon-6.xml
  Parse XML:    https://dl-ssl.google.com/android/repository/addon-6.xml
  Fetching URL: https://dl-ssl.google.com/glass/gdk/addon.xml
  Validate XML: https://dl-ssl.google.com/glass/gdk/addon.xml
  Parse XML:    https://dl-ssl.google.com/glass/gdk/addon.xml
  Fetching URL: https://dl-ssl.google.com/android/repository/extras/intel/addon.xml
  Validate XML: https://dl-ssl.google.com/android/repository/extras/intel/addon.xml
  Parse XML:    https://dl-ssl.google.com/android/repository/extras/intel/addon.xml
  Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml
  Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml
  Parse XML:    https://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml
  Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml
  Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml
  Parse XML:    https://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml
  Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml
  Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml
  Parse XML:    https://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml
  Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml
  Validate XML: https://dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml
  Parse XML:    https://dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml
Packages available for installation or update: 110
   1- Android SDK Tools, revision 23.0.2
   2- Android SDK Platform-tools, revision 20
   3- Android SDK Build-tools, revision 20
   4- Android SDK Build-tools, revision 19.1
   5- Android SDK Build-tools, revision 19.0.3
   6- Android SDK Build-tools, revision 19.0.2
   7- Android SDK Build-tools, revision 19.0.1
   8- Android SDK Build-tools, revision 19
   9- …
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@Taimur_1 Hey I want to be rich, do it for me!

This is sort of attitude and post we do not like to see around...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

google play services are at the bottom after all api levels as you can see here https://cdn.tutsplus.com/mobile/uploads/2014/02/android-play-services-sdk-manager.png

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

JMeter will not similate problems with network like slow connection or disrupted...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Use BLE (Bluetooth Low Energy) and iBeacon. Take full advantage of those.

And how do you propose to transmit updates on cabs locations in oreder to work out journey duration or displaying cab locations on map?
iBeacons are good for transmiting pre-programmed information not for creating network that shares data across (that is so far my experience with them)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

In all seriousnes, I think you should try to join JUnit mailing and ask there.

These days builds tend to be based around Gradle (where you either use Gradle plugins or can reuse stuff from Maven or even Ant) or use Maven (however interest here is fading)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Unlikely as it will not teach you more advanced topics

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

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

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

Your SQL query is wrong

 "SELECT title, price, image1 FROM advert WHERE title, make,   `model LIKE '%%' "";`
  • You are having ``` in front of model
  • I have not sure what '%%'is supposed to represent
  • Also at the end you have two double quotes

To asure that your query is correct you can always connect to DB from command line and execute querry to check that it is returning corwct results

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Few options:

  1. Application will always request data from server so no real data storing on device (if requests are heavy it will be slow and expensive on data)
  2. On device data copy, application stores only essential data. So first it will check if data available on device. If YES it display them to user, if data are out of date it is up to user to run refres If data NOT available application automatically contacts server and sores received data (quite efficint if there is not large amount of data, also enables user to work in off-line mode)
  3. Synchronization, you provide some sync adapter to keep your app in synchronization with server DB here is tutorial from Google http://developer.android.com/training/sync-adapters/creating-sync-adapter.html
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Spring develeopers produceded documentation with official tutorials http://docs.spring.io/spring/docs/current/spring-framework-reference/html/index.html

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

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

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Sorry I never did this with POI.Given that so far nobody provided usable answer you may want to try their mailing list and ask directly contributors http://poi.apache.org/mailinglists.html

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Link here

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

So, yes if you develop an app and run whatever ad-service, I think you would be able to get similar or more gains, if not less, from the visits.

You forgetting app popularity and daily usage. If there are only few downloads and very few active users you not gone become Bill Gates any time soon. Secondly there are different ads companies so you better research who is offering what and how much you get before signing up with them

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@Slavi not exactly, question is how to get XSSFDrawing or XSSFPicture to some stream format that can be used to create image.

You should spent little more time reading question and have look on code, API before calling generic search for Java code ;)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Usually stuff like this is done directly on bank contract as they do not provide public APIs for such stuff to avoid DDOS or other attacks on their services.
Your only option will be web scraping where you need to work out URLs that bank is using. Then build request based on data provided to get page content and se something like Jsoup to look for specific elements and extract data
Good luck with it because this is very slow and painful process...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You have to check your Java server where kyou deploying that code for logs. It is not job of IDE to give you crash reports of server based Java application.

Secondly why the hell to use ugly scriptlets inside JSP instead of servlet????