连接自己的设备在Eclipse上安全地运行应用程序 [英] Connecting Your Own Device On Eclipse safely to run Application

查看:146
本文介绍了连接自己的设备在Eclipse上安全地运行应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Android手机运行Android 2.2版本。手机的名称是三星Galaxy S着迷。其Galaxy S的加拿大版,我认为。现在,我有很多保存在该手机特别是在我的SD卡的事情。

最近我一直忙于发展我的画布上,SurfaceView游戏。你可以看到在底部我的XML code。我一直在测试我的Eclipse模拟器我的比赛,但现在因为我的游戏多点触摸,我想测试我自己的Andr​​oid设备上。

此外,我已经安装在我的电脑上的三星KIES。

现在可以请你告诉我一个安全的方式,以测试我的游戏我的手机上没有我的手机内存或其他任何东西越来越损坏或类似的东西的可能性?

请给我一步一步的说明了详细的解答,因为我只有15岁,(如果我打破我的电话,我的父母会真的疯了)

请也告诉我的事情,我需要添加到我的XML文件,使之安全到我的手机上运行我的比赛。

所以,球员只是告诉我一步步的方式来帮助我的手机上运行我的游戏code ......我的code是真正安全的,因为它只是在surfaceView循环移动的图片。我只是想确保日食是我的设备安全,我想确保我的手机上运行不会破坏我的文件,照片和其他记忆的东西。

下面是我的清单文件。

 <?XML版本=1.0编码=UTF-8&GT?;
<清单的xmlns:机器人=htt​​p://schemas.android.com/apk/res/android
包=com.spaceshipgame.game
安卓版code =1
机器人:=的versionName1.0><采用-SDK安卓的minSdkVersion =10/><应用
    机器人:图标=@绘制/ ic_launcher
    机器人:标签=@字符串/ APP_NAME>
    <活动
        机器人:名字=泼水节
        机器人:标签=@字符串/ APP_NAME>
        &所述;意图滤光器>
            <作用机器人:名字=android.intent.action.MAIN/>            <类机器人:名字=android.intent.category.LAUNCHER/>
        &所述; /意图滤光器>
    < /活性GT;
     <活动
        机器人:名字=。MainGame
        机器人:标签=@字符串/ APP_NAME>
        &所述;意图滤光器>
            <作用机器人:名字=com.spaceshipgame.game.MAINGAME/>            <类机器人:名字=android.intent.category.DEFAULT/>
        &所述; /意图滤光器>
    < /活性GT;
    < /用途>< /清单>


解决方案

这是绝对安全到您的手机上测试应用程序(游戏)。 Eclipse是不实际的设备上运行。它所做的是它发送一个安装包到您的手机,如果它是从其他地方以正常方式安装安装您的应用程序在大致相同的方式。什么Eclipse一样,除了是,它是在一个由应用程序写了一些日志信息嗅探。这是完全安全的。


  1. 既然你已经在计算机上安装Kies的三星,您将安装必要的驱动程序。


  2. 所有你需要做的是在Eclipse中打开您的项目,然后运行的Andr​​oid应用程序。


  3. 然后,系统会提示您在设备上运行,从运行的设备列表中选择您的手机。


  4. 当你点击这个OK,你的应用程序将被发送到您的手机作为一个.apk文件,然后安装。


  5. 在安装后,它会自动运行。你会看到在LogCat中窗口在Eclipse的控制台窗口这一过程中的一些日志记录和详细的日志记录。然后你会看到你的应用程序在手机上启动。 LogCat中在Eclipse中也将显示你从你的应用程序code做任何记录。


注1:的结果
您的应用程序将只在下次从Eclipse开始时间重新安装。如果它正在运行,它会先自动关闭。

注2:的结果
在Eclipse安装完成后,您的应用程序将保留在手机上的任何其他安装的应用程序,所以当没有连接到你的电脑就可以正常运行。

如果您想从您的手机中卸载它,你可以从设置应用程序管理器做到这一点

