1. Download our Official Android App: Forums for Android!

Apps Read file in appWidget

Discussion in 'Android Development' started by intsurfer, Nov 10, 2010.

  1. intsurfer

    intsurfer Lurker
    Thread Starter
    Rank:
    None
    Points:
    26
    Posts:
    9
    Joined:
    Oct 30, 2010

    Oct 30, 2010
    9
    1
    26
    Oracle Developer
    Nizhniy Novgorod, Russia
    Hello world! :)

    I googled for a long time, but I've found no desision... The problem is:

    I have appWidget with the configuration activity where i create an xml file to save user's data. In appWidget I try to open that xml file with openFileInput(), but i got IOException. May be I do something wrong or there're some restrictions on using files in appWidgets?

    Thanks in advance!
     

    Advertisement

  2. mohitjaitly

    mohitjaitly Member
    Rank:
    None
    Points:
    15
    Posts:
    34
    Joined:
    Oct 18, 2010

    Oct 18, 2010
    34
    0
    15
    India
  3. intsurfer

    intsurfer Lurker
    Thread Starter
    Rank:
    None
    Points:
    26
    Posts:
    9
    Joined:
    Oct 30, 2010

    Oct 30, 2010
    9
    1
    26
    Oracle Developer
    Nizhniy Novgorod, Russia
    Thanks a lot, but I'd decided my problem by using SharedPreferences... Now I look for how to refresh my appwidget after configuration without deleting appwidget.
     

Share This Page

Loading...