Please help me, you all are my last change
Dear all,
I am new programmer of j2me.I have made a program which read data(text data) from a perticular webpage and after parsing it will show the data on a Form.When i run this program on PC using "J2ME Wireless Toolkit2.2" it works fine but when i run downloaded .jad/.jar file on a mobile it cannot read data from net shows "empty".All other part of the program run fine on mobile but cannot read data from a page.What should i do now.Please give me a solution,I am in deep trouble,please help me.My email address : [email protected]
Any help ,please send to this address.
Thank u all,
sumon.
Simple version of my program are as follows:
import java.io.*;
import javax.microedition.midlet.*;
import javax.microedition.io.*;
import javax.microedition.lcdui.*;
public class QuotesMIDlet extends MIDlet {
private Display display;
private String url = "http://www.yahoo.com";
public Form first_form;
public QuotesMIDlet() {
display = Display.getDisplay(this);
first_form = new Form("Updated list");
display.setCurrent(first_form);
public void startApp() {
try {
downloadPage(url);
} catch(IOException e)
first_form.append(new StringItem("","Error##"+e));
private void downloadPage(String url) throws IOException
StringBuffer b = new StringBuffer();
InputStream is = null;
HttpConnection c = null;
TextBox t = null;
try {
int ch;
c = (HttpConnection)Connector.open(url);
is = c.openInputStream();
//c.setRequestMethod(HttpConnection.GET);
while((ch=is.read())!=-1)
System.out.println("Charecter "(char)ch"Value of charecter "+ch);
first_form.append(new StringItem("# ",""+(char)ch));
//first_form.append(new StringItem("# ",""+is.read()));
catch(IOException e)
first_form.append(new StringItem("","Error##"+e));
finally {
is.close();
c.close();
public void pauseApp() {
public void destroyApp(boolean unconditional) {}
hello sumon,
try the following code in your downloadPage method.
unfortunately i don't have any PDA to check this out.
hope that it will give you an idea...
URL url = new URL("http://www.yahoo.com");
HttpURLConnection c = (HttpURLConnection)url.openConnection();
DataInputStream dis = new DataInputStream(c.getInputStream());
byte[] data = new byte[c.getContentLength()];
dis.readFully(data);
String strData = new String(strData);
//display data to form... or parse it prior to display.
regards
jo
Similar Messages
-
I switched from Mobileme to iCloud last night.
My iphone show all contacts properly.
But, I can't see any of contacts from my Mac and pc.
My all contacts are gone.
Please helpe to restore all my contacts.
I sync my ipone and mac.
Thanks,
dolphinYour signature says you have 10.6.2: is this correct? Lion 10.7.2 is required for syncing with iCloud - you cannot sync your contacts on 10.6.2. All you can do is go to http://icloud.com , select Contacts, click the top contact and then the bottom one while holding the shift key to select them all; click on the cogwheel at bottom left and choose 'Exort vCard'.
Then go to Address Book on your Mac, from the File menu choose 'Import' and select your vCard. This will restore the contacts to your Mac but they will not sync with iCloud. -
I lost all my pictures! Please help:( I added all my photo to a new album from the camera roll and i delete the picture that already move to new album, at last all my picture was gone !:'( Please, anyway to recover back all my photo? please help :'( Apple Service Center or Branch can help?
Albums is a way or sorting photos. Photos aren't moved from the Camera roll. The Camera Roll consists of all the photos on the phone. If you delete from Camera Roll they are deleted everywhere but Photo Stream.
Are you using Photo Stream? Your photos, providing they wer recent should still be in Photo Stream. If you have Photo Stream set up on your computer they should all be there. -
My phone 5 died and now it wont turn back on or seem to charge at all. I've tried several different charger cords and outlets. And all the phone will do is show the empty battery symbol. please help! Any suggestions are apprecaited!?! thanks
Hello Cooper,
Thank you for the details of the issue you are experiencing with your iPhone 5. I would be concerned too if my iPhone was not powering on. I found an article with steps you can take when you encounter an issue like this. I recommend following the steps below:
Will not turn on, will not turn on unless connected to power, or unexpected power off
Verify that the Sleep/Wake button functions. If it does not function, inspect it for signs of damage. If the button is damaged or is not functioning when pressed, seek service.
Check if a Liquid Contact Indicator (LCI) is activated or there are signs of corrosion. Learn about LCIsand corrosion.
Connect the iPhone to the iPhone's USB power adapter and let it charge for at least ten minutes.
After at least 30 minutes, if:
The home screen appears: The iPhone should be working. Update to the latest version of iOS if necessary. Continue charging it until it is completely charged and you see this battery icon in the upper-right corner of the screen . Then unplug the phone from power. If it immediately turns off, seek service.
The low-battery image appears, even after the phone has charged for at least 20 minutes: See "iPhone displays the low-battery image and is unresponsive" symptom in this article.
Something other than the Home screen or Low Battery image appears, continue with this article for further troubleshooting steps.
If the iPhone did not turn on, reset it while connected to the iPhone USB power adapter.
If the display turns on, go to step 4.
If the display remains black, go to next step.
Connect the iPhone to a computer and open iTunes. If iTunes recognizes the iPhone and indicates that it is in recovery mode, attempt to restore the iPhone. If the iPhone doesn't appear in iTunes or if you have difficulties in restoring the iPhone, see this article for further assistance.
If restoring the iPhone resolved the issue, go to step 4. If restoring the iPhone did not solve the issue, seek service.
My issue is still not resolved. What do I do next?
Contact Apple Support.
You can find the full article here:
iPhone: Hardware troubleshooting
http://support.apple.com/kb/TS2802
Thank you for using Apple Support Communities.
Best,
Sheila M. -
Hi Dude,
I ve seen all the threads from first to last even am gonna get a iphone 4s from Thailand. Would like to know which sim will be working fine in chennai as you all are using d phone for past many days??? Is it advisable to buy a phone from abroad.Thanks for that. Much more constructive than the last comment. It's only the restriction code I can't recall, not the access passcode. So I can currently access the device, just not age restricted content. Does that's make a difference? I also wondered if anyone knew how many attempts you get to try to get it right. Now tried 21 times and so far nothing bad has happened but I am concerned I'll eventually be completely locked out of the device. That doesn't seem in the spirit of things though. Surely it's foreseeable that a child could repeatedly try to guess the code so I can't see that it would be right to lock the device down completely in that circumstance, particularly if the access code is being typed in correctly every time.
Thanks -
hi, my new device was set up in the store that I bought it from. How can I transfer all old text messages over to my new device? I have followed the icloud back up steps on this page. Please help, thank you.
Its an iPhone 4
Message was edited by: zzziggy85Here is how
http://support.apple.com/kb/HT2109 -
XBox 360 and WRT54GS no one can fix this. Please help if you can?
I'm totally out of ideas here and would appreciate it if someone could help me? We have 2 XBox 360's both with the Microsoft XBox wireless adapters. My son has had his since they first came out whatever year that was. My youngest daughter got hers last October. Both XBox's connect to XBox LIVE without a problem via a Linksys WRT54GS wireless router. The problem we can't solve is - my oldest daughter and son-in-law live about a mile from us and they have an XBox 360. When we try to connect to their XBox (or anyone else that's local) to play against her and her husband, it won't connect and gives us a "Disconnected" prompt every time. They have no problem connecting to other XBox's locally but we, for some reason, can't. I can connect our XBox directly into our cable modem bypassing the Linksys and it connects to them, so it isn't the cable modem. I've changed settings on the router, internet, XBox with no luck. I've updated the firmware. I've read thru posts on the internet for weeks and now my brain is mush. Is this fixable or do I need to buy a new wireless router? Also, I don't know if this has anything to do with anything but we have 3 PC's and 3 DVR's also connected to the internet but are hard wired. My kids and grandkids have DSi's, a Playststion3, and a Wii and those all connect via wireless and work great. XBox has this WRT54GS listed as compatable. I'm stumped. I know there's some really sharp folks out there somewhere.......please help if you can? Thanks for any help you could offer!
Have you opened the ports on the router....?
If not then,you need to open ports 53-3074 on the router..Read this link. Also,under the security tab on the router,uncheck Block Anonymous Internet Requests and click on Save Settings... -
Hi. 2 days ago I bought a cd ATB. And yesterday I deleted everything from iTunes. Please help in recovering all purchased cd
Did you just delete them from iTunes, or did you also tell it to delete the music files from your Mac ? If just from iTunes then they might still be stored under /Users/username/Music - if they are then you can add them back via File > Add To Library
If not, then whether you can redownload music depends upon what country that you are in. If you can redownload music (and if you haven't changed countries since buying it and it's still in your country's store) then it should show under the Purchased link under Quicklinks on the right-hand side of the iTunes store homepage :
If you can't redownload music then do you have a copy of it on your backup of your downloads/library that you can copy it back from ? -
I installed lightroom 5 with a 30 day trial and it finished.
Yesterday I installed cc and when I open LR5 I need a serial number.
What do I do/how do I get one?
Please help, Thank you.Your photos remain in place, the catalog you have been using will remain. After you install Lightroom from the CC, all you have to do is open your existing catalog and continue right where you left off.
-
I cannot get my library to show up on my newly authorized computer, please help if you can.
I have home sharing enable on old computer and new one.
If I try to sync --I get the message that ipod can be synced w only one computer and if I sync with this library (which only shows new purchases from itunes) it will replace everything that is currently on ipodWhy can't the songs be transferred to the device? Is it because they are not authorized? Were these 25 tracks purchased/downloaded with the same account you have used to authorize the PC/new iTunes library?
Have you seen this article yet?
iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
B-rock -
I have an iPod Nano that is synced to my mac, but it is sent in for the battery issue. Anyway, I have bought a 2nd gerneration Ipod touch and I want to now sync it to my mac, but it does not show up in the left menu bar. Please help. Thanks All!
http://support.apple.com/kb/TS1591
There have been some problems accessing pages on the Apple web site. If the hyperlink gives you a "We're sorry" message, try again. -
Dear Sirs,
I had just upgraded my OS to the OS X Mavericks. After doing so, I noticed the following changes:
1) My MS Outlook for Mac 2011 does not sync with my Mac book's calendar/contacts/notes.
2) My iPhone4s does not sync with my Mac book's calendar/contacts/notes anymore.
Please help, thank you.
aawwiiCorrect, USB local sync was taken away from iphones and ipads with 10.9.1 and 2. We are not allowed to speculate on rumours it might come back in 10.9.3 plus new iTunes. Either wait and see or explore Syncmate 5 beta free trial.
icloud still works.
Cant help with the Outlook problem. -
As I was installing the Windows 7 on my Imacwith the bootcamp and stated how I wanted to divide the drive I put 160, but I want to add more space because of the adobe software it will not install two of them, so how can I add more on the drive space to from 160 to 250? please help thank you.
I'm not sure this is what you're looking for, but it might help:
"If you made the Windows partition too small
First, back up all the information on your Windows partition. Then run Boot Camp
Assistant to restore your disk to a single volume. Restart your computer and use Boot
Camp Assistant to partition the disk again and reinstall Windows. Don’t forget to install
the Boot Camp drivers after installing Windows."
(from Bootcamp Assistant Manual see pg 22) -
Hello - does anyone now how to place a complain for an over charged invoice over a in-purchase game? Apple is charging 10 times more the purchase we made and I cannot find anyplace in the App store to complain online or via email? Please help if you know
Use the Report a Problem link in the iTunes email receipt you received. Also in-app purchases can be made without the password if you bought the app within the last 15min. You should enable the in-app restriction in Settings.
-
When attempting to convert pdf to word doc, I continually get "An error occurred while signing in" despite the fact that I'm already signed in. Please help if you can?
Hi lorrelaws,
Do you receive that error when you try to sign in via Reader? If so, try signing in via the web interface. Did that do the trick?
Let us know how it goes.
Best,
Sara
Maybe you are looking for
-
Re-importing video from a disk burned in iPhoto
When I re-import from a backup DVD/CD burned using iPhoto burn, video files import as a photo rather than video. That is I only get the first frame as a photo. If I view the CD in iPhoto the video works properly. If I dig into the disk the video is t
-
Sorry! Conecting AppleTV 3 to a 27"14H Dell Monitor
Sorry, its the 2714H not 2713H Hi, I want to connect my AppleTV 3 to a 27"14H Dell Monitor without an HDMI Port. Is there an Adapter That will work with this Display?? The 2713H has a Standard Displayport, DVI, VGA or USB 2.0 available. And whats wit
-
Please help, i use to be able to reply coustomers inquiries just by searching photos by name and sending them on my Blackberry device ,these photos are catalogs that have details and price on them ,they save me a lot of time instead of explaining one
-
Arch Linux cheat sheet [PDF and ODG]
Hi, as far as I know, I already turn two Windows users to Arch, so I was thinking that would be nice to have a simple cheat sheet to help new users quickly. Somethings maybe wrong and thats why I'm asking for help and contributions. Many new things I
-
I love my Mac and have enjoyed nearly flawless operations for over 3 years now. Software update offered the latest Java version 6 update last week. I have downloaded other Java updates over the years and have never had any problems, so I downloaded v