我发现很多线程讨论Android上标记的支持.到目前为止看起来,即使Android Froyo 2.2也无法播放音频(我已经对nexus One进行了测试).
根据www.html5test.com网页,支持标签本身,但浏览器中没有编解码器(mp3,ogg ..).那我怎么解决这个问题呢?
到目前为止,我只看到一个解决方案,使用嵌入式Flex或Flash播放器,它可以流式传输mp3.那是对的吗?这是我在Android网络浏览器中播放.mp3或其他音频流的唯一方法吗?
Android 2.3 Gingerbread是否支持某些音频流?
非常感谢BR STeN
后来添加:我最终使用的工作解决方案是用于流式传输的小型Flex .swf.它可以很容易地与HTML网页集成(Flex-Javascript通信非常有效).唯一的问题是在某些手机上没有重新安装Flash Player,必须先从Android Market下载.
甚至后来添加:好吧,<audio>即使在Android 2.3上,该元素也是错误的 - 我不知道谷歌在做什么这么简单的事情是个问题.使用Flex Player是有道理的,但问题是在某些手机上无法从Android市场安装Adobe Flash播放器,因为有一些Adobe硬件要求,如1Ghz CPU等.一些像HTC这样的供应商提供自己的Flash播放器,但是那些非常糟糕,并且与AS 3.0无法正常工作......到目前为止,一切都运行得非常好,特别是在三星手机上(如Nexus S或Galaxy S).
我正在使用SharePoint对象模型.我在MSDN的文档中没有看到这样做的方法......
我尝试创建一个from应用程序,在应用程序中我有一个冗长的形式,我想在滚动视图中,但当我将EditText添加到scrollView ..日食在其设计器视图中显示一些错误.
error!
IllegalStateException: ScrollView can host only one direct child
Exception details are logged in Window > Show View > Error Log
Run Code Online (Sandbox Code Playgroud)
任何人都有想法解决它?
在获得上述问题的解决方案之后,我已经包含了此代码..!
现在EditText没有显示任何类型的文本,它只是给出了一些建议......!
我有以下XML:
<ScrollView
android:id="@+id/widget64"
android:layout_width="320px"
android:layout_height="358px"
android:fillViewport="true"
android:isScrollContainer="true"
android:saveEnabled="true">
<TableLayout
android:id="@+id/widget58"
android:layout_width="320px"
android:layout_height="65px"
android:orientation="vertical"
>
<TableRow
android:id="@+id/widget60"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/user"
android:text="User"
android:textColor="#000000">
</TextView>
</TableRow>
<TableRow
android:id="@+id/widget60"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center"
>
<EditText
android:id="@+id/users_first_name"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:hint="First Name"
android:focusable="true"
android:inputType="textPersonName"
android:enabled="true"
android:ems="15">
</EditText>
</TableRow>
</TableLayout>
</ScrollView>
Run Code Online (Sandbox Code Playgroud)
发现麻烦.....我的模拟器密钥设置为中文而不是英文...
例如,如果我输入大于10的字符,为什么不抛出异常或错误?你会得到getline的输入吗?
int main()
{
char c[10];
while (cin >> c)
{
cout << c << endl;
}
}
Run Code Online (Sandbox Code Playgroud) 我的设置:Rails 2.3.10,Ruby 1.8.7
这是一个简单的问题,但我想为JSON字符串中的字段传递一个布尔值,该字符串将被Rails解释为布尔值,例如,我在下面的"a"中使用了什么?它是0还是1还是"真"还是"假"还是?
{
"a": ??,
"b": [1,2,3...],
"c": 3
}
Run Code Online (Sandbox Code Playgroud)
除了将它与true进行比较之外,还有其他方法可以在Ruby中测试true或false,例如,
a = params[:a]
if a == true
Run Code Online (Sandbox Code Playgroud) 任何人都可以告诉我为什么PHPExcel不允许超过5000行.我在我的项目中使用开源PHPExcel生成报告,我无法从Mysql-DB写入超过5000行的数据.执行查询时,我的结果集获取7230条记录.我如何解决它..
我写了一个抽象类来包含应用程序的所有规则,因为我几乎在我的应用程序的所有地方都需要它们.所以它包含的大部分内容都是static final变量,如下所示:
public abstract class appRules
{
public static final boolean IS_DEV = true;
public static final String CLOCK_SHORT_TIME_FORMAT = "something";
public static final String CLOCK_SHORT_DATE_FORMAT = "something else";
public static final String CLOCK_FULL_FORMAT = "other thing";
public static final int USERNAME_MIN = 5;
public static final int USERNAME_MAX = 16;
// etc.
}
Run Code Online (Sandbox Code Playgroud)
这个类很大,包含很多这样的变量.
我的问题:
public final),所以我实例化该类并仅在我需要它时才使用它们.我很难回复输入的新数据.尽管在提交之前对数据进行了更改,但似乎发送到视图的数据仍会发送回控制器.
我的代码如下:
控制器公共类GroupRateController:Controller {// // GET:/ GroupRate /
public ActionResult Index()
{
GroupRateModel model = new GroupRateModel();
return View(model);
}
[HttpPost]
public ActionResult Index(GroupRateModel model)
{
model.Save(model);
return View(model);
}
}
Run Code Online (Sandbox Code Playgroud)
视图
@model MvcApplication1.Models.GroupRateModel
@{
View.Title = "Index";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>Index</h2>
@using (Html.BeginForm())
{
@Html.ValidationSummary()
<table>
<thead>
</thead>
<tr><th>Rate Group</th><th>Default Amount</th><th>Client Amount</th></tr>
@foreach (var item in @Model.ClientRateDetails)
{
<tr><td>@item.RateGroupName</td><td align="right">@Html.DisplayFor(m => @item.RateGroupID)</td><td>@Html.EditorFor(model => item.ClientRate)</td></tr>
}
</table>
<p> <input type ="submit" value="Save" id="submit" /></p>
}
Run Code Online (Sandbox Code Playgroud)
模型
using System.ComponentModel.DataAnnotations;
namespace …Run Code Online (Sandbox Code Playgroud) 似乎xmpp在聊天应用程序中用作协议,但JMS也支持多种接收器模式.
似乎JMS用于金融消息系统,但xmpp也可能支持持久性和可靠的交付.
有人可以概述这两个协议吗?
UIViewContentModeScaleAspectFit和UIViewContentModeScaleToFill有什么区别......?
android ×2
.net ×1
asp.net-mvc ×1
audio ×1
c# ×1
c++ ×1
contentmode ×1
html5 ×1
ios ×1
java ×1
jms ×1
php ×1
phpexcel ×1
sharepoint ×1
uiimageview ×1
xmpp ×1