当前位置: 首页 > news >正文

做网站备案什么意思企业微网站怎么做

做网站备案什么意思,企业微网站怎么做,网站建站上市公司,就业网站建设总结Android 系统为每一个新设计的程序提供了/assets文件夹#xff0c;这个文件夹保存的文件能够打包在程序里。/res 和/assets的不同点是#xff0c;android不为/assets下的文件生成ID。假设使用/assets下的文件#xff0c;须要指定文件的路径和文件名称。以下这个样例#xf…   Android 系统为每一个新设计的程序提供了/assets文件夹这个文件夹保存的文件能够打包在程序里。/res 和/assets的不同点是android不为/assets下的文件生成ID。假设使用/assets下的文件须要指定文件的路径和文件名称。以下这个样例显示怎样訪问/assets下的内容。    在文件里/assets 中建立/image子文件夹将/res/drawable下的icon.png子文件夹复制到该文件夹中。在/assets子文件夹中建立readme.txt文件文件里输入文本“hello,world!!!”。 布局文件main.xml ?xml version1.0 encodingutf-8 ? LinearLayout xmlns:androidhttp://schemas.android.com/apk/res/android     android:orientationvertical     android:layout_widthfill_parent     android:layout_heightfill_parent     TextView      android:layout_widthfill_parent     android:layout_heightwrap_content     android:textstring/hello     /     EditText android:idid/firstId      android:layout_widthfill_parent     android:layout_heightwrap_content     android:textstring/hello     /     EditText android:idid/secondId      android:layout_widthfill_parent     android:layout_heightwrap_content     android:textstring/hello     /   /LinearLayout   程序文件 package com.cn.getassets;   import android.app.Activity; import android.os.Bundle; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import android.app.Activity ; import android.content.res.AssetManager; import android.os.Bundle ; import android.util.Log; import android.widget.EditText;       public class GetAssets extends Activity {  private EditText firstField;  private EditText secondField;  Override  public void onCreate(Bundle savedInstanceState) {   super .onCreate(savedInstanceState); //  Log.d(show main.xml,ok );   setContentView(R.layout.main );   Log.d (show main.xml,ok);   AssetManager assetManager getAssets();   String[] files null ;   try {    files assetManager.list(image);   } catch (IOException e) {    Log.e (tag, e.getMessage());   }   firstField (EditText) findViewById(R.id.firstId );   firstField.setText(Integer.toString (files.length)file.File name is files[0]);   InputStream inputStream null ;   try {    inputStream assetManager.open(readme.txt);   } catch (IOException e) {    Log.e (tag, e.getMessage());   }   String s readTextFile(inputStream);   secondField (EditText) findViewById(R.id.secondId );   secondField.setText(s);  }    private String readTextFile(InputStream inputStream) {   ByteArrayOutputStream outputStream new ByteArrayOutputStream();   byte buf[] new byte [1024];   int len;   try {    while ((len inputStream.read(buf)) ! -1) {     outputStream.write(buf, 0, len);    }    outputStream.close();    inputStream.close();   } catch (IOException e) {   }   return outputStream.toString();  } } 程序显示结果使用模拟器。 http://blog.sina.com.cn/s/blog_6cf0d3f30100m2x6.html 转载于:https://www.cnblogs.com/yxwkf/p/3921293.html
http://www.zqtcl.cn/news/183779/

相关文章:

  • 佛山手机建网站企业网站公司单位有哪些
  • 给企业做网站的平台有没有专门做衣服搭配的网站
  • 青岛本地网站最近军事新闻大事
  • 潍坊哪里有做360网站的成都官微最新发布
  • 还有哪些网站可以做淘宝活动企业建设网站的方式
  • 上海技术公司做网站2022引流人脉推广软件
  • 网站排名优化技术安徽省城乡和建设厅网站
  • 平阴县建设工程网站英文网站模板制作
  • 网站制作超链接怎么做厦门公司建站
  • 阿里云做的网站怎么备份建筑设计网站issuu
  • 网上做设计网站广西做网站找谁
  • 网站优化成本建设项目网站备案申请表
  • 做公众号首图网站上海短期网站建设培训
  • 网站开发最好佛山优化网站排名
  • 服务器搭建网站打不开网站建设信息平台
  • 宽屏蓝色企业网站源码如何编辑网站标题
  • 免费搭建手机网站广告公司怎么取名
  • 网站抓取超时错误c 高性能网站开发
  • 营销导向企业网站策划wordpress 不显示菜单
  • 特效视频网站用.net做视频网站的案例
  • 网站建设实用的网站视屏网站的审核是怎么做的
  • 网站模板之家免费下载福州网红餐厅
  • 西安网站设计与建设第三方检测机构
  • 手机网站推广法建设网站明细报价表
  • 一级a做爰片免费网站录像好商网的网站可以做中英文切换吗
  • 视频网站闪图怎么做网件路由器管理地址
  • 一个完整的网站建设网站模板去哪要
  • 烤漆 东莞网站建设水果香精东莞网站建设技术支持
  • 国家重大项目建设库网站北京网站开发外包公司
  • 建设免费网站制作二维码的软件app