我正在使用Eclipse Gallieo并尝试使用Android插件.但是我收到以下错误.
无法完成安装,因为找不到一个或多个必需的项目.正在安装的软件:Android开发工具16.0.1.v201112150204-238534(com.android.ide.eclipse.adt.feature.group 16.0.1.v201112150204-238534)缺少要求:Android开发工具16.0.1.v201112150204-238534( com.android.ide.eclipse.adt.feature.group 16.0.1.v201112150204-238534)需要'org.eclipse.ui 3.6.2'但无法找到
我有一个启动画面,如果服务器上有任何新内容,则会检查URL.如果show我希望向app用户显示一个AlertDialog,以便取决于用户的操作,即如果YES从服务器下载新内容并将其送到数据库,否则如果NO从服务器加载应用程序的内容.
但是,我无法在AsyncTask中使用警报对话框我的代码段如下:
protected String doInBackground(String... mode){
/* I AM QUERY MY DATABASE FOR THE PREVIOUS CONTENT(SAY CONTENT 1, CONTENT 2);
* then i start my connection to the server which has an xml file with the content
* info (say content 3), at this stage .
* i Check certain condition here,
* say if result ==0 then i wish to display an alertdialog.
* I used an alert dialog and i get some error. Stating use Looper or Handler. …Run Code Online (Sandbox Code Playgroud) 我目前正在从服务器的xml文件中将文本加载到我的应用程序中.但是,这些文本被分配给TextView.根据我的需要,我的文字没有对齐.即我希望那些文本作为微软词的理由.
<TextView android:id="@+id/nvContent"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="5dip"
android:layout_marginTop="5dip"
android:layout_weight="1"
android:gravity="fill"
android:text="Inglot Cosmetics now in Kathmandu Inglot, which has been selling its products in over 240 stores all over the world is now here for you in Kathmandu. It has one of the most extensive colour ranges in cosmetics collections. Working with the best makeup artists, Inglot brings you the latest trends in colour, texture and form. Experiment with countless shades and combinations of face powder, blushers, eye shadows and lipsticks."
android:textColor="#ff000000" …Run Code Online (Sandbox Code Playgroud)