小编Par*_*ani的帖子

适用于Android的Interface Builder(用户界面设计器)

自从过去7个月以来我一直在Android上工作....也知道关于I-phone应用程序的简要介绍.

在Android中,Eclipse中有一个糟糕的布局编辑器,但它既不像I-phone Interface Builder也不好用户友好.

是否有任何视觉设计师与iPhone"界面生成器"相提并论?

Ya,DroidDraw在那里,但用户界面友好,不像I-Phone的界面生成器......

android interface-builder android-layout

13
推荐指数
2
解决办法
1万
查看次数

Android平板电脑 - 获取唯一设备ID

我们如何从Android平板电脑(Android 3.0 SDK HoneyComb)获取唯一设备ID?

我还发现我们可以通过使用以下方式获取唯一的Android设备ID:String deviceId = Settings.System.getString(getContentResolver(),Settings.System.ANDROID_ID);

但是这里写的是Although, it is not guaranteed that the Android ID will be an unique identifier..

我也经历了一些SO问题:

  1. 是否有唯一的Android设备ID?
  2. 如何查找Android设备的序列号?

并且还引用了这篇文章:http://android-developers.blogspot.com/2011/03/identifying-app-installations.html.

但我很困惑 how do we get/have Unique Device ID from the Android Tablet type of Device?

android

12
推荐指数
2
解决办法
3万
查看次数

将JavaScript添加到WebView中

我正在开发一个应用程序,其中1部分我想将javascript添加到WebView中..但我没有得到如何以适当的方式做到这一点..任何人都可以引导我进入这个?????

我这样做:

      wb=(WebView)findViewById(R.id.webView1);
        wb.getSettings().setJavaScriptEnabled(true);
        wb.getSettings().setPluginState(WebSettings.PluginState.ON);
        wb.getSettings().setPluginsEnabled(true);

        wb.loadUrl("javascript:<script " ></script> ");
        wb.setWebViewClient(new HelloWebViewClient());


 public boolean shouldOverrideUrlLoading(WebView view, String url) {
            view.loadUrl(url);
            return true;
        }
Run Code Online (Sandbox Code Playgroud)

android android-layout android-webview

12
推荐指数
1
解决办法
2万
查看次数

隐藏infowindow android map api v2

我试图在android地图中关闭默认的infowindow.我曾经使用.hideInfoWindow()但没有任何意外.谢谢.

java android google-maps-api-2

12
推荐指数
3
解决办法
1万
查看次数

Android - 在通知栏中保持通知稳定

我已经编写了通知并在通知栏中显示的功能:

private void showNotification()
    {
            CharSequence title = "Hello";
            CharSequence message = "Notification Demo";

            NotificationManager notificationManager = (NotificationManager)getSystemService(NOTIFICATION_SERVICE);
            Notification notification = new Notification(R.drawable.icon, "A Notification", System.currentTimeMillis());
            Intent notificationIntent = new Intent(this, Main_Activity.class);
            PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, notificationIntent, 0);

            notification.setLatestEventInfo(Main_Activity.this, title, message, pendingIntent);
            notificationManager.notify(NOTIFICATION_ID, notification);
    }
Run Code Online (Sandbox Code Playgroud)

它工作正常,但what way we can keep the notification steady at Notification bar即使用户按下通知栏中的"清除"通知按钮?

请查看"Yahoo"应用程序的通知栏.

在此输入图像描述

我已经阅读了这篇SDK文章:http://developer.android.com/guide/topics/ui/notifiers/notifications.html#Updating,但未能找到答案.

android notification-bar android-notification-bar

11
推荐指数
2
解决办法
1万
查看次数

在App Purchasing中在Android中:购买签名失败

我使用测试帐户购买了一件商品.我购买了一件商品,android.test.purchase但刷新活动时我得到以下错误: -

错误:无法查询库存:IabResult:刷新库存时出错(查询所有物料).(响应:1003:购买签名验证失败)

如果有人对这个问题有所了解.请回复.

android

11
推荐指数
1
解决办法
3130
查看次数

Android - 从表值生成CSV文件

我有一个包含一个表的数据库,我想生成包含该表值的CSV文件.

实际上,我想将此CSV文件作为附件发送电子邮件.我知道在电子邮件中将文件作为附件发送intent(ACTION_SEND),但我不知道创建的过程或我可以创建CSV格式文件的方法.

请给我建议或想法.

java android

10
推荐指数
2
解决办法
4万
查看次数

Android - popover控制器和ipad一样

这是ipad的popover控制器.

在此输入图像描述

我们如何在Android中创建相同类型的东西?其实我想显示html文件或用URL加载webview.

android popover

10
推荐指数
2
解决办法
1万
查看次数

冰淇淋三明治的位置经理问题

任何人都可以解释一下这个错误是什么?我只获得了android 4 +而不是下面的:

E/AndroidRuntime(891): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.getaddress/com.example.getaddress.MainActivity}: java.lang.IllegalArgumentException: requested provider network doesn't exisit

gps android

10
推荐指数
1
解决办法
4033
查看次数

Android - Listview删除项目和刷新

我正在尝试使用Delete功能实现ListView以从列表视图中删除项目.我成功删除但在删除数据库中的项目后无法刷新列表视图.

实际上,单击listitem,我显示AlertBox为"删除"和"取消"操作,单击"删除",项目应从数据库中删除,以及从列表视图和列表视图中删除应该刷新.我也用过notifyDataSetChanged()方法.

lview = (ListView) findViewById(R.id.lview);
adapter = new ListView_CustomAdapter(this, listitemDisplay);
lview.setAdapter(adapter);

lview.setOnItemClickListener(new OnItemClickListener() 
{
     @Override
     public void onItemClick(AdapterView<?> a, View v, int position, long id)
     {
        Show_Alert_box(v.getContext(),"Please select action.",position);
     }
});
Run Code Online (Sandbox Code Playgroud)

和Show_Alert_box的代码:

 public void Show_Alert_box(Context context, String message,int position)
     {
         final int pos = position;

         final AlertDialog alertDialog = new  AlertDialog.Builder(context).create();
            alertDialog.setTitle(getString(R.string.app_name_for_alert_Dialog));
            alertDialog.setButton("Delete", new DialogInterface.OnClickListener() {
                public void onClick(DialogInterface dialog, int which) {

                    try
                    {
                        db.open();
                                 String[] whereArgs={String.valueOf(pkID)};
        return db.delete(DATABASE_TABLE_4,"pk_pkID == ?",whereArgs);    
                        adapter.notifyDataSetChanged();
                        db.close();
                    }
                    catch(Exception e) …
Run Code Online (Sandbox Code Playgroud)

android android-listview

9
推荐指数
4
解决办法
4万
查看次数