lufo88 | 1 Oct 11:59 2014
Picon

Crash dialog do not prompt with beta app

Hi,

I develop an app and I distribute it as beta trough play store.
It's my first app, so I want to test the ANR/crash report function of play store, in order to this I add a button that simply throw an Exception when someone touch it. The app (of course :-D) crash if I touch it, but the alert "Unfortunately <name app> has stopped" do not prompt.
I google about this, with no result
My device is a Nexus 7 (2012) with latest version  of kitkat.

Any idea?

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Qoheleth | 1 Oct 00:23 2014
Picon

How do you get a preference's View?

As suggested by the docs if using Android 3.0+, I used a Preference fragment which is used by an Activity that uses getFragmentManager to implement Preferences. My question is, how do you get the (root?) View of a Preference layout?
In both SettingsActivity and SettingsFragment, findViewById and getView both return null, which probably means that the preference layout view is null, but somehow there is a layout.

I also have a custom preference, CustomCatalogListPreference. What I'm trying to do is gain access to a progress bar that is part of the custom preference, but findViewById or getView both return null.

public class SettingsActivity extends Activity {

   
<at> Override
   
protected void onCreate(Bundle savedInstanceState) {
       
super.onCreate(savedInstanceState);

       
// Display the fragment as the main content.
        getFragmentManager
().beginTransaction()
               
.replace(android.R.id.content, new SettingsFragment( this ))
               
.commit();
   
}
}

public class SettingsFragment extends PreferenceFragment {
   
public static final String ABILITY_SCORES_KEY = "pref_score";
   
public static final String SAVING_THROW_KEY = "pref_saveThrow";
   
Context mContext;

   
public SettingsFragment( Context ctx ) {
        mContext
= ctx;
   
}

   
<at> Override
   
public void onCreate(Bundle savedInstanceState) {
       
super.onCreate(savedInstanceState);

       
// Load the preferences from an XML resource
        addPreferencesFromResource
( R.xml.preferences );
   
}
}

public class CustomCatalogListPreference extends ListPreference {

   
Context mContext;

   
public CustomCatalogListPreference( Context context, AttributeSet attrs ) {
       
super( context, attrs );
        mContext
= context;
   
}

   
public CustomCatalogListPreference( Context context ) {
       
super(context);
        mContext
= context;
   
}

   
<at> Override
   
public View onCreateView( ViewGroup parent ) {
       
super.onCreateView( parent );
       
LayoutInflater inflater = ( LayoutInflater ) mContext.getSystemService( Context.LAYOUT_INFLATER_SERVICE );
       
return inflater.inflate( R.layout.custpref_catalog_list, null );
   
}

   
<at> Override
   
protected void onBindView( View view ) {
       
super.onBindView( view );
   
}


--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Josphat Muchiri | 30 Sep 20:44 2014
Picon

Experienced Android developer needed

Hey,
I am in need of several android developers to work on a project start-up, working from  anywhere you are. Contact me asap.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Rahul Raja | 30 Sep 15:35 2014
Picon

Crash while using GoogleAnalytics v2

I am using GoogleAnalytics v2 and sometimes the app crashes with the following log

java.lang.SecurityException: Unable to find app for caller android.app.ApplicationThreadProxy <at> 42a424c8 (pid=2801) when registering receiver android.content.IIntentReceiver$Stub$Proxy <at> 42a37d40 at android.os.Parcel.readException(Parcel.java:1465) at android.os.Parcel.readException(Parcel.java:1419) at android.app.ActivityManagerProxy.registerReceiver(ActivityManagerNative.java:2330) at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1450) at android.app.ContextImpl.registerReceiver(ContextImpl.java:1418) at android.app.ContextImpl.registerReceiver(ContextImpl.java:1412) at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:467) at com.google.analytics.tracking.android.GAServiceManager.b(GAServiceManager.java:168) at com.google.analytics.tracking.android.GAServiceProxy.i(GAServiceProxy.java:264) at com.google.analytics.tracking.android.GAServiceProxy.j(GAServiceProxy.java:282) at com.google.analytics.tracking.android.GAServiceProxy.d(GAServiceProxy.java:27) at com.google.analytics.tracking.android.GAServiceProxy$ReconnectTask.run(GAServiceProxy.java:357) at java.util.Timer$TimerImpl.run(Timer.java:284)

Not able to find the exact reason for this.? This doesnt occurs too often but sometimes

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Abhishek Kumar Gupta | 30 Sep 14:29 2014
Picon

how to make video from frames data (byte array) received from onPreviewFrame() on Android 4.0+ (API 14+)

Actually I want to implement pause/resume functionality while recording video but MediaRecorder does not support it. Because of that, I want to make a video file from frames data (byte array) received from onPreviewFrame(). Is it possible to achieve on Android 4.0+ (API 14+) versions?

Please help me, it's urgent. Any help or guidance will be well appreciated.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
pedr0 | 30 Sep 12:21 2014
Picon

