English 中文(简体)
a. 绘制海星地图的路线
原标题:draw a route in android maps

在以下法典中:

if(c.moveToFirst())

    {


     do{


   longitude=Integer.parseInt(c.getString(0));


   latitude=Integer.parseInt(c.getString(1));


    p = new GeoPoint(latitude,longitude);


   geoPointsArray.add(p);


   theRouteDraw();


   }while(c.moveToNext());


     }

在c) cur获得数据库时,我储存了全球定位系统数据(动态、纬度)

          Cursor c=db.getAllData();

而且:

轨道(RouteDraw)是一种在两个全球定位系统点之间划线的方法。

我以上述方式在我的地点上进行。 我有所有这些观点,然后是这样。

我把它交给罗特达赫(RouteDraw)(在这里,这三点之间一线就是!!!

现在,我把上述法典拖延下来,以便用地标出Array[]点,并称之为RouteDraw(......)。

如果我不使用拖延,那么,在划定界线之前,我的 app被阻断,......它会进入许多需要连接的点!

怎样做呢? ?

最佳回答

您应使用单独的透镜来履行以下职能:theRouteDraw():见 类别和实例(例如)。

这将阻止你的 app。

问题回答

暂无回答




相关问题
Rails: Proxy Pass?

I ve got a web-app that I want to migrate to Rails, which is currently just plain HTML with an Apache proxy to another server, running a custom database/webserver that serves the site s dynamic ...

MVC routing is not handling one of my directories

I m using ASP.NET MVC with IIS 7.0. I ve got 404 errors hooked up fine through my Application_Error override. In addition to "Controllers", "Models", "Helpers" etc. I have a directory called Files ...

Ruby on Rails conditional routing

I have a site listing many jobs, but I also want each account to be able to access its jobs in one place. Thus, I am using these routes: map.resources :jobs map.resource :account, :has_many => :...

Clean URL s using OpenCart s router class

How do you write clean URL s in OpenCart using their built in Router class? Here is my .htaccess file: RewriteEngine On RewriteRule ^(system) - [F,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{...

subdomain routing to multiple controller issue

I have a site: www.mydomain.com where we have administrative controls hidden away from normal customer view. I would like to only access the administrative features under a subdomain such as admin....

Can controller names in RESTful routes be optional?

With a standard map.resource routing mechanics and several nested resources the resultant routes are unnecessarily long. Consider the following route: site.org/users/pavelshved/blogs/blogging-horror/...

Help with rails routes

Im having a little trouble setting up routes. I have a users controller/model/views set up restfully so users is set up to be a resource in my routes. I want to change that to be usuarios ...

热门标签