可能重复:
如何从我的活动中设置Android中的铃声?
我的res/raw文件夹中有声音文件,我想在单击按钮时选择声音设置为铃声.不知道我怎么能这样做?
为什么导入org.apache.commons.lang.StringUtils默认情况下不能在android中导入.
我是否必须包含外部库?那我在哪里可以找到网上的图书馆?
package com.myapps.urlencoding;
import android.app.Activity;
import org.apache.commons.lang.StringUtils;
public class EncodeIdUtil extends Activity {
/** Called when the activity is first created. */
private static Long multiplier=Long.parseLong("1zzzz",36);
/**
* Encodes the id.
* @param id the id to encode
* @return encoded string
*/
public static String encode(Long id) {
return StringUtils.reverse(Long.toString((id*multiplier), 35));
}
/**
* Decodes the encoded id.
* @param encodedId the encodedId to decode
* @return the Id
* @throws IllegalArgumentException if encodedId is not …Run Code Online (Sandbox Code Playgroud) 这就是Java站点www.java.com所说的:
"KVM是移动设备的虚拟机,是JVM(Java虚拟机)的对应物.它用于在移动设备上运行用Java技术编写的applet和应用程序.KVM必须由制造商安装.它不适用于消费者下载或安装".
现在Android有一个名为DVM(Dalvik虚拟机)的定制虚拟机.我们可以将它与KVM进行比较吗?不知道我们是否可以进一步重新编程DVM以结合KVM的功能来在Android上运行applet?同样适用于Blacberry,有可能吗?
我即将发起一个移动应用程序进行调查.将有2个用户:Surveyor和Survey_Taker.验船师会设计调查并将其发送给调查接受者.调查接受者完成调查并将其发回给验船师.
现在我需要在网络上托管一个数据库来同步来自调查接受者手机的数据,然后将其发送给测量员.或者我可以不用它吗?
不知道我是否可以发送具有将调查数据存储在文本文件中的功能的调查?那会有什么后果?
我写了以下代码:
<?php
$a1 = "WILLIAM";
$a2 = "henry";
$a3 = "gatES";
echo $a1." ".$a2." ".$a3. "<br />";
fix_names($a1, $a2, $a3);
echo $a1." ".$a2." ".$a3;
function fix_names(&$n1, &$n2, &$n3)
{
$a1 = ucfirst(strtolower(&$n1));
$a2 = ucfirst(strtolower(&$n2));
$a3 = ucfirst(strtolower(&$n3));
}
?>
Run Code Online (Sandbox Code Playgroud)
我收到了此通知:已弃用:已弃用调用时间传递引用
我需要解释为什么我会收到此通知?为什么在PHP版本5.3.13中,这已被弃用?
我在个人安全应用程序中有一个要求,用户必须通过按下音量增大或音量减小按钮尽快启动应用程序.添加此功能的步骤是什么?
是否可以通过Android中的用户电话号码找到用户?如果可以将SMS发送给用户,那么我们还可以检索或了解我们发送SMS的用户的位置.
我的意思是可以编程以下功能:
还可以通过除SMS,EMAIL或CALL之外的任何其他方式通过用户的电话号码检索用户所需的位置吗?
Viber和VChat应用程序如何通过电话号码查找用户位置?
以下是应用商店中的一些应用:
寻求可靠的答案.
我在这里有这个网址:http://www.webpronews.com/feeds
现在我需要获取feed并在android中显示它.任何线索?
我是C++的新手.我喜欢在C++中探索继承的想法.每当我尝试编译以下代码时,我都会收到错误:
for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
D:\C Practice Files\Vehicle.cpp: In function `int main()':
D:\C Practice Files\Vehicle.cpp:26: error: `void Vehicle::setStationary_state(bool)' is inaccessible
D:\C Practice Files\Vehicle.cpp:141: error: within this context
D:\C Practice Files\Vehicle.cpp:141: error: `Vehicle' is not an accessible base of `Ship'
Execution terminated
Run Code Online (Sandbox Code Playgroud)
这是我的代码:
#include <iostream.h>
#include <conio.h>
using std::string;
class Vehicle{
private:
bool stationary_state;
double max_speed;
double min_speed;
double weight;
double volume;
int expected_life;
string fuel_type;
string model; …Run Code Online (Sandbox Code Playgroud) Android支持闪存吗?如果是,那么我需要一个示例代码来播放Flash文件.不知道我们是否可以在WebView中播放Flash文件?
等待回复
android ×7
applet ×1
architecture ×1
blackberry ×1
c++ ×1
flash ×1
geolocation ×1
inheritance ×1
java ×1
mobile ×1
php ×1
ringtone ×1