you are using j2me... wrong group... this is for android...

2009/2/26 silver <[email protected]>:
>
> Hi People;
>
> I am trying to solve my problem about InputStreamReader returns
> null..I have a Login screen which checks the configuration file.
> and here is the configuration class
>
> import java.io.*;
>
> import j2me.microtools.BufferedReader;
> import j2me.microtools.BufferedWriter;
> import j2me.microtools.FileReader;
> import j2me.microtools.FileWriter;
>
>
> /** Configure helps the loading and saving of configuration data.
>  */
> public class Configure
> {
>  protected void loadFile(String file,boolean define)
>   {
>      if (file==null)
>      {
>         return;
>      }
>      //else
>      BufferedReader in=null;
>      FileInputStream fIn = null;
>      String root = new String("//data//data//com.sam.nos//files//");
>      InputStreamReader isr = null;
>
>      try
>      {
>          //define null degilse burası android
>          if(define != false){
>
>                  fIn = Login.me.getApplicationContext().openFileInput(file);
>                 // fIn = new FileInputStream(root + file);
>
>                  isr = new InputStreamReader(fIn);
>
>               in = new BufferedReader(isr);
>
>          }
>
>
> As you can see i use the context of Login widget  I can see the fIn
> constructs correct but isr is null..
> What would be the problem.. any suggestion?
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to