Java RequestLocationUpdate是否仅使用调试密钥?

Java RequestLocationUpdate是否仅使用调试密钥?,java,android,localization,android-manifest,Java,Android,Localization,Android Manifest,如果我通过USB安装,我的应用程序运行良好,但是如果我通过市场安装,或者上传到任何地方,然后用手机下载,我不会得到任何位置更新 你知道为什么会这样吗 一些(crypled)Java: package com.tripr; 公共类MyWallperService扩展了WallperService{ @凌驾 公共引擎onCreateEngine(){ 返回新的立方发动机(此); } 类CubeEngine扩展引擎实现LocationListener{ 私人网络服务; 私人位置经理lm; 立方发动机(

如果我通过USB安装,我的应用程序运行良好,但是如果我通过市场安装,或者上传到任何地方,然后用手机下载,我不会得到任何位置更新

你知道为什么会这样吗

一些(crypled)Java:

package com.tripr;
公共类MyWallperService扩展了WallperService{
@凌驾
公共引擎onCreateEngine(){
返回新的立方发动机(此);
}
类CubeEngine扩展引擎实现LocationListener{
私人网络服务;
私人位置经理lm;
立方发动机(mymws){
mws=mymws;
lm=(LocationManager)getSystemService(Context.LOCATION\u服务);
requestLocationUpdates();
MyThread MyThread=新的MyThread(lm.getlastnownlocation(LocationManager.NETWORK_PROVIDER));
myThread.start();
}
void requestLocationUpdates(){
lm.RequestLocationUpdate(LocationManager.NETWORK_提供程序,1000*30,10,本);
}
void removeUpdates(){
lm.移除更新(本);
}
@凌驾
已更改位置上的公共无效(位置){
MyThread MyThread=新的MyThread(位置);
myThread.start();
}
}
以及AndroidManifest.xml:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.tripr"
      android:versionCode="1"
      android:versionName="1.0">
    <uses-sdk android:minSdkVersion="7" />

  <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
  <uses-permission android:name="android.permission.INTERNET" />


  <uses-feature android:name="android.software.live_wallpaper" />

    <application android:icon="@drawable/icon" android:label="@string/app_name">

        <service android:name=".MyWallpaperService"
            android:label="@string/app_name"
            android:icon="@drawable/icon"
            android:permission="android.permission.BIND_WALLPAPER">

            <intent-filter>
                <action android:name="android.service.wallpaper.WallpaperService" />
            </intent-filter>
            <meta-data android:name="android.service.wallpaper"
                android:resource="@xml/livewallpaper" />

        </service>

    </application>
</manifest>

对不起

现在,我也没有得到位置更新与调试键,所以错误是在其他地方

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.tripr"
      android:versionCode="1"
      android:versionName="1.0">
    <uses-sdk android:minSdkVersion="7" />

  <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
  <uses-permission android:name="android.permission.INTERNET" />


  <uses-feature android:name="android.software.live_wallpaper" />

    <application android:icon="@drawable/icon" android:label="@string/app_name">

        <service android:name=".MyWallpaperService"
            android:label="@string/app_name"
            android:icon="@drawable/icon"
            android:permission="android.permission.BIND_WALLPAPER">

            <intent-filter>
                <action android:name="android.service.wallpaper.WallpaperService" />
            </intent-filter>
            <meta-data android:name="android.service.wallpaper"
                android:resource="@xml/livewallpaper" />

        </service>

    </application>
</manifest>