我已经创建了一个从android DB获取短信的活动.当我在Lenovo A7010a48(Android版本:5.1)上运行我的应用程序时,会发生错误.它在其他手机和操作系统上运行良好.
**AccessibilityManager? setStateLocked: wasEnabled = false, mIsEnabled = false, wasTouchExplorationEnabled = false, mIsTouchExplorationEnabled = false, wasHighTextContrastEnabled = false, mIsHighTextContrastEnabled = false
java.lang.Throwable: setStateLocked
at android.view.accessibility.AccessibilityManager.setStateLocked(AccessibilityManager.java:553)**
D/AccessibilityManager? setStateLocked: wasEnabled = false, mIsEnabled = false, wasTouchExplorationEnabled = false, mIsTouchExplorationEnabled = false, wasHighTextContrastEnabled = false, mIsHighTextContrastEnabled = false
java.lang.Throwable: setStateLocked
at android.view.accessibility.AccessibilityManager.setStateLocked(AccessibilityManager.java:553)
at android.view.accessibility.AccessibilityManager.tryConnectToServiceLocked(AccessibilityManager.java:636)
at android.view.accessibility.AccessibilityManager.<init>(AccessibilityManager.java:226)
at android.view.accessibility.AccessibilityManager.getInstance(AccessibilityManager.java:206)
at android.view.View.setFlags(View.java:9874)
at android.view.View.<init>(View.java:4228)
at android.view.ViewGroup.<init>(ViewGroup.java:524)
at android.widget.LinearLayout.<init>(LinearLayout.java:215)
at android.widget.LinearLayout.<init>(LinearLayout.java:211)
at android.widget.LinearLayout.<init>(LinearLayout.java:206)
at android.support.v7.widget.FitWindowsLinearLayout.<init>(FitWindowsLinearLayout.java:36)
at java.lang.reflect.Constructor.newInstance(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:288)
at android.view.LayoutInflater.createView(LayoutInflater.java:607)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743) …Run Code Online (Sandbox Code Playgroud) 我在我的代码中实现了视图寻呼机,我在视图寻呼机上放置了点击监听器,但是我的点击式监听器不起作用我将发布我的代码
viewpager.setOnClickListener(new OnClickListener()
{
@Override
public void onClick(View v)
{
Log.i("***","***");
Toast.makeText(getActivity(), "XXXX", Toast.LENGTH_SHORT).show();
}
});
Run Code Online (Sandbox Code Playgroud) 我正在使用 http 依赖项发出 http post 请求。我在回复中遇到以下错误。我在下面发布我的代码:
\n\nflutter: Error on line 1, column 32: Invalid media type: expected /[^()<>@,;:"\\\\\\/[\\]?={} \\t\\x00-\\x1F\\x7F]+/.\n \xe2\x95\xb7\n 1 \xe2\x94\x82 application/json;charset=utf-8;\n \xe2\x94\x82\n\n ^\nRun Code Online (Sandbox Code Playgroud)\n\n下面是我遇到错误的代码:
\n\ntry {\n String url = \'https://app.restroapp.com/\';\n Map<String, String> headers = {"Content-type": "application/json"};\n String json = \'{"device_id": "abaf785580c22722", "user_id": "", "device_token": "","platform":"android"}\';\n\n // make POST request\n Response response = await post(Uri.encodeFull(url), headers: headers, body: json);\n // check the status code for the result\n int statusCode = response.statusCode;\n // this API passes back …Run Code Online (Sandbox Code Playgroud) 我已经使用lcrypto-j2me-144.jar jar文件来加密我的应用程序中的用户名和密码它运行正常但是当我看到控制台它给我,基本上它是j2me jar文件,请指导我摆脱这个问题.
Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.bouncycastle.asn1.ASN1Sequence$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is …Run Code Online (Sandbox Code Playgroud) 我正在使用来自此链接的chrisbanes/ActionBar-PullToRefresh https://github.com/chrisbanes/ActionBar-PullToRefresh我创建了自定义列表视图,我想改变拉动的颜色以刷新条形图和文本颜色正如你在图片中看到的那样它是黑色的.请有人指导我.![在此处输入图像说明] [1]
我正在创建xml,并通过使用gradle脚本并在xml文件中写入一些数据。我已经创建了.gradle文件,运行gradle文件后,我无法实现xml文件的确切格式。我在下面发布我的代码:请任何人指导我。导入groovy.xml.MarkupBuilder
task generatepublicxml {
//def resDir = project.projectDir.absolutePath + "/src/main/res-public"
// Create new public.xml with writer
new File("/home/signity/Desktop/public.xml").withWriter { writer ->
// Create MarkupBuilder with 4 space indent
def destXml = new MarkupBuilder(new IndentPrinter(writer, " ", true));
def destXmlMkp = destXml.getMkp();
// GIST NOTE: our project needed the ResourceName suppression, but its not needed in general
destXml.resources('xmlns:tools': 'http://schemas.android.com/tools', 'tools:ignore': 'ResourceName')
{
// Leave file comment
destXmlMkp.yield "\r\n"
destXmlMkp.comment("AUTO-GENERATED FILE. DO NOT MODIFY. public.xml is generated by the generatepublicxml gradle task") …Run Code Online (Sandbox Code Playgroud) 如何找到列表中最接近的值,这将返回更高的值?示例:[3,7,12,19] 列表,如果我的值为 8,如何获得最接近(较大)的值 12?我想要在 Dart 中使用这个逻辑。
我已经创建了一个自定义数组适配器,我有图像视图和onclick的图像视图我正在打开一个Dialogue但它显示我 android.view.WindowManager $ BadTokenException:无法添加窗口 - 令牌null不适用于申请 她的是我的代码
下面的行给了我错误
if (context != null) {
Dialog dialog = new Dialog(context);
dialog.setContentView(R.layout.spread_dialogue);
dialog.setTitle("New Post");
dialog.show();
}
public class Customfeedadapter extends ArrayAdapter<Rowfeeds> {
Context context;
Rowfeeds feeds;
ViewHolder holder = null;
ImageView imgview, likeimgview;
Vector<String> mfeedid = new Vector<String>();
Vector<String> muserid = new Vector<String>();
public String guestlist;
private ProgressDialog simpleWaitDialog;
public String mssg;
public String likemssg;
Vector<String> mfeedlike = new Vector<String>();
Vector<String> mfeedspread = new Vector<String>();
Vector<String> mfeeddate = new Vector<String>();
Vector<String> mfeedtime = …Run Code Online (Sandbox Code Playgroud) 我有TextView并且我想以编程方式绘制圆角矩形形状,我想将该形状设置为TextView? 我想动态改变它的颜色,我已经发布了图片?

我在android中使用aws sdk jar文件来上传文件,但我无法使用proguard生成已签名的apk,我收到的信息低于警告.我用过 aws-android-sdk-core-2.2.9.jar和aws-android-sdk-s3-2.2.9.jar ,我到了下面,请有人指导我吗?Proguard返回错误代码1.请参阅控制台
[2015-12-30 17:49:46 - TheGrooveBos] Warning: com.amazonaws.AmazonWebServiceClient: can't find referenced class org.apache.commons.logging.LogFactory
[2015-12-30 17:49:46 - TheGrooveBos] Warning: com.amazonaws.AmazonWebServiceClient: can't find referenced class org.apache.commons.logging.LogFactory
[2015-12-30 17:49:46 - TheGrooveBos] Warning: com.amazonaws.auth.AWS3Signer: can't find referenced class org.apache.commons.logging.LogFactory
[2015-12-30 17:49:46 - TheGrooveBos] Warning: com.amazonaws.auth.AWS3Signer: can't find referenced class org.apache.commons.logging.LogFactory
[2015-12-30 17:49:46 - TheGrooveBos] Warning: com.amazonaws.auth.AWS4Signer: can't find referenced class org.apache.commons.logging.LogFactory
[2015-12-30 17:49:46 - TheGrooveBos] Warning: com.amazonaws.auth.AWS4Signer: can't find referenced class org.apache.commons.logging.LogFactory
[2015-12-30 17:49:46 - TheGrooveBos] Warning: com.amazonaws.auth.AWSCredentialsProviderChain: can't find referenced …Run Code Online (Sandbox Code Playgroud) 我想创建一个带有一些点的动画,它们从上到下掉落。为此,我使用了一个翻译动画,该动画将点图像从上到下移动。但是我希望这是连续的,这意味着动画应该重复播放。
我必须创建一个带有一些点的动画,并且它们从上到下掉落,我将发布gif动画文件,这是我的要求,请任何人指导我如何创建此动画?它以FadeIn动画开始,在我的代码中运行良好,然后点以连续运动从顶部移到底部,如gif所示(我在代码中不起作用),我创建了14个Linearlayout,它们包含7个texviews,具有VISIBILITY水平。我已将Oncreate的可见性更改为VISIBLE,并开始FADE IN动画,我将发布代码,请任何人指导我?我的 必需品rain_like_animation
public class MainActivity extends Activity implements AnimationListener {
LinearLayout move_animation, move_animation1, move_animation2,
move_animation3, move_animation4, move_animation5;
Display display;
Point size2;
int width1, height1;
// Animation
Animation animFadein;
TranslateAnimation translateanimation;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
display = getWindowManager().getDefaultDisplay();
size2 = new Point();
display.getSize(size2);
width1 = size2.x;
height1 = size2.y;
move_animation = (LinearLayout) findViewById(R.id.move_animation);
move_animation1 = (LinearLayout) findViewById(R.id.move_animation1);
move_animation2 = (LinearLayout) findViewById(R.id.move_animation2);
move_animation3 = (LinearLayout) findViewById(R.id.move_animation3);
// load the animation
animFadein = AnimationUtils.loadAnimation(getApplicationContext(),R.anim.fade_in);
// set animation …Run Code Online (Sandbox Code Playgroud)