5,031 Posted Topics

Member Avatar for sach_ak47

you have to "hard code it" with use of array for example [CODE] String[] myArray={"zero", "one", two", "three"}; int num = 0; System.out.println(myArray[num]); num = 3; System.out.println(myArray[num]); [/CODE] first return will be string [B]zero[/B] and second one will be [B]three[/B]

Member Avatar for stultuske
0
2K
Member Avatar for Dani

Do not take me wrong, but I'm sort of dubious about voting for best snippet from less visited forum sections. For example I can do some snipped for Android, but how can I rich wide daniweb audience if only handfull people check Mobile Development section, and even less of them …

Member Avatar for L7Sqr
3
1K
Member Avatar for RabbitruN

Here is "little dirty" solution [code=Java] import java.util.*; import javax.swing.JOptionPane; public class RandomNumber { public static void main(String[] args) { String output=""; int[] arrayRan=new int[6]; int rand; for(int i=0;i<arrayRan.length;i++) { do //execute following line { rand =(int)(Math.random()*48)+1; }while(doesExists(rand, arrayRan, i)); //while return is true arrayRan[i] = rand; } Arrays.sort(arrayRan); for(int …

Member Avatar for sanketh_java
0
262
Member Avatar for chuyauchi

You cannot do it in emulator as you need real device. Then just look for motion sensor tutoriala as there are many with ball control/monitoring

Member Avatar for peter_budo
0
156
Member Avatar for hwoarang69
Member Avatar for liphoso

Yes, should be possible, just open new command line window, also would be good idea to start it as different version

Member Avatar for peter_budo
0
70
Member Avatar for otttt

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

Member Avatar for peter_budo
0
170
Member Avatar for peter_budo

I'm creating a jar file of my game to make it smaller and easier to transfer. I was able to created jar file out of my classes and include there images. Question is - how do I include txt file which is used for reading and writing?

Member Avatar for peter_budo
0
8K
Member Avatar for techyworld

APress - [Beginning J2ME From Novice to Professional](http://www.amazon.co.uk/Beginning-J2ME-Novice-Professional-Edition/dp/1590594797/ref=sr_1_1?ie=UTF8&qid=1350027366&sr=8-1), Chapter 12 Bluetooth and OBEX

Member Avatar for peter_budo
0
40
Member Avatar for solutionsinfini

Somebody who in bold lettering on his busines website claiming > India’s Fastest Growing Mobile Messaging & Cloud Telephony Company I consider your post spam. If I get across any similar like this ban will follow!

Member Avatar for peter_budo
0
77
Member Avatar for arcticM
Member Avatar for peter_budo
0
87
Member Avatar for Divinedar
Member Avatar for predator78

Just a check question. How many of you lived in communist country and had to go by the ideology? (No need to answer AD ;) ). My I live under the rule for almost 13 years, been told that Russia is the best and be great full for what we …

Member Avatar for mike_2000_17
2
734
Member Avatar for kisseric

As per forum rules I'm sure you seen on top of this section [URL="http://http://www.daniweb.com/forums/announcement8-2.html"]We only give homework help to those who show effort[/URL]

Member Avatar for manujkathuria
-4
1K
Member Avatar for bettybarnes

Well if you look on mobile phone as personal device used solelly by you then it is obviously only single user. However if you look on phone as device provided by company for company related activities (sale, stock check, tasking) it often gets shared by number of users. At the …

Member Avatar for peter_budo
0
126
Member Avatar for vishu.bhavsar

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

Member Avatar for london-G
0
182
Member Avatar for OmniX

You have to simply love [URL="http://www.w3schools.com/html/html_frames.asp"]w3schools.com[/URL] and all the examples which provides, [URL="http://www.w3schools.com/html/tryit.asp?filename=tryhtml_frame_mix"]mixed frameset[/URL] and [URL="http://www.w3schools.com/tags/tag_iframe.asp"]iframe[/URL]

Member Avatar for claytoncrivera
0
173
Member Avatar for muzamilsw10

I do not do Android development on Windows (MacOS and Ubuntu user) so I had to install ADT on my Windows 7. I had no problems. In ADT under Tools >> Manage Add-on Sites you can switch off all these other APIS (Motorola, Sony Ericsson etc) you really need only …

Member Avatar for peter_budo
0
127
Member Avatar for softswing

Power of the Google [FindBugs in Eclipse - Tutorial](http://www.vogella.com/articles/Findbugs/article.html)

Member Avatar for peter_budo
0
82
Member Avatar for davy_yg

Closing post as this question was asked multiple times. Please follow discussion [here](http://www.daniweb.com/web-development/php/threads/434978/sql-error)

Member Avatar for peter_budo
0
81
Member Avatar for m1n1m3

This has very little to do with Android database. Your question is server side development. Given to the fact that you did not decided what technologies to use it is hard to advice. Simple example, Battlefield 3 game uses web interface Battlelog to show players activities. We created Android app …

Member Avatar for peter_budo
0
238
Member Avatar for mechbas

There is a saying back in Slovakia that goes something like : The goose that been hit makes a sound. You just posted banch of warnings you received from McAfee obviously based on your results since trying to search for same results on net returns only this post. So we …

Member Avatar for stultuske
-2
316
Member Avatar for connoisseur2010

1) Java EE post should be made in JSP section of Web development (moved) 2) Did you had look on any projects so far? 3) Did you had any look on open source technologies that you may want to use in your project 4) Not being to come up with …

Member Avatar for peter_budo
0
200
Member Avatar for HTMLperson5

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

Member Avatar for peter_budo
0
578
Member Avatar for bikashjit

You need to connect this SDK with IDE like IntelliJ, Eclipse or NetBeans and use them to help you with coding ptocess

Member Avatar for peter_budo
0
61
Member Avatar for felgall
Member Avatar for Sana'a Ala'a

Generally it is bad idea to access DB directly or better to expose DB to outside world. Therefore it is better that you create service that can consume request and then return data that you need. This could be a simple servlet that listens for specific http requests and then …

Member Avatar for Sana'a Ala'a
0
82
Member Avatar for minimee120

Well why don't you try something. Your teacher wouldn't give you this assignment prior any lectures on Java, besides it is part of forum rules >Do provide evidence of having done some work yourself if posting questions from school or work assignments

Member Avatar for NormR1
0
221
Member Avatar for Arpita Asthana

Closing thread as it is getting countless bumps from students that are unable come up with project topic.

Member Avatar for priyanka.shinde
0
1K
Member Avatar for ougesh

Comeback when you decide which mobile platform you want to use and have problem to solve and not whole coursework (that is supposed to be works of your). Hence forum rule >Do provide evidence of having done some work yourself if posting questions from school or work assignments

Member Avatar for emond
0
141
Member Avatar for plasticfood

[ListActivity](http://developer.android.com/reference/android/app/ListActivity.html) will be automatically receognized by IDE if you used proper import statement and should be auto-suggested once starting to type. If this is not case you did not setup your environment for Android development properly

Member Avatar for plasticfood
0
86
Member Avatar for rm_daniweb

For the future rm_daniweb, nav33n and kkeith29 we do not wish to see any of such confrontations as in this thread. If original poster is unwilling to listen to your advice you better of with ignoring any further queries. For the original poster, if you get reply you are doing …

Member Avatar for talad
0
3K
Member Avatar for damaritah1

So where is your code? Part of learnig process is you trying first and when you have problem ask for help, not other way around which is called cheating

Member Avatar for peter_budo
0
63
Member Avatar for charming-_-eyes
Member Avatar for bettybarnes
Member Avatar for lse123

Since you talking about "Activity" and Java I presume that we are on Android topic. To have various languages in the application you just need to provide localizaton. Read more about it here [Localization](http://developer.android.com/guide/topics/resources/localization.html) and [Supporting Different Languages](http://developer.android.com/training/basics/supporting-devices/languages.html)

Member Avatar for lse123
0
191
Member Avatar for duyencaothi

Did you actually check and went through links provided in [Starting mobile development [SDK / tutorials / resources / faq]](http://www.daniweb.com/software-development/mobile-development/threads/302854/starting-mobile-development-sdk-tutorials-resources-faq) that is on top our Mobile section? Secondly you not saying which platform you are interested (Android/ iPhone / JME / Windows / other)

Member Avatar for peter_budo
0
104
Member Avatar for menukadevinda

As mentioned i the [other post](http://www.daniweb.com/software-development/mobile-development/threads/430788/how-to-enable-native-language-in-android-phone-) till Android comes with support of the language there is nothing that can be done. I warned you that using fonts is not what proper language support does

Member Avatar for peter_budo
0
94
Member Avatar for harinath_2007

You should use clean build option. For Eclipse you can find the rebuild option under Project > Clean and then select the project you want to clean up. This will build your project and create a new bin folder. (or give try to IntelliJ IDEA community version, it does all …

Member Avatar for harinath_2007
0
110
Member Avatar for vinnitro

Did you use NetBeans wizard to setup project or you manually set it up? What server you use? (Tomcat, GlassFish, Jetty,JBoss)

Member Avatar for vinnitro
0
946
Member Avatar for karthikprs
Member Avatar for isley
Member Avatar for lse123
Member Avatar for menukadevinda

Not aware that PhoneGap has support for Sinhala, and neither Android supports it naitivelly as far I'm aware

Member Avatar for menukadevinda
0
210
Member Avatar for slim.helu.92

Best IDE? There is none Most populare? There are few Most suitable? There is more of them Started with Notepad and command line so I can get exposed to compile process and all the warning and error messages you may see from it. Moved on to JCreator to help me …

Member Avatar for peter_budo
0
175
Member Avatar for turt2live
Member Avatar for JamesCherrill
0
182
Member Avatar for Dean_Grobler

Did you tried the troubleshooting option with [URL="http://developer.android.com/sdk/eclipse-adt.html#troubleshooting"]manual download[/URL]?

Member Avatar for bettybarnes
0
955
Member Avatar for harinath_2007
Member Avatar for ret801

What exactly you trying to achive(you said parse html but that is not enough) or what sort of data and what format you want to get this out as...

Member Avatar for ret801
0
138
Member Avatar for brood_snow

Of course because you use `i.next()` twice on same line therefore you move to possitions. So if you have followinf courses in arraylist {"math", "english", "java", "c++", "php"} when you come acrros `<%= i.next() %>` it will get **math** but when you hit `value="<%= i.next() %>"` it will get **english** …

Member Avatar for brood_snow
0
2K

The End.