Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 4    Views: 84

xtremeesolutions
Code is Art
Profile
Posts: 106
Reg: Nov 19, 2011
FootHill Ranch,...
6,610
04/09/15 12:10 AM (9 years ago)

Issues in plugin Flickr Images : The final steps

Hi Team, I have my own BT server account. And have purchased Flickr Images plugin. I have set-up my <a href="https://api.flickr.com" target="_blank" rel="nofollow">https://api.flickr.com</a> albums and got my APY key and PHOTOSET ID. I have made some changes which were necessary to run my code. 1. Changed URL from http to https. 2. Change string value of flickerApiKey from flickrApiKey to flickerApiKey. 3. Initialise variable screenObjectToLoadObject = null; screenObjectToLoadObject = new BT_item(); After all changes I am able to run my code and got all pics of my album in listview. Now the issue is when I click on any image in list it shows an alert message "Something's not right. Error Loading screen". When I debug my code. I found the class String nextScreenType = theScreenData.getItemType(); (as the result value is "Cr_flickr_image" ) and then open this class to view selected image from URL. String theActivityClass = "com.app3." + nextScreenType; Intent i = new Intent(parentActivity, Class.forName(theActivityClass)); i.putExtra("screenData", theScreenData.getJsonObject().toString()); if(theScreenData.isHomeScreen()){ i.putExtra("screenDataIsHomeScreen", "1"); } parentActivity.startActivity(i); Now the error show that "java.lang.ClassNotFoundException: com.app3.Cr_flickr_image". And I also not found any class with this name in my package. Please suggest if anyone done this job successfully. Thanks
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/09/15 06:01 AM (9 years ago)
Hmm - it should be Cr_flickr, not Cr_flickr_image. What does the JSON look like for the screen you're trying to load?
 
xtremeesolutions
Code is Art
Profile
Posts: 106
Reg: Nov 19, 2011
FootHill Ranch,...
6,610
like
04/09/15 06:06 AM (9 years ago)
My API is https://api.flickr.com/services/rest/?method=flickr.photosets.getPhotos&api_key=48a6dda850c5ce39a6a3767407b146f8&photoset_id=72157649496283944&format=json&nojsoncallback=1 and the JSON result is {"photoset":{"id":"72157649496283944","primary":"16887445028","owner":"132434304@N06","ownername":"nitesh.it85","photo":[{"id":"16887445028","secret":"fc7ef8ee86","server":"7641","farm":8,"title":"aaj-kuch-tufani-karte-hai-002-bike-overloading-funny-india1","isprimary":"0","ispublic":1,"isfriend":0,"isfamily":0},{"id":"16887444828","secret":"a0a4cd56f0","server":"8800","farm":9,"title":"funny-modified-vespa-scooter-473x600","isprimary":"0","ispublic":1,"isfriend":0,"isfamily":0},{"id":"16887671790","secret":"f31621a721","server":"8799","farm":9,"title":"funny-pictures-india-0031-tractor-accident-600x402","isprimary":"0","ispublic":1,"isfriend":0,"isfamily":0},{"id":"16887700310","secret":"f0dea65165","server":"8747","farm":9,"title":"water","isprimary":"0","ispublic":1,"isfriend":0,"isfamily":0},{"id":"17074512071","secret":"4c7508528a","server":"8758","farm":9,"title":"spoon","isprimary":"0","ispublic":1,"isfriend":0,"isfamily":0},{"id":"17075255195","secret":"1bec6f53f8","server":"7722","farm":8,"title":"morning","isprimary":"0","ispublic":1,"isfriend":0,"isfamily":0},{"id":"16887473558","secret":"85e45f7000","server":"8766","farm":9,"title":"laugh","isprimary":"0","ispublic":1,"isfriend":0,"isfamily":0},{"id":"17075255365","secret":"646b2c0ffa","server":"7695","farm":8,"title":"heart","isprimary":"0","ispublic":1,"isfriend":0,"isfamily":0},{"id":"16889025009","secret":"90ae07b0a0","server":"8788","farm":9,"title":"gold","isprimary":"0","ispublic":1,"isfriend":0,"isfamily":0},{"id":"16889025199","secret":"e5863c0d6e","server":"7654","farm":8,"title":"fan","isprimary":"0","ispublic":1,"isfriend":0,"isfamily":0},{"id":"17075255775","secret":"c2b5cea4f4","server":"7606","farm":8,"title":"capsule","isprimary":"0","ispublic":1,"isfriend":0,"isfamily":0}],"page":1,"per_page":500,"perpage":500,"pages":1,"total":"11","title":"funny"},"stat":"ok"}
 
xtremeesolutions
Code is Art
Profile
Posts: 106
Reg: Nov 19, 2011
FootHill Ranch,...
6,610
like
04/09/15 06:07 AM (9 years ago)
Also when I change Cr_flickr_image to Cr_flickr , it shows a white screen after click on any image from list // screenObjectToLoadObject.setItemType("Cr_flickr_image"); screenObjectToLoadObject.setItemType("Cr_flickr");
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/09/15 06:14 AM (9 years ago)
Well that's progress! I was actually messing with the iOS version yesterday and noticed their api changed slightly but enough to break it. I'll try uploading an update for both platforms later today
 

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.