小编Thi*_*lão的帖子

android中的经度和纬度为空

我有一个 GPSTracker 文件,但在 android M iam 的位置上得到了一个零......我请求你的帮助来解决这个问题......请参阅下面的代码

带有位置的片段和谷歌地图的网络视图

    public class ComoChegar extends Fragment {
EmpresaID item;

    public ComoChegar() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
       View tela = inflater.inflate(R.layout.fragment_como_chegar, container, false);
        Bundle id = getActivity().getIntent().getExtras();
        String Filial = id.getString("filial");
        if (isOnline()) {
            item = new EmpresaID(Filial);
            Autenticado(item);
        }
        else
        {
            android.app.AlertDialog.Builder alerta = new android.app.AlertDialog.Builder(getActivity());
            alerta.setMessage("Você está sem Acesso a Internet por favor …
Run Code Online (Sandbox Code Playgroud)

android geolocation android-fragments

3
推荐指数
1
解决办法
6112
查看次数

标签 统计

android ×1

android-fragments ×1

geolocation ×1