草庐IT

com-state

全部标签

android - 如何使用 com.android.camera.action.CROP 设置输出图像

我有裁剪图像的代码,如下所示:publicvoiddoCrop(){Intentintent=newIntent("com.android.camera.action.CROP");intent.setType("image/");Listlist=getPackageManager().queryIntentActivities(intent,0);intsize=list.size();if(size==0){Toast.makeText(this,"Cantfindcropapp").show();return;}else{intent.setData(selectImageUr

android - 无法加载 LayoutLib : com. android.layoutlib.bridge.Bridge

我的ADT(Android开发人员工具)工作正常,几天前它显示所有文件的图形布局,但今天它显示“无法加载LayoutLib:com.android.layoutlib.bridge.Bridge”所有项目都运行良好,但我看不到.XML文件的图形布局。我该如何解决? 最佳答案 安装一个新的API(高于14)并更改API,如下: 关于android-无法加载LayoutLib:com.android.layoutlib.bridge.Bridge,我们在StackOverflow上找到一个类

android - Activity 泄漏了最初在此处添加的窗口 com.android.internal.policy.impl.PhoneWindow$DecorView@46029dd0

我收到此错误:泄漏了最初添加到此处的窗口com.android.internal.policy.impl.PhoneWindow$DecorView@46029dd0我在模拟器中有网络连接,通过打开网站查看浏览器。我在processdialog行遇到错误。@SuppressLint("NewApi")privateclassTheTaskextendsAsyncTask{@OverrideprotectedvoidonPreExecute(){dialog=ProgressDialog.show(Register.this,"","Registering...Pleasewait...

android - 找不到类 com.google.android.gms.analytics.GoogleAnalytics

好吧,这是一个奇怪的错误,很难找到。就在开始之前:在我的应用程序中,我安装并运行了Admob。所以GooglePlayServices的配置似乎没问题(lib添加为项目...)。我使用的是googleplayservicesv17。还使用v21和v22进行了测试。我的手机是android2.3基本上我遇到的问题如下,我跟进了android的教程(我见过的最糟糕的教程之一......)并且在Application类(之前存在)中我包含了跟踪器功能:publicsynchronizedTrackergetTracker(TrackerNametrackerId){if(!mTrackers

android - roboblender-3.0.1.jar : not included in Android: javax. 工具。引用自 com.google.inject.blender.AnnotationDatabaseGenerator

我尝试构建我的android项目,我得到:Information:Gradle:Executingtasks:[clean,:app:compileDebugSources]Information:1/10/15,11:13AM-Compilationcompletedsuccessfullyin5sec然后我尝试将它部署到我的设备并获得:FAILURE:Buildfailedwithanexception.*Whatwentwrong:Executionfailedfortask':app:lint'.>Lintfounderrorsintheproject;abortingbuil

android - java.lang.SecurityException : Unknown calling package name, com.google.android.gms.common.internal.zzs

我的应用程序包含GCM(GoogleNotification)功能时发生了很多次崩溃。崩溃详情如下:java.lang.SecurityException:Unknowncallingpackagename'com.mypackagename'.-android.os.Parcel.readException(1465)android.os.Parcel.readException(1419)com.google.android.gms.common.internal.zzs$zza$zza.zza(-1)com.google.android.gms.common.internal.z

android - 无法启动服务 Intent { act=com.google.android.c2dm.intent.REGISTRATION(有附加功能)} U=0 : not found

我正在尝试获取设备的注册ID(使用模拟器进行测试)以使用GCM设置推送通知。我试过下面的代码,它给了我以下错误:UnabletostartserviceIntent{act=com.google.android.c2dm.intent.REGISTRATION(hasextras)}U=0:notfoundlist文件我正在使用BroadcastReceiver来达到目的:packagecom.me.pushnotifications;importandroid.content.BroadcastReceiver;importandroid.content.Context;import

android - com.google.android.gms 出现 DeadObjectException

我在下面的日志中经常崩溃。它没有引用我的应用程序代码,但我猜它可能与GoogleApiClient连接/断开连接有关。有人得到类似的东西吗?我在这里找不到任何东西。java.lang.IllegalStateException:android.os.DeadObjectExceptionatcom.google.android.gms.internal.ao.removeAllListeners(UnknownSource)atcom.google.android.gms.internal.ap.disconnect(UnknownSource)atcom.google.android

android - 针对库或 SDK(com.google.ads、com.google.android.gms.internal)显示的政策违规问题

关闭。这个问题不符合StackOverflowguidelines.它目前不接受答案。这个问题似乎与helpcenter中定义的范围内的编程无关。.关闭7年前。Improvethisquestion在我的GoogleDeveloperConsole中,有几个应用程序的警告WehavedeterminedthatyourappusesalibraryorSDK(com.google,com.google.ads)thatisinviolationoftheDeveloperProgramPolicy.PleasenotethatbeginningAug1st,2014theDevelop

Parse.com 中的 JavaScript 子类化

在Android中,我使用两个不在Parse类中的局部变量对ParseObject进行了子类化。我只需要在本地设置这些变量,而不需要将它们保存在服务器上。它们是String的命名helper1和helper2以及getter和setter。它在Android上运行良好-我可以在ParseObject上使用setHelper1("whatever");以及getHelper()方法>的。我想做的是在JavaScript中做同样的事情,因为我想在ParseCloud中做同样的操作,并让它返回带有额外的Strings的结果,而不创建额外的数据库类中的列。我读了https://parse.co