列表 第页
我是新来的机器人的研究与开发。我学会了如何使用XML file.But请帮助我知道该怎么做它来创建用户界面编程,而无需使用XML文件,特别是对超过的LinearLayout I am new to android developement. I learned how to create UI using XML f...阅读全文
我有一个布局由父RecyclerView与子Recyclerview在里面I have a layout consists of a Parent RecyclerView with a sub Recyclerview in it我知道,这是不是好放列表内的另一个列表中,但我必须这样我可以使用子列表的功能,如刷卡...阅读全文
如何将项目动态的机器人加入到微调?解决方案 微调微调=(微调)findViewById(R.id.mySpinner);ArrayAdapter<字符串> spinnerAdapter =新的ArrayAdapter<字符串>(这一点,android.R.layout.simple_spi...阅读全文
我在安装Android的工作室昨天,我试图用LogCat中看到日志。但并没有什么在logcat中显示。我用终端来运行 ./亚行logcat 。有用。有没有人可以使用的logcat在Android的工作室谁?I installed Android Studio yesterday, and I tried to use...阅读全文
很多很多Android的讨论集中在(显然,著名)Fingerpaint示例:Many, many Android discussions focus on the (apparently, famous) Fingerpaint sample:http://stackoverflow.com/a/16650524/2...阅读全文
我刚刚添加的应用程序引擎模块,以我的应用程序,并在同步,摇篮开始下载从行家的App Engine的拉链。 App Engine的zip文件大约是150MB +和使用Maven自动下载它,所以我决定手动下载应用程序引擎的Java SDK(appengine-java-sdk-1.9.6.zip),并手动安装十分缓慢。我有...阅读全文
我有一类称为FractalView延伸ImageView的。我的目标是绘制一个分形与此类具有整个屏幕的大小。这是我的活动的布局文件的唯一视图,比顶级的LinearLayout其他:I have a class called FractalView that extends ImageView. My goal is...阅读全文
我设置一个ArrayAdapter,我得到了以下错误:I'm setting an ArrayAdapter and I get the following error:Thread [ main] (Suspended (exception NullPointerException)) ArrayAdapt...阅读全文
中号想,我使用Facebook的Android SDK中做任务获取来自Facebook的Android中perticular相册中的所有照片,但问题是,我不知道是什么URL请求才能访问里面的照片专辑?m trying fetch all photos from perticular album from fa...阅读全文
我试图使用 playSoundEffect()方法来播放声音效果,单击按钮时,但到目前为止,其证明出于某种原因非常困难。 I'm trying to use the playSoundEffect () method to play a sound effect when a button is clicked, b...阅读全文
是有可能使用GPS或加速计android手机检测汽车的速度?is it possible to detect a speed of a car using GPS or accelerometer in android phone ?谁能给我的路线图,以实现这一点?can anyone give me the r...阅读全文
我想补充内alertdialog.But的alertdialog无法看到第二alertdialog..please帮我在此显示我的code AlertDialog alertDialog =新AlertDialog.Builder(myclass.this).create();alertDialog.setTitl...阅读全文
我需要完成所有的Android应用程序在运行活动被点击退出按钮时。我该怎么办呢?我想:在与退出选项,屏幕上的选项菜单。当我点击退出菜单,应用程序应该关闭。解决方案 您不应该在Android应用程序中实现的退出按钮。读http://groups.google.com/group/android-developers...阅读全文
是否有可能在其他应用程序,从检测到触摸事件,特别是刷卡?我想能够检测用户是否已刷卡左或右(即使是使用2个手指 - 但不是必需的)。或许有一个服务或广播我可以听。或做不到这一点,有一些API,或许我可以轮询说10次,第二次获得了触摸状态,我可以计算出其余的(为什么,我记得写的鼠标驱动程序频闪与输出的数量COM1端口808...阅读全文
在我的应用程序,我有大量的图像,我在硬$ C $图像视图C尺寸为60×60 DP显示。如何缩小图像尺寸为android系统中图像缩略图的大小。有没有编程的方式。因为想我跑我在不同的分辨率大小的设计布局应用程序可能会有所不同。我需要的是,如果我跑我的任何决议的设备图像的大小,应用程序不应该得到区别。如何做到这一点的机器人...阅读全文
我的TextView与动态变化的文本。本文包含类似&LT字符串; A HREF =myWord'> myWord< / A> 。我想要点击这个链接后myWord出现在EditText上的同一个活动。这是我的code:txt.setText(Html.fromHtml(...< A HREF...阅读全文
我使用的TableRow + TextView中作出的博客文章和答复一个简单的观点。在每一个的TableRow我把一个TextView现在我有两个问题:长于屏幕也不会自动包是多行的文本。它是通过的TableRow的设计?我已经设定 tr_content.setSingleLine(假); [更新]这已得到解决,我想我...阅读全文
我安装Android的工作室,并试图逃跑容易的项目。I installed android studio and tried to run easy projects.不过,我抓住了奇怪的错误消息:But I caught strange error message:Waiting for device./u...阅读全文
我想创建一个ByteArray的位图。I want to create a bitmap from a bytearray .我尝试以下codeS I tried the following codesBitmap bmp;bmp = BitmapFactory.decodeByteArray(data, 0,...阅读全文
您好朋友我已经做了双指缩放TextView的和它的工作很好,但问题是,当我缩小了TextView的位置改变了,我想的TextView的位置,在变焦过程中是固定的和缩小这是我的code 公共类MainActivity延伸活动{TextView的scaleGesture;ScaleGestureDetector scale...阅读全文
我要改变使用选择-XML文件按钮的背景颜色。我的做法基本上是从实例底部此页面一:http://developer.android.com/guide/topics/resources/color-list-resource.htmli want to change the background-color of a...阅读全文
我一直在检讨支持多画面文档在Android,我只是需要一些额外的澄清... I've been reviewing the Supporting Multiple Screens documentation on the Android and I just need some additional clarific...阅读全文
我希望能够使用相同的绘制重新present两个:和一样可绘制,并重新色基于某些方案值可绘制,使得端用户可以重新主题的接口。 I would like to be able to use the same drawable to represent both: and as the same drawable, an...阅读全文
我是新来的机器人。其实一个处理程序在首页的活动正在运行的每30秒检查网络连接。I'm new to android. Actually one handler is running in Home Activity A for every 30 sec to check the net connection.如果我...阅读全文
我有问题的内存不足我的位图。这是code:I have problem with out of memory with my bitmap. This is code:Uri bitmapPictureUri = intent.getParcelableExtra(TaskActivity.PHOTO);Bitma...阅读全文
我在android的一个初学者,在这里我有活动使用的Web服务:I am a begginer in android,here I have activity that use web service:SoapObject request = new SoapObject(NAMESPACE, METHOD_NAM...阅读全文
在该方式也是Android appcompat库与项目挂钩(如以code是连接可见的)?我试图重新命名它只是为了看看有什么要发生的事,我的项目给了我到处错误... In which way is android appcompat library linked with a project (where in cod...阅读全文
我刚才安装Android的工作室和我在从Eclipse的移植我的项目。当我尝试只运行该应用程序我的电话,这是4.4.2(API 19),我得到的错误失败[INSTALL_FAILED_OLDER_SDK] 。我build.gradle看起来是这样的:I just now installed Android Studi...阅读全文
我的目标是要在GSM / UMTS / LTE网络即按即说应用聊天;起初我想使用多播地址和对等无过载的服务器;不幸的是,经过深入调查,我发现,多播没有在GSM / UMTS / LTE网络允许,所以我必须使用服务器,以反弹VoIP的数据包。我不很喜欢这个解决方案,因为我有过载的服务器上,但我没有发现任何更好的解决方案。...阅读全文
有被称为在播放音乐的onCreate方法的功能... There is an function which is called on onCreate method of playing music...public void playBeep() {try {if (m.isPlaying()) {m.stop()...阅读全文
当我使用的登录按钮,在我的XML,我得到的例外,如下面的类不能被实例化:- com.facebook.login.widget.LoginButton(公开课,显示错误日志)我怎么能解决this.and我需要显示的登录页面我怎么能做到这一点。?这是我的XML < RelativeLayout的的xmlns:机器...阅读全文
这是我第一次在我的Android使用外部存储。我需要一些帮助,我怎么能执行不同的操作,例如如何检查外部存储器是否可用与否?又怎么写文件或图片入库。解决方案 如何检查外部存储器是否可用?使用 Environment.getExternalStorageState()。如何写文件或图片到存储使用标准的Java I...阅读全文
我想实现一个的FrameLayout在布局的中心和底部的一个TextView上的图像,因为它是在这里看到:http://developer.android.com/resources/articles/布局花招merge.html <的FrameLayout的xmlns:机器人=http://schemas...阅读全文
我有一个列表视图在滚动视图,但问题是,滚动型在滚动,但列表视图不滚动。我认为这是由于滚动视图。 I am having a listview inside a scrollview, but the problem is that the scrollview is scrolling but listview is...阅读全文
我要,我还没有找到答案的问题,对不起,如果反复我升级到SDK和ADT 17,然后每次都因为我打开了通向一个项目,例如,广告AdMob的谷歌给我的错误:I have a question to which I have not found an answer, sorry if repeatedI upgraded...阅读全文
我用一个网站看到图像的元数据。在这个网站上,它显示了图像的所有信息。我想知道如何得到上图的标题标签的机器人。I've used a website to see the metadata of a image. In this website, it shows all info of image. I want...阅读全文
您好我现在用的图表引擎来显示android.In饼图我的code我想说明的标签和区域对应于legend.But,淡水河谷,我无法获取one.Please能值任何一个可以帮助me.Thanks提前。Hi I am using A chart Engine to display pie chart in android....阅读全文
我想分享文字+图片使用ACTION_SEND在Android中,我使用低于code,我只能共享图片,但我不能分享它的文字,I want to share Text + Image using ACTION_SEND in android, i am using below code, i can share only...阅读全文