小编Del*_*019的帖子

ksoap2 org.xmlpull.v1.xmlpullparserexception期望start_tag错误

下面是我的代码,我用它来验证用户登录凭据.使用.net编写的Web服务

private static final String SOAP_ACTION = "http://tempuri.org/getCredentials";
private static final String OPERATION_NAME = "getCredentials";
private static final String WSDL_TARGET_NAMESPACE = "http://tempuri.org/";
private static final String SOAP_ADDRESS = "http://myStaticIP:portNo/WebSiteName/CommunicationInterface.asmx"; 

SoapObject request = new SoapObject(WSDL_TARGET_NAMESPACE, OPERATION_NAME);
request.addProperty("username",Username);
request.addProperty("password", Password);

SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(request);
HttpTransportSE httptransport = new HttpTransportSE(SOAP_ADDRESS);

try
{
    httptransport.call(SOAP_ACTION, envelope);
SoapPrimitive result = (SoapPrimitive) envelope.getResponse();
String value = result.toString();
value_LoginWS = value;
val = value;
login_status = Boolean.valueOf(result.toString());

Log.v("CS return value: -", result.toString());
return …
Run Code Online (Sandbox Code Playgroud)

java asp.net android ksoap2 android-ksoap2

13
推荐指数
3
解决办法
3万
查看次数

Android动画动画

<objectAnimator
    android:propertyName="string"
    android:duration="int"
    android:valueFrom="float | int | color"
    android:valueTo="float | int | color"
    android:startOffset="int"
    android:repeatCount="int"
    android:repeatMode=["repeat" | "reverse"]
    android:valueType=["intType" | "floatType"]/>
Run Code Online (Sandbox Code Playgroud)

好的我正在学习android中的一些动画.我从谷歌开发者文档中得到了两个实际上我无法理解的属性

android:propertyName="string"
android:valueType=["intType" | "floatType"]
Run Code Online (Sandbox Code Playgroud)

一些价值观是有道理的,"fade", "rotation", "alpha" 但其他人喜欢什么endYear, firstDayOfWeek

我没有找到关于这些的详细文档,或者我可能无法理解各种教程和Google Docs试图传达的内容.

**

我怀疑是从哪里可以获得所有可能的值 "propertyName"而且"valueType"我的意思是它实际上它实际上是如何影响动画的

**

我正在按照本教程进行操作,并尝试使用属性以便更好地理解.

比如下面附上的截图显示了这么多的可能性,propertyName但我不知道它们是如何理解的.

在此输入图像描述

更多Over propertyName接受"x"和"y"作为值,但它们不会进入窗口.

在的情况下,ValueType如果我改变"floatType""intType"在教程的下文提到片断

<objectAnimator
    android:duration="3000"
        android:propertyName="rotation"
        android:repeatCount="infinite"
        android:repeatMode="reverse"
        android:valueTo="180"
        android:valueType="floatType" />
Run Code Online (Sandbox Code Playgroud)

它停止动画.. ??????

可以任何人解释这个问题或来源,以便我可以弄清楚..

这是Google文档中解释的内容

注意: - 我第一次尝试动画,不仅是Android,还有我的生活......

animation android android-animation objectanimator

11
推荐指数
2
解决办法
1万
查看次数

使用arm-linux-androideabi-gcc编译对象的问题

背景

  • OSX是OS
  • R8 NDK

我正在尝试使用Android GCC编译器编译以下类...

#include <stdint.h>
int main (void){
   return 0;
}
Run Code Online (Sandbox Code Playgroud)

我用以下命令做...

un@un:~/Development/Code/OpenGL$ ~/Development/Android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/arm-linux-androideabi-gcc hello.c -o hello
Run Code Online (Sandbox Code Playgroud)

我明白了......

In file included from hello.c:1:0:
/Users/un/Development/Android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/include/stdint.h:3:26: fatal error: stdint.h: No such file or directory
compilation terminated.
Run Code Online (Sandbox Code Playgroud)

因此,由于缺乏gcc知识(但有一些谷歌能力),我发现了这一点并尝试了...

un@un:~/Development/Code/OpenGL$ ~/Development/Android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/arm-linux-androideabi-gcc hello.c -o hello -ffreestanding
Run Code Online (Sandbox Code Playgroud)

我得到......

/Users/un/Development/Android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: error: cannot open crtbegin_dynamic.o: No such file or directory
/Users/un/Development/Android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: error: cannot open crtend_android.o: No such file or directory
/Users/un/Development/Android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lc
/Users/un/Development/Android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: error: cannot find -ldl
collect2: ld returned 1 exit …
Run Code Online (Sandbox Code Playgroud)

android-ndk

10
推荐指数
3
解决办法
5万
查看次数

如何通过android中的布局xml将数组设置为任何View的Tag

我想用视图绑定一些额外的数据.我在我的xml文件中使用标记来添加额外的信息.

如果数据只是String(android:tag="extra Info"),我可以通过getTag()在代码中使用来获取额外的数据.

但我想将多个数据作为对象绑定到视图,因为我将数组设置为标记.当我试图设置时android:tag="@array/xyz_array",我仍然得到一个String对象而不是一个数组getTag().

任何人都可以告诉我,如果我做错了什么?

xml android view

5
推荐指数
1
解决办法
2292
查看次数

如何在itextsharp中使用PdfContentByte为文本加下划线

这实际上是对实际结束的问题的引用

我使用ItextSharp 5.2.1.

我想使用PdfContentByte使我的标题文本加下划线.请给我解决方案.

itextsharp

5
推荐指数
1
解决办法
8668
查看次数

在PIg中查找重复项

如果我有一个表有重复行的id,

我可以使用Hive和下面的查询找到它

create table dupe as select * from table1 group by id having count(*) > 1;
Run Code Online (Sandbox Code Playgroud)

我们可以使用Pig执行相同的功能吗?

如果有,有人可以帮助我吗?

hadoop apache-pig

0
推荐指数
1
解决办法
3169
查看次数