View Single Post
Old 06-01-2009, 07:45 AM   #3 (permalink)
polys
Knows Where the Search Button Is
 
Join Date: Dec 2008
Model: 8800
PIN: N/A
Carrier: O2
Posts: 15
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Dougsg38p View Post
Add this to your imports:

import net.rim.device.api.io.FileInputStream;
So i cannot use the Java libraries directly?

i.e. import java.io.*;

When i add

import net.rim.device.api.io.FileInputStream;

i still get the following errors:

Code:
C:\Java Programming\Application\code\MobileApplication.java:61: cannot find symbol
symbol  : constructor FileInputStream(java.lang.String)
location: class net.rim.device.api.io.FileInputStream
            FileInputStream fstream = new FileInputStream("IMG_0001.doc");
                                      ^
C:\Java Programming\Application\code\MobileApplication.java:64: cannot find symbol
symbol  : class BufferedReader
location: class code.MobileApplication
            BufferedReader br = new BufferedReader(new InputStreamReader(in));
            ^
C:\Java Programming\Application\code\MobileApplication.java:64: cannot find symbol
symbol  : class BufferedReader
location: class code.MobileApplication
            BufferedReader br = new BufferedReader(new InputStreamReader(in));
                                    ^
3 errors
Offline   Reply With Quote