Questions tagged «android»

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

13
使用FragmentPagerAdapter时如何获取现有片段
我在使片段通过Activity(使用FragmentPagerAdapter)作为帮助程序类相互通信时遇到困难,该帮助程序类实现了选项卡的管理以及将a ViewPager和关联的关联的所有详细信息TabHost。我已经实现FragmentPagerAdapter了与Android示例项目Support4Demos提供的相同的方法。 主要问题是,FragmentManager当我既没有ID也没有Tag时,如何获得特定片段?FragmentPagerAdapter正在创建片段并自动生成ID和代码。

11
片段生命周期-在显示/隐藏时调用哪种方法?
我正在使用以下方法通过显示/隐藏片段在片段之间(在我的NavigationDrawer中)进行切换。 protected void showFragment(int container, Fragment fragment, String tag, String lastTag, boolean addToBackStack ) { FragmentManager fragmentManager = getSupportFragmentManager(); FragmentTransaction transaction = fragmentManager.beginTransaction(); if ( lastTag != null && !lastTag.equals("")) { Fragment lastFragment = fragmentManager.findFragmentByTag( lastTag ); if ( lastFragment != null ) { transaction.hide( lastFragment ); } } if …

5
如何为编写的每个程序创建用于Android开发的自己的库?
我是一名Delphi程序员,多年来编写了数百种类和例程,可在我编写的每个Delphi程序中使用。 该库称为dlib,可通过将文件夹放在我的库路径中并使用Delphi单元的uses部分中的单元之一来在每个Delphi程序中使用。 作为Java和Android开发的新手,我想知道如何以类似的方式进行操作。 所以我的问题是,我如何编写自己的类,将它们放在某个全局文件夹中,并在我编写的每个Android程序中使用这些类和例程? 我知道这是一个基本问题,我可能可以通过搜索Google并在Eclipse中进行尝试来找出,但是如果有人可以让我走上正确的道路,我知道我会节省很多时间。 谢谢。


15
HTML列表标记在android textview中不起作用。我能做什么?
HTML列表标记在android TextView中不起作用。这是我的字符串内容: String str="A dressy take on classic gingham in a soft, textured weave of stripes that resembles twill. Take a closer look at this one.<ul><li>Trim, tailored fit for a bespoke feel</li><li>Medium spread collar, one-button mitered barrel cuffs</li><li>Applied placket with genuine mother-of-pearl buttons</li><li>;Split back yoke, rear side pleats</li><li>Made in the …
99 android 


19
Android-拉SQlite数据库android设备
我到处都看过了,找不到真正的准确答案,也找不到关于如何执行此操作的教程。 是否有可能以任何方式提取Android设备的数据库而无需将其root?我只需要以任何方式提取该数据以便将其收集到我的PC上,那么我该如何执行呢?我是否需要对应用程序或您知道的任何方法进行重新编程,但是请记住不要生根设备。谢谢
99 sqlite  android 

8
如何将URI传递给意图?
我正在尝试将URI对象传递给我的Intent,以便在另一个活动中使用该URI。 如何传递URI? private Uri imageUri; .... Intent intent = new Intent(this, GoogleActivity.class); intent.putExtra("imageUri", imageUri); startActivity(intent); this.finish(); 现在如何在其他活动中使用此URI? imageUri = extras.getString("imageUri"); // I know thats wrong ... 感谢你们


6
是否可以从Google Play为我的应用下载旧的APK?
在过去的几个月中,我已经发布了对应用程序的一些修订。不幸的是,我没有保留所有旧APK的副本,现在我想测试一下从旧版本到新版本的升级。有什么方法可以下载Google旧版本的副本吗?Google Play开发者控制台显示了我的旧APK,但没有下载链接。我尝试过“ Real APK Leecher”,但那不能让您选择要下载的APK版本。而且我什至无法在开发者控制台中临时重新激活旧版本,因为它抱怨它是旧版本。

5
Android图表库[关闭]
已关闭。这个问题是基于观点的。它当前不接受答案。 想改善这个问题吗?更新问题,以便通过编辑此帖子以事实和引用的形式回答。 5年前关闭。 改善这个问题 我试图找到一个快速而可靠的图表库。经过一番搜索,我发现了4个库:AChartEngine [警告!官方网站已关闭,并重定向到病毒填写网站!],WilliamChart,HelloCharts和AndroidPlot。我需要一些有关这些库的性能和稳定性的最新反馈,因为我能找到的所有信息都已过时。



4
如何在Android Studio 3.0.0中使用数据绑定和Kotlin
我刚刚开始使用Android Studio 3.0.0,但是每次尝试构建项目时,都会出现此错误: Error:Circular dependency between the following tasks: :app:compileDebugKotlin +--- :app:dataBindingExportBuildInfoDebug | \--- :app:compileDebugKotlin (*) \--- :app:kaptDebugKotlin \--- :app:dataBindingExportBuildInfoDebug (*) (*) - details omitted (listed previously) 我在用 kapt "com.android.databinding:compiler:2.2.0" 在我使用之前 androidProcessor "com.android.databinding:compiler:2.2.0" 而且工作正常……我做错了什么? 谢谢!


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.