`
cyhmna
  • 浏览: 32555 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
社区版块
存档分类
最新评论
文章列表
import java.io.File; import java.io.IOException; public class ModifyFileSuffix { static String path ="G:\\song\\XJ803GBJ"; public static void main(String[] args) { // TODO Auto-generated method stub modifiFileSuffix(path); } /** * 批量修改文件后缀 * @param path */ static void ...
c 语言 extern 关键字作用小点: 1,A文件中 定义extern char a; 表示变量a 最初不是在A文件中定义的,而是在其他文件中定义的,而在A文件中引用了他。 也就是说在其他文件中一定有个char a;的定义。
isPrototyping = Build.BRAND.toLowerCase().indexOf("generic") != -1                 && Build.MODEL.toLowerCase().indexOf("sdk") != -1; isPrototyping true:emulator false: device
public class Hello4 { static Integer i; /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub i = new Integer(2); f1(i); System.out.println(i); } public static void f1(Integer i) { System.out.println("before-"+i); i = new Int ...
1,Setter public static void setValueByAPI(Object API_obj, String API_name, int val) { Class<?> iClass = API_obj.getClass(); try{ Method setMethod = iClass.getMethod("set" + API_name, new Class[]{int.class}); Log.v(TAG, "setValueByAPI " + API_name + " value:&qu ...
场景:从Activity A跳转到Activity B,B的尺寸不能完全覆盖A,此时想使A隐藏: 具体实现,在跳转语句的后面加以下代码: WindowManager.LayoutParams lp = getWindow().getAttributes(); lp.alpha = 0f; getWindow().setAttributes(lp);
1,首先,理解VideoView类中onMeasure函数对于屏幕的处理。即以下这段代码的含义。 if (mVideoWidth > 0 && mVideoHeight > 0) {             if ( mVideoWidth * height  > width * mVideoHeight ) {                 //Log.i("@@@", "image too tall, correcting");                 height = width * mVideoHeigh ...
    public static final Uri PREFERAPN_URI = Uri.parse("content://telephony/carriers/preferapn");     /*      * return current apn name of system.      */     private String getCurrentApn() {         int id = 0;         Cursor cursor = getContentResolver().query(PREFERAPN_URI, new String[] ...
   流媒体实现全屏切换: 1,重写videoview类(StreamVideoView),2,修改Onmeasure函数,将修正高和宽的代码注释掉,3,在播放器界面添加进行播放的按钮。 @Override     public void onConfigurationChanged(Configuration newConfig) {         // TODO Auto-generated method stub         Display display = getWindowManager().getDefaultDisplay();         int Screen ...
Global site tag (gtag.js) - Google Analytics