Android:从" raw"加载JSON-Fille目录

时间:2015-04-24 20:51:06

标签: android json jsonobject

我的项目出现了另一个问题。要在我的应用程序中显示一些全景图,请使用PanoramaGL lib。对于库,我使用JSON-File,它提供了一些设置,如何显示。我想让用户更改其中一些设置,例如加速度计旋转等。所以我需要在JSON-File中访问这些值。这就是我真正挣扎的部分。

文件位于原始文件夹中,PanoramaGL我传递的值如下:" res:// raw / json_k55"。

Context context = this.getApplicationContext();
pano = getIntent().getExtras().getString("pano");
panorama = new PLJSONLoader(pano);

if(panorama!=null)
    this.load(panorama, true, new PLTransitionBlend(2.0f));
}

由于我没有使用实际的HTTP-RequestgetRessource(),我真的不知道如何更改此文件的某些对象,例如点击按钮。 JSON文件位于:json_k55

0 个答案:

没有答案
相关问题