Discussion Forums  >  Config Data, JSON, App Refresh

Replies: 4    Views: 396

Shubhojit
Android Fan
Profile
Posts: 21
Reg: Nov 02, 2014
bangalore
210
12/25/14 01:02 AM (9 years ago)

JSON data error! Please help!

Am getting some error in the json data. Please try to fix the error and post. I am very new to app making so this can be a very simple one. Can anyone please help me out?! Data--> package com.subhojit.recharge; import android.content.Context; import android.content.pm.PackageManager; import android.content.pm.PackageManager.NameNotFoundException; public class Onitemclickhelper{ static int[] ids = {R.drawable.guvera}; static String[] title = {"Guvera Music"}; static String[] description = {"Guvera brings millions of songs from the worldÕs biggest artists right to your pocket. "}; static String[] links= {"com.guvera.android"}; //static String[] market={"http://yeahmobi.go2cloud.org/aff_c?offer_id=31633","http://yeahmobi.go2cloud.org/aff_c?offer_id=30467&aff_id=15602","http://yeahmobi.go2cloud.org/aff_c?offer_id=17631","http://yeahmobi.go2cloud.org/aff_c?offer_id=29239"}; static String[] market={"http://tracking.tapge.com/aff_c?offer_id=25396&aff_id=2376","http://tracking.tapge.com/aff_c?offer_id=24692&aff_id=2376","http://tracking.tapge.com/aff_c?offer_id=25330&aff_id=2376","http://tracking.tapge.com/aff_c?offer_id=24446&aff_id=2376","http://tracking.tapge.com/aff_c?offer_id=25604&aff_id=2376"}; //public static int POINTS = 0; Onitemclickhelper(){ /* //Put the package name here... boolean installed = appInstalledOrNot("com.Ch.Example.pack"); if(installed) { //This intent will help you to launch if the package is already installed Intent LaunchIntent = getPackageManager() .getLaunchIntentForPackage("com.Ch.Example.pack"); startActivity(LaunchIntent); System.out.println("App already installed on your phone"); } else { System.out.println("App is not installed on your phone"); } } private boolean appInstalledOrNot(String uri) { PackageManager pm = getPackageManager(); boolean app_installed = false; try { pm.getPackageInfo(uri, PackageManager.GET_ACTIVITIES); app_installed = true; } catch (PackageManager.NameNotFoundException e) { app_installed = false; } return app_installed ;*/ } public boolean isPackageInstalled(String packagename, Context context) { PackageManager pm = context.getPackageManager(); try { pm.getPackageInfo(packagename, PackageManager.GET_ACTIVITIES); return true; } catch (NameNotFoundException e) { return false; } } } Thanks in advance
 
Dusko
Veteran developer
Profile
Posts: 998
Reg: Oct 13, 2012
Beograd
22,680
like
12/25/14 08:22 AM (9 years ago)
This does not seem to be Buzztouch code. Maybe you should go to StackOverflow and ask there?
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
12/25/14 11:57 AM (9 years ago)
This is java code not json .what plugin/screen are you using?
 
Shubhojit
Android Fan
Profile
Posts: 21
Reg: Nov 02, 2014
bangalore
210
like
12/26/14 02:02 PM (9 years ago)
Issues solved!
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
12/26/14 02:35 PM (9 years ago)
what was the issue?
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.