解答您的意见:


  1. 您不必启用来源不明安装/从Eclipse中运行的时候,但你必须做,如果你想发送的apk电子邮件,并从那里安装。


  2. 您不必不仅使连接式充电,只要确保你不运行Kies的三星,以便没有syncronising完成。


  3. 您不需要设置的android:可调试=真正的。实际上它是建议你不知道。当您从在Eclipse中调试模式启动,它会自动将调试的。


  4. 您可以选择以电子邮件的.apk文件,并从那里运行它。在这种情况下,您必须启用从来源不明安装。安装自己的应用程序时,但可以肯定这有没有安全隐患,应关闭来源不明了,你已经安装了它之后。这是prevent任何意外通过点击网站或不是由您发送电子邮件一些链接,将安装不是由谷歌验证播放(这是在此设置的原因,可能有害的程序第1名)。


I have an Android phone running version 2.2 of the android. The name of the phone is "Samsung Galaxy S fascinate". Its the Canadian version of the Galaxy S I think. Now, I have a lot of things saved on this phone especially on my SD card.

Recently I have been busy developing my game on Canvas, SurfaceView. You can see my XML code on the bottom. I have been testing my game on my Eclipse emulator, but now since my game has multi-touch, I want to test it on my own android device.

Also I have Samsung kies installed on my computer.

Now can you please, tell me a SAFE WAY to test my game on my phone without the possibility of my phone memory or anything else getting corrupt or something like that?

Please give me a detailed answer with step by step instructions, because I am just 15 years old (and if I break my phone, my parents will be really mad)

Please also tell me things that I would need to add to my XML file, to make it safe to run my game on my phone.

So guys just tell me a step by step way to help run my game code on my phone...my code is actually safe because it's just moving pictures in a loop in surfaceView. I just want to make sure that eclipse is safe for my device, and i want to make sure that running on my phone won't destroy my files, pictures and other memory stuff

Here is my manifest file.

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.spaceshipgame.game"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk android:minSdkVersion="10" />

<application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name" >
    <activity
        android:name=".Splash"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
     <activity
        android:name=".MainGame"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="com.spaceshipgame.game.MAINGAME" />

            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity>
    </application>

</manifest>

解决方案

It is perfectly safe to test the app (game) on your phone. Eclipse is not actually running on your device. What it does is it sends an install package to your phone that installs your app in much the same manner as if it was installed from anywhere else in normal way. What Eclipse does in addition is that it is sniffing on some log messages that is written by the apps. This is perfectly safe.

  1. Since you have already installed Samsung Kies on your computer, you will have the necessary drivers installed.

  2. All you need to do is to open your project in Eclipse, and then run as Android Application.

  3. Then you are prompted to run on a device, you select your phone from the list of running devices.

  4. When you click OK on this, your app will be sent to your phone as an .apk file, and then installed.

  5. After installing, it will run automatically. You will see some logging of this process in the Console window in Eclipse, and more detailed logging in the LogCat window. Then you will see your app start on the phone. LogCat in Eclipse will also display any logging you do from your app code.

Note 1:
Your app will just be reinstalled the next time you start from Eclipse. If it is running, it will first be closed automatically.

Note 2:
After installed from Eclipse, your app will remain on the phone as any other installed app, so you can run it normally when not connected to your computer.

If you want to uninstall it from your phone, you can do this from the Application Manager in Settings.

Answers to your comments:

  1. You don't have to enable "unknown sources" when installing/running from Eclipse, but you must do that if you want to send .apk in email and install it from there.

  2. You don't have to make the connection type charge only, just make sure you don't run Samsung Kies so that no syncronising is done.

  3. You do not need to set android:debuggable="true". Actually it is recommended that you don't. When you start from debug mode in Eclipse, it will automatically be "debuggable".

  4. You can choose to email the .apk and run it from there. In this case you must enable to install from "unknown sources". There are no security risks for this when installing your own app, but to be sure, you should turn off "unknown sources" again after you have installed it. This is to prevent any "accidents" by clicking on some link on web sites or emails not sent by you, that will install a potentially harmful app that is not verified by Google Play (which is the reason for this setting in the first place).

这篇关于连接自己的设备在Eclipse上安全地运行应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