小编Muk*_*und的帖子

你能在一个Activity中有两个AsyncTasks吗?

我已经开发了一个Activity,它将解析JSON数据并在ListView中显示结果.我正在为此目的使用AsyncTask.

我现在想要的是,当我点击ListView中的某个项目时,该文件应该开始下载.我可以在同一个活动中编写另一个AsyncTask,以便这个AsyncTask会为我做下载工作吗?在同一个活动中有多个AsyncTasks有什么问题吗?

android android-asynctask

14
推荐指数
2
解决办法
4332
查看次数

如何检查蓝图堆模拟器的android操作系统版本

我在谷歌搜索了很多,但没有希望,如何检查Windows中的Bluestacks模拟器的操作系统版本?在youtube中有一个视频用于检查bluestack版本,但不是在其中使用的android版本.有人可以帮我解决这个问题吗?我去了设置 - >高级设置,但没有对应于Abouttab的选项卡,这是在Android模拟器中找到的,就像Genymotion模拟器一样.谢谢Mukund

android bluestacks

12
推荐指数
4
解决办法
7万
查看次数

由于自耕农的警告,咕噜声服务中止了

我正在关注mean.io的教程,在其中,我必须安装 yo angular

一段时间后一切都安装完了,最后我不得不运行`grunt serve'

然后出现此错误/警告

mukund@mukund-ThinkPad-Edge-E431:~/MeanApp/client$ grunt serve
Running "serve" task

Running "clean:server" (clean) task
>> 0 paths cleaned.

Running "wiredep:app" (wiredep) task

Running "wiredep:test" (wiredep) task

Running "wiredep:sass" (wiredep) task

Running "concurrent:server" (concurrent) task
Warning: Running "compass:server" (compass) task
Warning: Command failed: /bin/sh -c compass --version
/bin/sh: 1: compass: not found
 Use --force to continue.

Aborted due to warnings.


Execution Time (2015-07-16 10:01:13 UTC)
loading tasks                  10ms  ???? 12%
loading grunt-contrib-compass  33ms  ????????????? 40%
compass:server                 38ms  ??????????????? 46% …
Run Code Online (Sandbox Code Playgroud)

ubuntu node.js angularjs gruntjs

10
推荐指数
1
解决办法
5580
查看次数

Windows中eclipse安卓模拟器的SD卡在哪里?

我在哪里可以看到eclipse android模拟器的SD卡目录位于windows中?我创建并删除了2-3个AVD,每个都有512个,1024mb的SD卡,所以我不想浪费这个空间.如果我发现它我可以直接从Windows中删除它.删除AVD后,为SD卡分配的空间是否会自动取消分配?我从AVD编辑选项窗口创建了AVD卡.

android android-virtual-device android-sdcard

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

在sqlite android中选择查询

String temp_address="nothing";
    try
    {
        String selectQuery = "SELECT lastchapter FROM Bookdetails INTO"+temp_address+"WHERE bookpath=?";
        db.execSQL(selectQuery, new String[] { fileName });
        System.out.println(temp_address+" result of select Query");
    }

    catch(Exception e)
    {
        System.out.println(e+" is the error here");

    }
    finally
    {
        db.close();
    }
Run Code Online (Sandbox Code Playgroud)

logcat的

android.database.sqlite.SQLiteException: near "bookpath": syntax error: , while compiling: SELECT lastchapter FROM Bookdetails INTOnothingWHERE bookpath=?
Run Code Online (Sandbox Code Playgroud)

我只想获取上述查询的结果,以便存储在lastchapter中的字符串在temp_address中可用,请帮忙

我是android sqlite数据库的新手,请帮忙

sqlite android

4
推荐指数
1
解决办法
6万
查看次数

如何在android中生成多行和initcap的edittext

我发现android:inputType并分别添加"textMultiLine""textCapSentences"输入文本多行和初始化上限,但我们如何才能将两者合作到一个编辑文本?因为当我将两个android:inputType放在一个edittext 中时会显示错误.

<EditText
    android:id="@+id/editText3"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignLeft="@+id/textView4"
    android:layout_alignParentRight="true"
    android:layout_below="@+id/textView4"
    android:layout_marginTop="28dp"
    android:inputType="textCapSentences"
    android:ems="10"
    android:inputType="textMultiLine" />  // cannot add this here
Run Code Online (Sandbox Code Playgroud)

我按照答案尝试但是多行工作正​​在运行,但init cap在这个edittext和写的那些文件中都不起作用

android:inputType="textCapSentences" 
Run Code Online (Sandbox Code Playgroud)

:-(

android android-edittext

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

在sqlite中更新表时发生错误

String updateQuery = "UPDATE Bookdetails SET lastchapter = " + test + " WHERE bookpath=" +sentFilename; 
db.execSQL(updateQuery);
Run Code Online (Sandbox Code Playgroud)

错误:

03-04 13:36:23.997: I/System.out(9722): android.database.sqlite.SQLiteException: 
near "/": syntax error: , while compiling: UPDATE Bookdetails SET lastchapter = 
mukund WHERE bookpath=/mnt/sdcard/Download/What's so great about the doctrine of 
 grace.epub errors happens
Run Code Online (Sandbox Code Playgroud)

错误发布在上面

我的表包含字段id,bookpath和lastchapter,book path包含值

 /mnt/sdcard/Download/What's so great about the doctrine of grace.epub  
  /mnt/sdcard/Download/1b4fdaac-f31d-41e8-9d15-26c9078d891f.epub 
  /mnt/sdcard/Download/Commentary on Romans.epub
Run Code Online (Sandbox Code Playgroud)

而lastchapter包含的价值一无所有

id包含1 2 3

为什么"/"在我的更新查询中没有哈希发生的错误只存在于存储bookpath的字符串?这是一个错误吗?

sqlite android

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