getResources (). openRawResource Resources $ NotFoundException

0

I use the

InputStream input = getResources().openRawResource(R.raw.tabelas);

No problem in an application.

If you use the same command in a new application, the error occurs

android.content.res.Resources$NotFoundException: Resource ID #0x7f060001
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2325)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
            at android.app.ActivityThread.access$800(ActivityThread.java:151)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
            at android.os.Handler.dispatchMessage(Handler.java:102)
            at android.os.Looper.loop(Looper.java:135)
            at android.app.ActivityThread.main(ActivityThread.java:5254)
            at java.lang.reflect.Method.invoke(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:372)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
     Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f060001
            at android.content.res.Resources.getValue(Resources.java:1266)
            at android.content.res.Resources.openRawResource(Resources.java:1181)
            at android.content.res.Resources.openRawResource(Resources.java:1158)
            at rankingfute.ideiainformatica.br.rankingfutebol.PrincipalActivity.onCreate(PrincipalActivity.java:69)

Line 69 is exactly in command:

InputStream input = getResources().openRawResource(R.raw.pontuacao);

What's the difference, apart from the contents of the tables and punctuation files?

    
asked by anonymous 12.06.2015 / 16:27

0 answers