adt

Android: How to swipe between activities (not fragments), master/detail best set-up

本小妞迷上赌 提交于 2021-02-17 21:00:14
问题 I'm working on an android app and I'm fairly new to all this, including mobile app development, so I have a few questions. Any help would be amazing! 1) Is it possible to swipe between entire activities (including action bar)? And I don't mean like viewPager swapping between fragments, I mean swapping the entire screen (like snapchat does on iOS). Is this possible at all? And if so, how can I do this? 2) What is the best way to implement a master/detail type layout? Like twitter for instance,

Unable to use Eclipse's Scrapbook inside an Android project

天涯浪子 提交于 2021-02-07 02:36:36
问题 It is okay when I create a Scrapbook inside a normal Eclipse Java project, but when I create a Scrapbook inside an Android project, and enter a simple code like System.out.println("foo"); It said " Unable to launch the Scrapbook VM " As this method does not involve any Android library, why this does not work? 回答1: I ran into this problem today and i'm afraid that there is no way to run a scrapbook into an Android project, since i can't find a solution anywhere (and i've been looking for it

I am trying to deal a deck of 52 playing cards amongst 4 players equally, meaning they will each have 13 cards each. Can only deal cards 4 each

我与影子孤独终老i 提交于 2020-12-15 05:15:42
问题 I am trying to deal a deck of 52 playing cards amongst 4 players equally, meaning they will each have 13 cards each. I can only seem to deal 4 cards each and i'm not sure why. Any help would be great. I have also attached an image of the output : OUTPUT public void deals() { for (int i = 0; i < 4; i++) { System.out.println("** Player " + (i + 1) + " has been dealt the following cards: **"); for (int j = 0; j <4; j++) { //System.out.println(ranks[i + j * 4] + " of " + suits[j]); System.out

I am trying to deal a deck of 52 playing cards amongst 4 players equally, meaning they will each have 13 cards each. Can only deal cards 4 each

帅比萌擦擦* 提交于 2020-12-15 05:15:00
问题 I am trying to deal a deck of 52 playing cards amongst 4 players equally, meaning they will each have 13 cards each. I can only seem to deal 4 cards each and i'm not sure why. Any help would be great. I have also attached an image of the output : OUTPUT public void deals() { for (int i = 0; i < 4; i++) { System.out.println("** Player " + (i + 1) + " has been dealt the following cards: **"); for (int j = 0; j <4; j++) { //System.out.println(ranks[i + j * 4] + " of " + suits[j]); System.out

eclipse adt 搭建gradle的一些问题

我们两清 提交于 2020-04-12 17:39:14
一、国内封网,要设置gradle用代理(痛苦至极) gradle clean时会下载需要的文件,若用代理会导致失败 1.针对单个项目设置gradle代理 修改项目中的gradle.properties文件,增加配置项: systemProp.http.proxyHost=127.0.0.1 systemProp.http.proxyPort=10384 systemProp.https.proxyHost=127.0.0.1 systemProp.https.proxyPort=10384 2.如果想针对所有的gradle项目设置代理 可以在 GRADLE _USER_HOME下新建文件gradle.properties,然后设置代理。 GRADLE _USER_HOME的路径一般如下: /home/<username>/. gradle / (Linux) /Users/<username>/. gradle / (Mac) C:\Users\<username>\. gradle \ (Windows) 二、.gradle clean时出现版本不匹配错误 Error:Gradle version 1.10 is required. Current version is 2.9. If using the gradle wrapper, try editing the

Android 软件问题集锦:

╄→尐↘猪︶ㄣ 提交于 2020-04-07 01:45:12
1启动Eclipse 就出现 " SDK Platform Tools component is missing! ... "的提示框 ! 现象:1.Android项目都不会自动编译出R.java文件。 分析:这是由于 ADT工具版本 与 Android SDK Platform-tools Version不匹配造成的 解决:解决办法就是升级ADT插件的同时, 升级Android SDK Platform-tools Version。(不是 Android SDK Tools, revision 11 噢! ) Window > Android SDK and AVD Manager > Available Packages: + Android SDK Platform-tools, revision 3 安装完重启Eclipse即可。 查看已安装插件,包括各插件的版本号、提供者以及安装日志等信息。 Help > About Eclipse Platform(也可能是Instrallation Details) Plug-in Details 和 Configuration Details 来源: https://www.cnblogs.com/leeback/archive/2011/12/03/2274860.html

Android开发环境搭建(eclipse)

风格不统一 提交于 2020-04-05 22:27:30
使用的Eclipse的版本为: eclipse-java-indigo-SR2-win32 下载eclipse 点击菜单" Help " - " Install New Software... " 输入: http://dl-ssl.google.com/android/eclipse 点击"Finish",开始下载安装"ADT Plugin"。 +++++++++++++++++++++++++++++++++++++++++ 若在下载安装时出现如下问题: 1 Cannot complete the install because one or more required items could not be found. 2 ... ... 则需要先安装" WST Server Adapters ",安装办法:【"Help" - "Install New Software..."】 Work With: Indigo - Http://download.eclipse.org/releases/indigo 选择" Web, XML, Java EE and OSGi Enterprise Development "下的" WST Server Adapters ",如下图: 若安装时,无法连上源,试试菜单中的 help - Eclipse Marketplace 安装完成之后

(一)开发环境搭建

元气小坏坏 提交于 2020-03-27 11:35:47
1、环境搭建 JDK(Java Development kit),java的开发工具,因为android开发的基础语言是java,所以需要JDK工具 Eclipse:编辑器 Android SDK (Software Development kit):安卓软件开发工具 ADT(Andorid Development Tools):安卓开发工具,是以插件的形式搭建的 2、安装JDK 下载地址: http://www.oracle.com/technetwork/java/javase/downloads/index.html ,我这里下载最新版本 8u112 推荐使用最新版本 JDK安装 JDK集成了JRE JDK是java开发工具 JRE是java运行环境 环境配置: JAVA_HOME:指明JDK的安装路径 ------------------------ "E:\Java\jdk1.8.0_101" CLASSPATH:指明JAVA虚拟机要装载类的路劲------------ ".;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar" PATH:指明系统可以在任意路劲下识别JAVA命令----------- ";%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin" 需要注意:jdk 与 jre 必须 处于同一目录级中。

android - ADT本地配置、sdk配置

时光毁灭记忆、已成空白 提交于 2020-03-02 21:44:18
首先要到官网 http://developer.android.com/index.html 下载ADT和sdk对应版本的。 ADT配置:打开eclipse 如上图选择Install New Software 点击Add之后会出现如上图,在name位置写上一个名字,然后点击archive,选择ADT的位置(是个压缩包)然后依次按照步骤进行就可以了 主意在咱安装adt时要把网络断开,因为它会自动联网。这是针对本地安装的,所以没有必要联网。 SDK,关于sdk配置:当ADT安装完毕之后重启eclipse 然后点击windows 点击preference 然后找到sdk路径配置sdk,关于sdk模拟器配置,首先打开该文件夹 然后点击sdk Manager.exe就可以在线安装sdk的各个版本了。这里的sdk是在线安装的先安装sdk-tool然后安装需要的版本的android工具。 这样就配置好了android adt 和sdk了、、、 来源: https://www.cnblogs.com/newpanderking/archive/2012/05/26/2519150.html

Android开发三 如何安装 Android SDK 和Eclipse 插件

…衆ロ難τιáo~ 提交于 2020-03-02 21:42:23
所需开发环境: JDK 5 或 JDK 6 (仅有JRE不够) 、Eclipse 3.5 (galileo) 下载用于在Eclipse 开发android应用的ADT 插件 在企业开发中,很多程序员使用Eclipse IDE作为应用的开发环境。为了使得Android应用的创建,运行和调试更加方便快捷。Android的开发团队专门针对Eclipse IDE定制了一个插件:Android Development Tools(ADT) 下载地址: http://dl.google.com/android/ADT-0.9.7.zip 安装 Eclipse 插件 (ADT) 启动 Eclipse,选择 Help > Install New Software,在出现的对话框里,点击Add按钮,在对话框的name一栏输入“ADT”, 然后点击Archive...,浏览和选择已经下载的ADT插件压缩文件。 点击 OK.。返回可用软件的视图,你会看到这个插件,然后选择Developer Tools (会选中下面的“Android Developer Tools”和 “Android Editors“),点击 Next,最后重启 Eclipse。 下载安装Android SDK: Android SDK包含了开发Android应用所依赖的jar文件、运行环境及相关工具。 下载地址: http://dl