草庐IT

page-source

全部标签

android - 错误 : Android source build in eclipse

在尝试将android源代码添加到eclipse时,出现以下错误。Project'android'ismissingrequiredlibrary:'out/target/common/obj/JAVA_LIBRARIES/gsf-client_intermediates/javalib.jar'Project'android'ismissingrequiredlibrary:'out/target/common/obj/JAVA_LIBRARIES/google-common_intermediates/javalib.jar'仅供引用,在将其添加到eclipse之前,我已经使用fu

安卓应用程序崩溃 : Why there is (Unknown Source) instead of line number

我构建并签名发布的应用程序偶尔会在我的机器上崩溃,在logcat中我打开堆栈跟踪以查找空指针异常。但我无法找到确切的行号?因为它说(未知来源)例如有些行看起来像这样Causedby:java.lang.NullPointerExceptionatme.com.myapplication.a.i.d(UnknownSource)atme.com.myapplication.MainActivity.onResume(UnknownSource)atandroid.app.Instrumentation.callActivityOnResume(Instrumentation.java:1

java - 使用在 source/build/target/product/security/中找到的 key 将 apk 签名为系统

正如标题所述,我正在尝试使用platform.x509.pem和platform.pk8对我的应用程序进行签名。问题是我在使用keytool-importkeypairs添加这些时遇到错误,如下所示:keytool-importkeypair-k~/.android/debug.keystore-pandroid-pk8platform.pk8-certplatform.x509.pem-aliasplatform当我尝试像这样使用SignApk.jar直接签署APK时,我也会收到错误消息:java-jarSignApk.jarplatform.x509.pemplatform.pk8

android - LibGdx 和 Gwt : No source code is available for type

我正在尝试开始我的Html项目,但我遇到了一些问题。桌面和Android项目运行良好。问题是我有一个其他项目用作未导入的库或其他东西。[ERROR][com.mobilecostudios.walkingskeleton.GwtDefinition]-Errorsin'file:/C:/Users/chelo/Documents/mobilecostudios-libgdx/trunk/walkingskeleton/WalkingSkeleton/src/com/mobilecostudios/walkingskeleton/GameLoop.java'[ERROR][com.mob

android - Bitmap.createBitmap(Bitmap source, int x, int y, int width, int height) 返回错误的位图

我必须裁剪位图图像。为此,我正在使用Bitmapbitmap=Bitmap.createBitmap(imgView.getWidth(),imgView.getHeight(),Bitmap.Config.RGB_565);Bitmapresult=Bitmap.createBitmap(bitmap,imgView.getLeft()+10,imgView.getTop()+50,imgView.getWidth()-20,imgView.getHeight()-100);bitmap.recycle();Canvascanvas=newCanvas(result);imgView

java - OpenStreetMap 是否有 Point(Source) to Point(Destination) direction uri 在 Android 中使用?

在我的应用程序中,我集成了OpenStreetMap,我在其中获取了源坐标和目标坐标。我需要使用Intent类将这些坐标传递给OpenStreetMap应用程序,为此我需要Uri。经过2天的搜索,我得到了这个Urihttp://www.openstreetmap.org/?mlat=latitude&mlon=longitude&zoom=12目前只支持一个位置,但我不想要它。谁能帮我解决这个问题?提前致谢...下面是我的代码IntentsendLocationToMap=newIntent(android.content.Intent.ACTION_VIEW,Uri.parse("h

安卓应用 : Take user to Accessibility settings page of my app

这个问题与thisSOquestion非常相似.我目前使用的是将用户带到设置页面的以下代码。IntentdummyIntent=newIntent(android.provider.Settings.ACTION_ACCESSIBILITY_SETTINGS);startActivity(dummyIntent,0);但这只会将用户带到设置页面。如下图所示。取而代之的是,我想将用户带到我的应用程序的设置页面,在那里他可以选择打开它并显示我的应用程序描述。 最佳答案 ReferThisDevicePolicyManager例如:如果你

Android PdfDocument.Page - 图像大小问题

在PdfDocument.Page上绘图时,我遇到了图像变大的问题。该应用程序适用于运行Android4.4.4(API级别19)的设备。我正在生成一个pdf文档并添加一个图像,如下所示:PdfDocumentdocument=newPdfDocument();//CreateanA4sizedpage595x842inPostscriptpoints.PdfDocument.PageInfopageInfo=newPdfDocument.PageInfo.Builder(595,842,1).create();PdfDocument.Pagepage=document.startPa

android - 膨胀 gzip HTTP 响应正文时获取 "source exhausted prematurely"

当我尝试使用okhttp进行HTTP调用时出现以下错误:W/System.err:java.io.EOFException:sourceexhaustedprematurelyW/System.err:atokio.InflaterSource.read(InflaterSource.java:83)W/System.err:atokio.GzipSource.read(GzipSource.java:80)W/System.err:atokio.Buffer.writeAll(Buffer.java:1135)W/System.err:atokio.RealBufferedSourc

widget - flutter : How to navigate to new page after state change?

状态改变后如何导航到新页面?我有一个需要先登录的应用程序。只有在登录后,应用程序组件才会完全创建。所以我写了这样的东西:主应用classAppComponentStateextendsStateimplementsCredentialProvider{Credentialcredential;@overrideWidgetbuild(BuildContextcontext){if(credential==null){returnnewMaterialApp(routes:{'/':(BuildContextcontext)=>newLoginPage(this),},);}else{r