finish() does not dismiss AlertDialogs

Hi all,

I am developing an activity which generate an AlertDialog and attach to it an onClickListener which calls the finish() method, I am experiencing a strange issue which
result is a kind of  stalemate: pressing the Ok button finish() gets called and I can see the onDestroy() being called by the system using Log.cat().

The activity is the only one in the stack therefore the system quits from the app but when I start it again I can still see the AlertDialog (!) then if I  click
in the Ok button again I will exit.

Any ideas ?


 
AlertDialog.Builder builder = new AlertDialog.Builder(context);                                                                                                              
 
AlertDialog dialog = builder.create(); 
  DialogInterface.OnClickListener ok = new DialogInterface.OnClickListener()
        {
            <at> Override
            public void onClick(DialogInterface dialog, int which)
            {
               finish();
            }
        };
   dialog
.setButton(Dialog.BUTTON_POSITIVE, "Ok", positiveBtnListener);


--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mathias Lin | 30 Sep 11:56 2014

localStorage html5 feature not working in WebView on Android devices of some manufacturers

I have a html5 application that I wrap in a WebView. To store and retrieve user input values between pages, I use the localStorage html5 feature.

It works fine on my Nexus 4 (Android 4.4.4), but it does not work on Samsung Galaxy Tab 2 (Android 4.3.x) (= nothing happens, but also no error in logcat). Or, to be more clear: on Samsung, it does not work if the html pages are loaded from within the app's asset folder. It does work though if I put the pages on a web server, as below in the outcommented line.

However, on Nexus 4, loading from file:///android_asset/ and also if I load the pages on a desktop browser (Chrome, Firefox) from file:// path, it is also working.

(I had another user reported the issue on a LG device, so it does not seem to be Samsung specific).

Below are the settings of the web view.

webView = (WebView)this.findViewById(R.id.webView); webViewClient = new MyWebViewClient(this); webViewClient.setSm(sm); webView.setWebViewClient(webViewClient); WebSettings webSettings = webView.getSettings(); webSettings.setJavaScriptEnabled(true); webSettings.setDomStorageEnabled(true); webView.getSettings().setJavaScriptEnabled(true); webView.getSettings().setDomStorageEnabled(true); webView.getSettings().setPluginState(WebSettings.PluginState.ON); webView.getSettings().setAppCacheEnabled(false); webView.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE); webView.getSettings().setUseWideViewPort(true); webView.getSettings().setLoadWithOverviewMode(true); webView.getSettings().setBuiltInZoomControls(false); webView.getSettings().setSupportZoom(false); webView.getSettings().setDefaultZoom(WebSettings.ZoomDensity.FAR); webView.loadUrl("file:///android_asset/01_home.html"); // does NOT work! // webView.loadUrl("http://192.168.178.33/01_home.html"); // does work!

Local storage code in the pages:

// storing var data = document.getElementById('data').value; window.localStorage.setItem((1), data); // reading document.getElementById('data').value = window.localStorage.getItem(1);

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Shashidhar | 29 Sep 11:43 2014
Picon

gzip compression for http parameters

Hi,
 Currently I am using httpclient's bytearray entity to compress and send data to server. Code for the same is below.

final String url = "www.example.com/u.h";

HttpPost httppost = new HttpPost(url);  

String data = "Hello World! Blah.. Blah.... Blah..............";  //sample data. this can be huge that the compression helps

if (data.length() > AndroidHttpClient.getMinGzipSize(getContentResolver())) {

             httppost.setHeader("Content-Encoding", "gzip");

}

httppost.setEntity(AndroidHttpClient.getCompressedEntity(data.getBytes("UTF-8"), WorkoutActivity.this.getContentResolver()));

HttpResponse response = httpClient.execute(httppost); 



Now, I want to change the bytearray entity to url encoded entity i.e, I want to change something like "param1=data".  

i.e, I want to still compress the data and attach it to a http parameter. We use servlet on server side to read the data.

Currently with bytestream being uploaded we are using servlet filter to handle decompressing the data.

I need the sample code similar to like the one below.


String url = "www.example.com/u.z";

HttpPost httppost = new HttpPost(url); 

String data = "Hello World! Blah.. Blah.... Blah..............";  //sample data. this can be huge that the compression helps

List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();

nameValuePairs.add(new BasicNameValuePair("param1", data ));  // I want the data to be compressed here.

httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));

HttpResponse response= httpclient.execute(httppost);


Any help is appreciated.


Thanks,

Shashidhar



--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Qoheleth | 29 Sep 05:05 2014
Picon

Absolutely stumped. libcore.io.ErrnoException

Everytime I start the debugger, before my app even starts or installs, the debugger stops on an exception:

libcore.io.ErrnoException.

I have no idea what this means. I did a search, but other people who have gotten a similar error seem to be doing something wrong with loading files. My code has no file processing, but more importantly, my app hasn't even started!

