Questions tagged «android»

Android是Google的移动操作系统,用于对数字设备(智能手机,平板电脑,汽车,电视,Wear,Glass和IoT)进行编程或开发。对于与Android相关的主题,请使用特定于Android的标签,例如android-intent,android-activity,android-adapter等。对于与开发或编程无关但与Android框架相关的问题,请使用以下链接:https:// android.stackexchange.com。

4
Google App已发布在内部测试轨道上,但找不到/下载
我已经成功完成了将APK发布到内部测试跟踪的过程。但是,当我尝试使用下面的屏幕快照中的“在GOOGLE PLAY上查看”链接查看要在Google Play商店上下载的应用时,... ...它会打开一个新窗口,并显示以下错误: 我还尝试过使用测试人员链接“将其下载到Google Play”。下面... ...但是它会导致相同的消息,说明找不到该应用程序。 这是该应用程序首次发布,并且正在内部测试轨道上进行。 自动化测试收到了一些警告和小问题,但没有错误: 有人遇到过这个问题吗?我已经与Google支持人员联系以寻求建议,但我认为也值得在这里尝试一下,看看是否有人对下一步的建议有任何建议。谢谢。

13
Eclipse JUNO无法启动
当我启动Eclipse时,它不会启动。 出现错误,告诉我查看日志文件。 “查看日志文件:/Users/max/work/projects/.metadata/.log” 操作系统:MacOS 10.7.4 Eclipse:4.2 Juno ADT:20 我的旧版本Eclipse可以正常启动。 !SESSION 2012-07-03 16:22:48.261 ----------------------------------------------- eclipse.buildId=I20120608-1400 java.version=1.6.0_33 java.vendor=Apple Inc. BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=ru_RU Framework arguments: -product org.eclipse.epp.package.java.product -keyring /Users/max/.eclipse_keyring -showlocation Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.java.product -keyring /Users/max/.eclipse_keyring -showlocation !ENTRY org.eclipse.core.resources 2 10035 2012-07-03 16:22:50.101 !MESSAGE …



9
如何在活动启动时滚动到ScrollView的底部
我正在ScrollView中显示一些数据。在活动启动时(方法onCreate),我将数据填充到ScrollView中,并希望滚动到底部。 我尝试使用getScrollView().fullScroll(ScrollView.FOCUS_DOWN)。当我将其作为单击按钮时的动作时,此方法有效,但在onCreate方法中不起作用。 有什么方法可以在活动启动时将ScrollView滚动到底部吗?这意味着第一次显示时视图已经滚动到底部。
96 android  scroll 

9
如何在TextView中显示双引号(“)符号?
我正在尝试在xml文件的文本视图中用双引号显示一些单词。但是它不起作用。请帮助我。 <TextView style="@style/TextStyle" android:text="message "quote string 1" and "quote string 2" end message" android:id="@+id/lblAboutPara3" android:autoLink="web"/> 任何人都知道解决方案……。
96 android 

6
如何在Android中获取uri的图像资源
我需要打开一个意图以查看图像,如下所示: Intent intent = new Intent(Intent.ACTION_VIEW); Uri uri = Uri.parse("@drawable/sample_1.jpg"); intent.setData(uri); startActivity(intent); 问题是那Uri uri = Uri.parse("@drawable/sample_1.jpg");是不正确的。
96 android  uri 

10
如何将Apache HTTP API(旧版)添加为Android M的build.grade的编译时依赖项?
如前所述这里,Android的M将不支持的Apache HTTP API。该文档指出: 请改用HttpURLConnection类。 要么 要继续使用Apache HTTP API,必须首先在build.gradle文件中声明以下编译时依赖性: android {useLibrary'org.apache.http.legacy'} 我已经将项目对HttpClient的大部分用法转换为HttpURLConnection,但是,我仍然需要在一些领域中使用HttpClient。因此,我试图将“ org.apache.http.legacy”声明为编译时依赖项,但在build.gradle中遇到错误: 找不到Gradle DSL方法:“ useLibrary()” 我的问题是:如何在项目中将“ org.apache.http.legacy”声明为编译时依赖项? 任何帮助深表感谢。谢谢


9
如何从Android Studio项目制作.jar文件
我正在使用AndroidStudio,并且具有如下所示的项目: 蓝色圆圈内的是myLib。myLib还需要使用红色圆圈内的外部库和apache包(绿色圆圈)。 所以我想将整个东西变成一个.jar,以便可以在其他项目中使用它。 我是开发人员领域的初学者,非常感谢您提供分步指南。 谢谢!

14
Android Studio未将更改部署到应用程序
有时在开发时会发生这种情况。我会在源代码中进行更改,全部保存然后运行,但是更改显然不会反映在应用程序中(我正在使用一种设备进行测试)。我什至可以卸载设备上的应用程序,然后再次单击运行,而新安装的应用程序仍未反映源代码中的更改。发生这种情况时,我必须编辑源代码,然后单击“运行”,然后可能将具有预期的更改的新版本发布到设备上。 我也在这里尝试了该解决方案,但它似乎并不经常工作。 Android Studio-无需更改即可部署我的应用


4
如何使用kml文件在地图上绘制路径?
我可以解析kml文件以便在Android中显示路径或点吗?你能帮我吗? 这是kml示例代码,我想在Android谷歌地图中显示: <?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://www.opengis.net/kml/2.2"> <Document> <name>Paths</name> <description>Examples of paths. Note that the tessellate tag is by default set to 0. If you want to create tessellated lines, they must be authored (or edited) directly in KML.</description> <Style id="yellowLineGreenPoly"> <LineStyle> <color>7f00ffff</color> <width>4</width> </LineStyle> <PolyStyle> <color>7f00ff00</color> </PolyStyle> </Style> <Placemark> …

16
在用户专注于此之前,TextInputLayout不显示EditText提示
我正在使用最近发布的Android设计支持库来显示带有EditTexts的浮动标签。但是我面临的问题是,呈现UI时,EditText上的提示不显示,但是当我专注于EditTexts之后,我看到了提示。 我的布局如下: <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <FrameLayout android:layout_width="match_parent" android:layout_height="match_parent"> <ScrollView android:id="@+id/ScrollView01" android:layout_width="match_parent" android:layout_height="match_parent" android:scrollbars="vertical"> <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin"> <android.support.design.widget.TextInputLayout android:id="@+id/name_et_textinputlayout" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/activity_vertical_margin"> <EditText android:id="@+id/FeedBackerNameET" android:layout_width="fill_parent" android:layout_height="wrap_content" android:hint="@string/feedbackname" android:inputType="textPersonName|textCapWords" /> </android.support.design.widget.TextInputLayout> <android.support.design.widget.TextInputLayout android:id="@+id/email_textinputlayout" android:layout_width="match_parent" android:layout_height="wrap_content"> <EditText android:id="@+id/FeedBackerEmailET" android:layout_width="fill_parent" android:layout_height="wrap_content" android:hint="@string/feedbackemail" android:inputType="textEmailAddress" /> </android.support.design.widget.TextInputLayout> <Spinner android:id="@+id/SpinnerFeedbackType" …

12
无法在Android Studio中运行模拟器
我刚完成安装Android Studio并尝试将其用于测试运行。当我尝试运行我的应用程序时,出现以下错误信息 emulator: ERROR: This AVD's configuration is missing a kernel file!! emulator: ERROR: ANDROID_SDK_ROOT is undefined 有人知道如何解决此问题吗????

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.