Discussion Forums  >  Maps, Device Location, Tracking

Replies: 3    Views: 100

Geo3d
Aspiring developer
Profile
Posts: 31
Reg: Apr 19, 2012
location unknow...
910
04/22/12 08:34 AM (13 years ago)

Load URL screen (Google Map) results in java class errors

Firstly, great product and look forward to utilizing it for Android specific applications. Secondly, As of right now I am using the stand-alone versions for testing. Problem: (note - this is for Android) Testing loading a URL that points to a Google Map which contains KML data; 1) Tested using buzztouch versions 1.4, 1.5, 2.0 2) URL load type screen - points to a google map page with my KML data 3) Eclipse shows errors in java classes: a) BT_item.java b) BT_screen_map.java note: specifically eclipse results in over 100 errors within those classes such as "cannot resolve mapactivity" "cannot resolve GeoPoint" etc 4) Ive checked the manifest and ensured a) permission internet b) library used "com.google.android.maps" 5) Ive included a google map key within strings.xml If someone could point to more that I may be overlooking to troubleshoot it would be very appreciated.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
04/22/12 11:28 AM (13 years ago)
Hi Geo3d. So you're not using the google maps plugin? Are you planning on using it for this app? If not, you can strip out the code containing the errors in the BT_item.java file and completely remove the BT_screen_map.java file. (as you strip out the code, more errors will appear - strip that code out too). If you're planning on using the maps plugin, there are some posts about this issue, can't remember the solution. The best way to find them is to use Fred's search engine at www.myskylla.com - if you can find it :) A stripped out BT_item.java file should look something like this (for BTv2.0): package my.package; import org.json.JSONObject; import android.graphics.Bitmap; public class BT_item { //properties private int itemIndex; private String itemId; private String itemNickname; private String itemType; private Bitmap image; private String imageName; private String imageURL; private String sortName; private boolean isHomeScreen; private JSONObject jsonObject; //default constructor public BT_item(){ this.itemIndex = -1; this.itemId = ""; this.itemNickname = ""; this.itemType = ""; this.imageName = ""; this.imageURL = ""; this.sortName = ""; this.image = null; this.isHomeScreen = false; this.jsonObject = null; } //constructor with values public BT_item(String itemId, String itemNickname, String itemType, String jsonVars){ this.itemIndex = -1; this.itemId = itemId; this.itemNickname = itemNickname; this.itemType = itemType; this.imageName = ""; this.imageURL = ""; this.sortName = ""; this.image = null; this.isHomeScreen = false; this.jsonObject = null; } //getters / setters public int getItemIndex() { return itemIndex; } public void setItemIndex(int itemIndex) { this.itemIndex = itemIndex; } public String getItemId() { return itemId; } public void setItemId(String itemId) { this.itemId = itemId; } public String getItemNickname() { return itemNickname; } public void setItemNickname(String itemNickname) { this.itemNickname = itemNickname; } public String getSortName() { return sortName; } public void setSortName(String sortName) { this.sortName = sortName; } public String getItemType() { return itemType; } public void setItemType(String itemType) { this.itemType = itemType; } public Bitmap getImage() { return image; } public void setImage(Bitmap image) { this.image = image; } public String getImageName() { return imageName; } public void setImageName(String imageName) { this.imageName = imageName; } public String getImageURL() { return imageURL; } public void setImageURL(String imageURL) { this.imageURL = imageURL; } public boolean isHomeScreen() { return isHomeScreen; } public void setIsHomeScreen(boolean isHomeScreen) { this.isHomeScreen = isHomeScreen; } public JSONObject getJsonObject() { return jsonObject; } public void setJsonObject(JSONObject jsonObject) { this.jsonObject = jsonObject; } }
 
Geo3d
Aspiring developer
Profile
Posts: 31
Reg: Apr 19, 2012
location unknow...
910
like
04/22/12 12:11 PM (13 years ago)
Hey Raveyd, what an excellent answer thank you; I also took the time to look at Fred's tutorial site - great source of information; he should be given a medal Thanks again!
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
04/22/12 12:22 PM (13 years ago)
No problem! Hope it helps. There's also a lot of good information written by GoNorthWest (Mark) in the "how To's". Link is at the top of this page.
 

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.