I did a search in the LogCat, but there is nothing about ErrnoException. These are some of the error messages I catch instead:

09-29 02:24:00.272      324-337/system_process E/NetdConnector﹕ NDC Command {6 bandwidth enable} took too long (3205ms)
09-29 02:24:00.652      518-518/com.android.inputmethod.latin E/Trace﹕ error opening trace file: No such file or directory (2)
09-29 02:24:00.720      536-536/com.android.phone E/Trace﹕ error opening trace file: No such file or directory (2)
09-29 02:24:00.736      324-351/system_process E/Genymotion﹕ Could not open '/sys/class/power_supply/genymotion_fake_path/present'
09-29 02:24:00.816      324-557/system_process E/GpsLocationProvider﹕ no AGPS interface in agps_data_conn_open
09-29 02:24:00.832      547-547/com.android.launcher E/Trace﹕ error opening trace file: No such file or directory (2)
09-29 02:24:01.296      518-585/com.android.inputmethod.latin E/ActivityThread﹕ Failed to find provider info for com.android.inputmethod.latin.dictionarypack
09-29 02:24:01.300      518-585/com.android.inputmethod.latin E/BinaryDictionaryGetter﹕ Could not find a dictionary pack
09-29 02:24:01.572      590-590/android.process.acore E/Trace﹕ error opening trace file: No such file or directory (2)
09-29 02:24:01.648      603-603/com.android.smspush E/Trace﹕ error opening trace file: No such file or directory (2)
09-29 02:24:03.108      636-636/com.android.deskclock E/Trace﹕ error opening trace file: No such file or directory (2)
09-29 02:24:03.456      115-393/? E/WVMExtractor﹕ Failed to open libwvm.so
09-29 02:24:03.532      654-654/? E/Trace﹕ error opening trace file: No such file or directory (2)
09-29 02:24:03.604      115-392/? E/WVMExtractor﹕ Failed to open libwvm.so
09-29 02:24:03.912      676-676/com.android.providers.calendar E/Trace﹕ error opening trace file: No such file or directory (2)
09-29 02:24:04.036      115-345/? E/WVMExtractor﹕ Failed to open libwvm.so
09-29 02:24:04.044      686-686/android.process.media E/Trace﹕ error opening trace file: No such file or directory (2)
09-29 02:24:04.156      115-115/? E/WVMExtractor﹕ Failed to open libwvm.so
09-29 02:24:04.320      115-393/? E/WVMExtractor﹕ Failed to open libwvm.so
09-29 02:24:05.562      730-730/com.android.email E/Trace﹕ error opening trace file: No such file or directory (2)
09-29 02:24:06.246      746-746/? E/Trace﹕ error opening trace file: No such file or directory (2)
09-29 02:24:06.594      324-351/system_process E/Genymotion﹕ Could not open '/sys/class/power_supply/genymotion_fake_path/present'
09-29 02:24:06.922      765-765/com.android.mms E/Trace﹕ error opening trace file: No such file or directory (2)
09-29 02:24:07.682      809-809/com.android.voicedialer E/Trace﹕ error opening trace file: No such file or directory (2)
09-29 02:24:07.914      823-823/com.android.calendar E/Trace﹕ error opening trace file: No such file or directory (2)
09-29 02:27:09.302      112-136/? E/SocketStream﹕ readFully was waiting for 259712 bytes, got 3732
09-29 02:27:09.310      112-136/? E/SocketStream﹕ readFully was waiting for 255980 bytes, got 32768
09-29 02:27:09.310      112-136/? E/SocketStream﹕ readFully was waiting for 223212 bytes, got 3732
09-29 02:35:22.302    1019-1019/? E/jdwp﹕ Failed sending req to debugger: Broken pipe (-1 of 80)
09-29 02:35:22.594      107-107/? E/local_camera﹕ We have a problem with the player connection 104 (Connection reset by peer)
09-29 02:35:26.994      324-351/? E/Genymotion﹕ Could not open '/sys/class/power_supply/genymotion_fake_path/present'

I tried uninstalling and updating Intellij, thinking it was an IDE. No luck. I updated all the SDK APIs I had installed. No luck.

The only code I added before this started happening was adding a Preference activity. Even when I roll back changes on git, I still get the same error.

What the hell is going on? Why is my debugger catching this error, and why now? What part of the toolchain is messed up? I'm not sure what is messed up....my code, ide, SDK, or emulator?


--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
HIFILEO | 28 Sep 19:26 2014
Picon

Ll

Ppl 0 p point p position pp poo lost k

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Picon

Network Service Discovery discovers nothing on Android L

Hello,

I played a little bit with this example:
http://developer.android.com/training/connect-devices-wirelessly/nsd.html

But on Android L it discovers nothing. The same code on KitKat discovers
the expected services.

Is this a know issue? I found nothing about it at
https://code.google.com/p/android/issues and opened a new ticket:
https://code.google.com/p/android/issues/detail?id=76796

Ralph

--

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Gmane