Recent use Baidu map api and demo offered to do the positioning, discovery provided with demo Baidu is possible to locate, but the positioning of the demo into my project to go inside and found to die. The main problem is that my project is tabActivity, while positioning the activity is one of a tab, so if you do not start this priority positioning activity found positioning is unsuccessful. Mainly:
Where the problem over this code and put my tabActivity start, so positioning is given less, but move it to the location of the next activity, you can normally positioned.
Internet access is also checked, they said adding a service:
android: enabled = "true"
android: process = ": remote">
This I've added in the configuration file, or the same problem, the problem is not the location of this service. Because I do not offer demo Baidu is a priority to start the positioning activity, which is a list by clicking to start the positioning activity and can be normal positioning.
Members seeking a solution to the Great God! ! ! ! ! Jijiji<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Great God it

Reply:
Nobody yet. . . . .

Reply:
Uh ~. . . Nobody, knot paste forget
Reply:
That service is to resolve conflicts authority, this does not matter to you, you can do in that tabactivity Intent Lane? Jump into the positioning of activity under
Reply:
Should be a little early to see the life cycle of android problem is that you use tabactivity a acitivitygroup, which contains many of his state when you switch the default is not to destroy the activity of the other. And by default will be destroyed when the activity switching current activity, so the next time you start re onCreate. You try to write onResume positioning method inside a try.
No comments:
Post a Comment