对于Android,存在一个名为ACRA的开源库,它允许您自动报告应用程序崩溃和(可选日志)到Google文档电子表格或自定义提交服务URL.
C#.NET有类似的库吗?开源是首选.
我的JVM一直在libzip.so上不断地和意外地崩溃.我已经向甲骨文提交了这个错误,但是我决定看看这里是否有人遇到过这个问题,如果有的话,你是怎么处理它的?这是一个正在运行的Web应用程序
Linux 2.6.34-gentoo-r6#1 SMP Fri Sep 24 00:15:06 EDT 2010 i686 Intel(R)Xeon(R)CPU X5460 @ 3.16GHz GenuineIntel GNU/Linux
Tomcat 7.0.14 with jsvc.
我已经在下面列出了错误报告的快照.它是一个独立的服务器,没有人在运行时访问任何tomcat的jar或任何其他jar,而不是从NFS托管.
SIGSEGV (0xb) at pc=0xb6a72295, pid=19470, tid=241171312
JRE version: 6.0_29-b11 Java VM: Java HotSpot(TM) Server VM (20.4-b02 mixed mode linux-x86 )
Problematic frame: C [libzip.so+0x5295] double+0x45
If you would like to submit a bug report, please visit: http://java.sun.com/webapps/bugreport/crash.jsp The crash happened outside the Java Virtual Machine in native code. See problematic frame for where to report the bug.
--------------- …Run Code Online (Sandbox Code Playgroud) 我需要在Android上发布后支持不同的显示密度
在开发过程中,drawable-hdpi已经增长到160 png(就像其中的20个9补丁)资产
我现在需要将所有这些位图转换为mdpi,ldpi(布局和drawables XML已经很好了,以避免在LayoutInflater上引发OOM
有没有适合批量转换所有这些位图的工具?
有没有办法,如何从Analyze - > Inspect Code中排除android生成的文件(或手动指定排除的文件夹)?
我刚刚意识到(根据一些QML Bugreport),ListView的JSON代理缺失了.所以我有两个选择,用Javascript或C++创建的模型填充它
特别是我需要从预定义的URL下载.json数据并将它们解析为ListView.
我试图在Javascript中创建对象数组并将关联数组推送到ListView作为模型,但它失败了.无论我如何修改代码.
那么只有C++解决方案或我可以通过Javascript制作ListView模型吗?
谢谢
我试过的代码:
return [{"name":"value"}]
return {"name":"value"}
return [["name","value"]]
Run Code Online (Sandbox Code Playgroud)
问题始终是: ReferenceError: Can't find variable: name
我认为它基本相同,但我应该选择什么构建目标?或者他们之间真的有区别吗?
例如,针对相同平台和API级别的"Android 2.2"或"Google API"?

我可以通过在对象内设置它来更改按钮文本外观,如下所示:
<Button
android:id="@+id/login_btn_bypass"
android:textSize="15dp"
android:textColor="#878787"
android:textStyle="bold" />
Run Code Online (Sandbox Code Playgroud)
但在样式中使用textAppearance时却没有
// in layout xml
<Button
android:id="@+id/login_btn_login"
android:textAppearance="@style/login_button_text_appearance" />
// in style definition
<style name="login_button_text_appearance">
<item name="android:textSize">15dp</item>
<item name="android:textColor">#a7a7a7</item>
<item name="android:textStyle">bold</item>
</style>
Run Code Online (Sandbox Code Playgroud)
有谁知道为什么?
我已经尝试了链接http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12中的示例,以获取我的iPhone推送通知消息.我可以成功运行除第一次注册推送通知应用程序的步骤之外的所有步骤.
我遵循了不同的代码变体:
[[UIApplication sharedApplication] registerForRemoteNotificationTypes:
(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)];
Run Code Online (Sandbox Code Playgroud)
但没有一个对我有用.我在我的iPhone 4中测试它,我的Xode版本是4.2,操作系统是Lion.请指教.
我目前正在开发一个使用SDK> = 16的Android应用程序,它应该能够使用WiFi无线电在局域网中发现不同的Android设备(后来也是iOS设备).
我的第一个猜测是使用在我的三星Galaxy S2上无效的多播:仅在从同一设备发送时才接收数据包.
我的第二个猜测是使用有限的IP地址范围主动扫描网络并等待适当的响应.不幸的是,这意味着网络使用DHCP来寻址IP地址.
上述解决方案似乎都不是完美的解决方案.
我目前解决的第一个猜测是:
public class MulticastReceiver extends AsyncTask<Activity, Integer, String> {
private static final String host = "224.1.1.1";
private static final int port = 5007;
private static final String TAG = "MulticastReceiver";
protected String doInBackground(Activity... activities) {
WifiManager wm = (WifiManager)activities[0].getSystemService(Context.WIFI_SERVICE);
WifiManager.MulticastLock multicastLock = wm.createMulticastLock("mydebuginfo");
multicastLock.acquire();
String message = "Nothing";
if (multicastLock.isHeld()) {
Log.i(TAG, "held multicast lock");
}
try {
InetAddress addr = InetAddress.getByName(host);
MulticastSocket socket = new MulticastSocket(port);
socket.setTimeToLive(4);
socket.setReuseAddress(true);
socket.joinGroup(addr);
byte[] buf = …Run Code Online (Sandbox Code Playgroud) 我已经阅读了关于这个问题的所有其他帖子,但仍无济于事.
我知道这个问题可能会出现错误的证书,但是在我将证书和密钥合并到我放在服务器上的单个.pem文件之前,我验证了它的证书和密钥都是有效的.
我完全不知道如何解决这个问题,所以我们非常感谢所有建议.这是我的服务器代码
$ctx = stream_context_create();
stream_context_set_option($ctx, 'ssl', 'local_cert', 'ck.pem');
stream_context_set_option($ctx, 'ssl', 'passphrase', $passphrase);
// Open a connection to the APNS server
$fp = stream_socket_client('ssl://gateway.sandbox.push.apple.com:2195', $err, $errstr, 60, STREAM_CLIENT_CONNECT|STREAM_CLIENT_PERSISTENT, $ctx);
Run Code Online (Sandbox Code Playgroud)
PS ck.pem文件与读取权限设置在同一目录中.
这是完整的错误消息:
Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in /var/www/site/pages/Callback.php on line 3515 Warning: stream_socket_client(): Failed to enable crypto in /var/www/site/pages/Callback.php on line 3515 Warning: stream_socket_client(): unable to connect to ssl://gateway.sandbox.push.apple.com:2195 (Unknown error) in /var/www/site/pages/Callback.php on line 3515 Failed to …Run Code Online (Sandbox Code Playgroud) android ×5
.net ×1
appearance ×1
bitmap ×1
build ×1
button ×1
c# ×1
crash ×1
discovery ×1
ios ×1
iphone ×1
java ×1
javascript ×1
listview ×1
networking ×1
qml ×1
resolution ×1
styles ×1
targets ×1
xcode ×1