SEO & Android

SHAKEEL

B.Sc Computer Engineer
Chaudhry Muhammad Shakeel Gujjer;
Sheikhupura, Pakistan,
Cell: +92-332-4010322;

I already have developed an application showing multiple Markers/points in mapview as shown in figure.

Multiple Markers

i want to start a new activity when i click on a red ballooned icon. The code i used for this purpose is posted in the post with the following link:

i also have the method onTap as follow:
@Override
public boolean onTap(int index) {
// TODO Auto-generated method stub

Intent inte=new Intent(mcon, Info.class);
inte.putExtra(“Value is”, 3000);
inte.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
mcon.startActivity(inte);
return true;
}

I also have modified my manifest file for the new activity intent.
but when i run the application and click on the any of the Red Ballooned Icon i a stuck in the problem and Force Close…..as below;
this happens while clicking on any of the red icons specifically…Please provide solution for this.
Starting New Activity when clicking on a Marker in android Google Maps.

I have found the solution after a lot more exploring this topic.

The solution lies in ItemizedOverlay class.

Just Create another class:

public class MyItemizedOverlay extends ItemizedOverlay<OverlayItem>{

private Context mcon;
private ArrayList overlayItemList = new ArrayList();
public MyItemizedOverlay(Drawable marker) {
super(boundCenterBottom(marker));
// TODO Auto-generated constructor stub
populate();
}

public void addItem(GeoPoint p, String title, String snippet){
OverlayItem newItem = new OverlayItem(p, title, snippet);
overlayItemList.add(newItem);
populate();

}

@Override
protected OverlayItem createItem(int i) {
// TODO Auto-generated method stub
return overlayItemList.get(i);
}

@Override
public int size() {
// TODO Auto-generated method stub
return overlayItemList.size();
}

@Override
public void draw(Canvas canvas, MapView mapView, boolean shadow) {
// TODO Auto-generated method stub
super.draw(canvas, mapView, shadow);
//boundCenterBottom(marker);
}

 

And in Main Activity file call the function form this class;

You have to set a drawable item to be shown on map.

MyItemizedOverlay   myitem=new MyItemizedOverlay(drawable);

list=MapView.getOverlays();

list.add(myitem);

GeoPoint Point1 = new GeoPoint(LatituadeValue, LongitudeValue);
myitem.addItem(Point1, “A”, “Pakistan”);

////If in any case your problem not resolved, then feel free to contact me:

Email: duniadeals@gmail.com;

Showing a Blinking Circle at Current Location.
 I have developed an android application returning me my current location as the values of longitude and Latitude, and using these two values it makes a Geo Point and animate the Map to this Geo Point.
 The map was animated to this Geo Point. And it shows a region in which I am existing.
 But how I can know that where I am standing in the map?
 After a lot more searching at Google I found the solution.
 Eclipse has the default implementation of this feature.
 You only have to add the following line of code in your application.
 Just make an object of MyLocationOverlay Class;

 MyLocationOverlay MLocOver=new MyLocationOverlay(context, MapView);
 //for Context use getApplicationContext;
 //MapView is the object of the mapview that you used earlier.
 myLocationOverlay.enableMyLocation();
 mapView.getOverlays().add(myLocationOverlay);


The Description of this post will be published very soon.

Mysql in a webpage

Architecture

Baba Bhullay Shah

Meta Tags

Meta Tags:

  • In black hat SEO, one of the main techniques is to spam and keyword stuff the site’s meta tags. Keyword stuffing is the use of a string of keywords that do not make sense and are not in sync with the actual content of the site.
  • In white hat SEO, the keywords that go into the meta tags are carefully chosen and logical. The keywords used are the same ones found on the pages of the site.

Content:

      Black hat SEO manipulates the site’s content to trick search engine bots into driving more traffic to the page. There are a number of ways this is done. One of the most often used one is creating and then hiding dummy keyword stuffed text on the website. The text is hidden by placing the text on a similar color background – usually, white text on a white background. It is visible to

search engines

    but not to human visitors.
  • The idea is to mislead search engines to direct users to the site. In fact, in a number of instances, visitors may encounter content that is starkly different from what they were really looking for. White hat SEO on the other hand takes a more straight forward approach. Here, on page content is keyword optimized while maintaining a natural, logical flow of the text. Users directed to the site find what they were looking for.
Follow

Get every new post delivered to your Inbox.

%d bloggers like this: