adt

Implementing stack using linked lists

心不动则不痛 提交于 2019-11-30 13:01:32
问题 What's the best way to implement a stack using linked lists in Java? EDIT: I would define best as most efficient using clean code. I have already used an array to implement a stack, but am not familiar with link lists so was wondering if anyone could help me implement something similar to below: public class StackArray{ private Object [] objArray; private int stackSize; public StackArray(){ objArray = new Object[50]; stackSize = 0; } public StackArray(int size){ objArray = new Object[size];

Android ADT 23 Update - Cannot complete the install because of a conflicting dependency

落花浮王杯 提交于 2019-11-30 11:55:46
问题 First, ADT update errors are frequently asked but I have tried to do everything mentioned in those other Question-threads but no success (with https and without, ADT23.zip download too). This is what I got when trying to update: Cannot complete the install because of a conflicting dependency. Software being installed: Android DDMS 23.0.0.1245622 (com.android.ide.eclipse.ddms.feature.feature.group 23.0.0.1245622) Software currently installed: Android Developer Tools 22.6.2.v201403212031

ADT安装好在Eclipse后运行模型Android提示Re-installation fai...

你。 提交于 2019-11-30 11:42:50
提示: Re-installation failed due to different application signatures. 解决方案 我在网上找到很多, 说什么可以直接在真机中删除该程序,重新执行即可,或在shell中直接adb uninstall <package name>后重新安装。 我一直不明白这句是什么意思。这时我就按adb unistall 是什么意思在google内查找,结果认我想出来了. 但 package name 又是什么呢. 这时我想到AndroidManifest.xml的配置文件内有这个参数 <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package=" com.example.android.apis " android:versionCode="1" android:versionName="1.0"> <application android:icon="@drawable/icon" android:label="@string/app_name"> <activity android:name=".ApiDemos" android:label="@string

linux x64系统android开发环境搭建

橙三吉。 提交于 2019-11-30 10:55:58
Linux Mint x64系统,eclipse也是64位,安装adt插件启动模拟器后报错: Failed to get the adb version: Cannot run program "/home/tsl0922/android-sdk-linux_x86/tools/adb": java.io.IOException: error=2, No such file or directory 原因是adt插件只有32的,在64位系统运行需要32位lib,使用getlibs可以帮助安装32位软件依赖,下载地址: http://frozenfox.freehostia.com/cappy/getlibs-all.deb 进入android-sdk-linux_x86/platform-tools目录下,执行命令: getlibs aapt 安装玩所需依赖后模拟器就可以启动了,但是导入adnroid工程运行后又出了问题: Android requires compiler compliance level 5.0. Please fix project properties 这是JDK版本不兼容导致的,解决方法: 1. 项目 右键 ->android tools ->Fix Project 2. 如果不可以,检查Project -> Properties->Java

Why shouldn't I set layout_width and layout_height in a style?

别说谁变了你拦得住时间么 提交于 2019-11-30 10:52:37
If I have a lot of TextViews serving as item labels, I thought I could extract everything that's common about them into a style, and in the layout use only <TextView style="@style/label" android:text="Foo"/> <TextView style="@style/label" android:text="Bar"/> with style like: <style name="label"> <item name="android:layout_width">wrap_content</item> <item name="android:layout_height">wrap_content</item> </style> But when I do this, it works fine on emulator and device, but the Android XML editor complains that "<TextView>" does not set the required layout_height attribute. Is there some reason

Eclipse+FindBugs - exclude filter files doesn't work

让人想犯罪 __ 提交于 2019-11-30 09:45:02
I'm using Windows and Eclipse 3.7 Classic with ADT plugin for Android development. I've just installed FindBugs and it have found a bug in auto-generated R.java class. I want to exclude this class from FindBugs checks. I've found that I can define exclude filters for FindBugs in xml file, so I've created a file D:\Projects\eclipse\FindBugsExculde.xml with text <FindBugsFilter> <Match> <Class name="com.android.demo.notepad3.R$attr" /> </Match> </FindBugsFilter> I've added this file to Eclipse -> Window -> Preferences -> Java -> FindBugs -> Filter files -> "Add..." button near the "Exclude

Eclipse ADT: Java was started but returned exit code=13

ⅰ亾dé卋堺 提交于 2019-11-30 09:05:42
问题 Could someone one clarify why my Eclipse (http://developer.android.com/sdk/index.html) from ADT won't start? Every time I'm getting this error: --------------------------- Eclipse --------------------------- Java was started but returned exit code=13 C:\Program Files (x86)\Java\jre7\bin\javaw.exe -Dosgi.requiredJavaVersion=1.6 -Xms40m -Xmx768m -Declipse.buildId=v22.0.5-757759 -XX:MaxPermSize=256m -jar C:\Users\Alexey\Desktop\tmp\adt-bundle-windows-x86_64-20130729\adt-bundle-windows-x86_64

Appium环境搭建简介

风流意气都作罢 提交于 2019-11-30 08:55:41
Appium测试环境的搭建相对比较繁琐 , 我的 电脑 为win7 64 位系统 , 以此为例。 官方首页 http://appium.io/ 给出了appium的安装步骤 : Easy setup process, run a test now. > brew install node # get node.js > npm install -g appium # get appium > npm install wd # get appium client > appium & # start appium > node your-appium-test.js 1.Node.js的安装配置 我们需要先安装node.js。根据你的操作系统选择相应的版本 从 node.js官方网站:https://nodejs.org/进行下载 安装完成,打开Windows 命令提示符,敲入“npm”命令回车。 如果出现如上图信息,表示node.js安装成功。 若未出现需要配置系统环境变量: 系统属性 --系统设置--高级设置--环境变量--编辑path 添加Node的安装路径D:\InstallationFolder\Node 2.Appium安装 方式一,npm安装: 这种方式的Appium 会很慢,为尊重官网上的介绍,而且大多Appium 相关资料也会介绍这种安装安装方式 npm

Not able to create new Project with ADT version 20

寵の児 提交于 2019-11-30 06:43:07
I have recently updated my ADT and it is now ADT_V20. I have also updated my SDK platform tools as well. But I am not able to create new Project through Project wizard from Eclipse. I have Eclipse Helios latest version. and It was working well with old ADT versions. In the project wizard I have reached upto Install Dependencies screen, where "Next" and "Finish" buttons are disabled. I have tried to "Install/Upgrade" new version as shown in the wizard and that process is completed successfully . Still I am not getting "Next" or "Finish" buttons enabled. This same thing happens on the other PCs

This Android SDK requires Android Developer Toolkit version 14.0.0 or above. … Please update ADT to the latest version

心已入冬 提交于 2019-11-30 06:22:41
Please help me with fixing the following error: This Android SDK requires Android Developer Toolkit version 14.0.0 or above. Current version is 12.0.0.v201106281929-138431. Please update ADT to the latest version. I am facing this error problem when I am using Eclipse. Vipul Shah The reason is that you have updated android sdk but your android adt plugin is not up to date. So updating your Eclipse plugin would resolve the problem. Korhan Ozturk This error happens due to an incompatibility between ADT and SDK. To fix it: Eclipse > Help Install New Software Add this to Work With section and