当前位置: 编程技术>移动开发
本页文章导读:
▪Kuix在魅族下的安装 Kuix在魅族上的安装
今天第一次在一台魅族上安装我的程序,结果不管是签名还是未签名的程序,安装都失败,魅族手机没有预装java虚拟机,一开始用的是手机主人装的一款“辰元”的.........
▪ XT800惯用的一些设置 XT800常用的一些设置
1、如何在XT800上安装软件?1)将装有SD卡的XT800通过数据线连接电脑2)将.apk格式的软件,放在SD卡上3)在程序菜单中找到“文件管理器”并点击.apk格式的软件2、如何删除.........
▪ [官方Demo]Bit地图ScalingDemo [官方Demo]BitmapScalingDemo
*
/*
* BitmapScalingDemo.java
*
* Copyright �1998-2010 Research In Motion Ltd.
*
* Note: For the sake of simplicity, this sample application may not leverage
* resource bundles and resource strings. However, .........
[1]Kuix在魅族下的安装
来源: 互联网 发布时间: 2014-02-18
Kuix在魅族上的安装
今天第一次在一台魅族上安装我的程序,结果不管是签名还是未签名的程序,安装都失败,魅族手机没有预装java虚拟机,一开始用的是手机主人装的一款“辰元”的虚拟机,安装后启动报javax/microedition/io/file/FileSystemRegistry的错误,估计是不支持文件操作,试了安装jbed,安装成功,但是没有增加图标,到安装目录下启动程序失败,估计不兼容。用了网上另外一个多文章介绍的J9jvm,同样无法安装,令人哭笑不得的是,这个虚拟机明显不是用在魅族上的,那分辨率叫大,估计用个牙签都不容易点到,更何况魅族只能用手指点,有点大象脚踩蚂蚁的感觉,戳得我快吐血了。山寨就是山寨阿,什么支持国产机之类的就是个噱头。我想起年初老婆卖的朵唯手机,2000大洋,典型的金玉其外败絮其中的作品,java程序超过500K都不让安装,分辨率超低,最让人吐血的是不管你在做什么,一点红色的结束通话键一律强制结束。
[2] XT800惯用的一些设置
来源: 互联网 发布时间: 2014-02-18
XT800常用的一些设置
1、如何在XT800上安装软件?
1)将装有SD卡的XT800通过数据线连接电脑
2)将.apk格式的软件,放在SD卡上
3)在程序菜单中找到“文件管理器”并点击.apk格式的软件
2、如何删除已安装的软件?
菜单—设置—应用程序—管理应用程序—长按需要删除的程序—卸载,即可删除相应软件
3、下载的软件,无法安装,提示为第三方软件,不允许安装!
菜单-设置-应用程序,把第一项的未知来源勾选就可以了
3、为何手机连接电脑后不能同步数据,
USB连接时,选择“内存卡管理”
进入“设置”-“应用程序”-“开发”-消除“USB调式”。因为打开USB调式后,手机连接电脑就不能访问内存卡
4、如何关闭上网功能?
菜单-双模双待设置-默认数据网络-禁用,即可关闭网络,但不影响打电话、收短信、彩信
5、下载的APK文件,为什么安装后不能打开,强行关闭?
1)安装后最好不要直接按“打开”,要选择“完成”不然很容易破坏程序
2)因为有些软件不匹配,无法使用,如果发现不能打开强行关闭的软件,请在程序管理器内卸载该程序
6、如何在XT800上打开USB调试?
设置—应用程序—开发——勾选USB调试
1、如何在XT800上安装软件?
1)将装有SD卡的XT800通过数据线连接电脑
2)将.apk格式的软件,放在SD卡上
3)在程序菜单中找到“文件管理器”并点击.apk格式的软件
2、如何删除已安装的软件?
菜单—设置—应用程序—管理应用程序—长按需要删除的程序—卸载,即可删除相应软件
3、下载的软件,无法安装,提示为第三方软件,不允许安装!
菜单-设置-应用程序,把第一项的未知来源勾选就可以了
3、为何手机连接电脑后不能同步数据,
USB连接时,选择“内存卡管理”
进入“设置”-“应用程序”-“开发”-消除“USB调式”。因为打开USB调式后,手机连接电脑就不能访问内存卡
4、如何关闭上网功能?
菜单-双模双待设置-默认数据网络-禁用,即可关闭网络,但不影响打电话、收短信、彩信
5、下载的APK文件,为什么安装后不能打开,强行关闭?
1)安装后最好不要直接按“打开”,要选择“完成”不然很容易破坏程序
2)因为有些软件不匹配,无法使用,如果发现不能打开强行关闭的软件,请在程序管理器内卸载该程序
6、如何在XT800上打开USB调试?
设置—应用程序—开发——勾选USB调试
1 楼
walkerjack
2011-01-06
这个也能发这里?
[3] [官方Demo]Bit地图ScalingDemo
来源: 互联网 发布时间: 2014-02-18
[官方Demo]BitmapScalingDemo
*
/*
* BitmapScalingDemo.java
*
* Copyright �1998-2010 Research In Motion Ltd.
*
* Note: For the sake of simplicity, this sample application may not leverage
* resource bundles and resource strings. However, it is STRONGLY recommended
* that application developers make use of the localization features available
* within the BlackBerry development platform to ensure a seamless application
* experience across a variety of languages and geographies. For more information
* on localizing your application, please refer to the BlackBerry Java Development
* Environment Development Guide associated with this release.
*/
package com.rim.samples.device.ui.bitmapscalingdemo;
import net.rim.device.api.system.*;
import net.rim.device.api.ui.*;
import net.rim.device.api.ui.container.*;
import net.rim.device.api.ui.component.*;
/**
* A sample application to demonstrate Bitmap scaling
*/
public class BitmapScalingDemo extends UiApplication
{
/**
* Entry point for application
* @param args Command line arguments (not used)
*/
public static void main(String[] args)
{
// Create a new instance of the application and make the currently
// running thread the application's event dispatch thread.
BitmapScalingDemo app = new BitmapScalingDemo();
app.enterEventDispatcher();
}
/**
* Creates a new BitmapScalingDemo object
*/
public BitmapScalingDemo()
{
pushScreen(new BitmapScalingDemoScreen());
}
/**
* MainScreen class for the BitmapScalingDemo application
*/
static class BitmapScalingDemoScreen extends MainScreen
{
private static String LABEL_X = " x ";
/**
* Creates a new BitmapScalingDemoScreen object
*/
BitmapScalingDemoScreen()
{
setTitle("Bitmap Scaling Demo");
// Create a Bitmap from a project resource
Bitmap bitmapOrig = Bitmap.getBitmapResource("rim.png");
// Create a Bitmap of arbitrary size
int scaledX = 175;
int scaledY = 50;
Bitmap bitmapScaled = new Bitmap(scaledX, scaledY);
// Scale the original Bitmap into the new Bitmap using
// a Lanczos filter.
bitmapOrig.scaleInto(bitmapScaled, Bitmap.FILTER_LANCZOS);
// Display the original Bitmap on the screen
BitmapField bitmapFieldOrig = new BitmapField(bitmapOrig, Field.FOCUSABLE);
StringBuffer strBuff = new StringBuffer("Original - ");
strBuff.append(bitmapOrig.getWidth());
strBuff.append(LABEL_X);
strBuff.append(bitmapOrig.getHeight());
add(new LabelField(strBuff.toString()));
add(bitmapFieldOrig);
add(new SeparatorField());
// Display the scaled Bitmap on the screen
BitmapField bitmapFieldScaled1 = new BitmapField(bitmapScaled, Field.FOCUSABLE);
strBuff.delete(0, strBuff.length());
strBuff.append("\nScaled - ");
strBuff.append(bitmapScaled.getWidth());
strBuff.append(LABEL_X);
strBuff.append(bitmapScaled.getHeight());
strBuff.append(" - FILTER_LANCZOS - Aspect ratio not preserved");
add(new LabelField(strBuff.toString()));
add(bitmapFieldScaled1);
add(new SeparatorField());
// Redefine the scaled Bitmap
bitmapScaled = new Bitmap(scaledX, scaledY);
// Scale the original Bitmap into the new Bitmap using
// a bilinear filter and maintaining aspect ratio.
bitmapOrig.scaleInto(bitmapScaled, Bitmap.FILTER_BILINEAR, Bitmap.SCALE_TO_FILL);
// Display the newly scaled Bitmap on the screen
BitmapField bitmapFieldScaled2 = new BitmapField(bitmapScaled, Field.FOCUSABLE);
strBuff.delete(0, strBuff.length());
strBuff.append("\nScaled - ");
strBuff.append(bitmapScaled.getWidth());
strBuff.append(LABEL_X);
strBuff.append(bitmapScaled.getHeight());
strBuff.append(" - FILTER_BILINEAR - Aspect ratio preserved");
add(new LabelField(strBuff.toString()));
add(bitmapFieldScaled2);
add(new SeparatorField());
// Redefine the scaled Bitmap
bitmapScaled = new Bitmap(scaledX, scaledY);
// Calculate fragment dimensions
int fragmentWidth = bitmapOrig.getWidth() >> 1; // >> 1 equivalent to / 2
int fragmentHeight = bitmapOrig.getHeight() >> 1; // >> 1 equivalent to / 2
// Scale a fragment of the original Bitmap into the new Bitmap
// using a box filter.
bitmapOrig.scaleInto(0, 0, fragmentWidth, fragmentHeight, bitmapScaled, 0, 0, bitmapScaled.getWidth(), bitmapScaled.getHeight(), Bitmap.FILTER_BOX);
// Display the newly scaled Bitmap on the screen
BitmapField bitmapFieldScaled3 = new BitmapField(bitmapScaled, Field.FOCUSABLE);
strBuff.delete(0, strBuff.length());
strBuff.append("\nScaled fragment ");
strBuff.append(fragmentWidth);
strBuff.append(LABEL_X);
strBuff.append(fragmentHeight);
strBuff.append(" into ");
strBuff.append(bitmapScaled.getWidth());
strBuff.append(LABEL_X);
strBuff.append(bitmapScaled.getHeight());
strBuff.append(" - FILTER_BOX");
add(new LabelField(strBuff.toString()));
add(bitmapFieldScaled3);
}
}
}
*
最新技术文章: