Click here to Skip to main content
15,796,885 members
Home / Discussions / Android
   

Android

 
AnswerRe: Insert Images in EditText as in default Notes app in mobiles Pin
Richard MacCutchan20-Feb-16 5:34
mveRichard MacCutchan20-Feb-16 5:34 
QuestionLive GPS Tracking Pin
Jay28517-Feb-16 4:09
Jay28517-Feb-16 4:09 
AnswerRe: Live GPS Tracking Pin
Richard MacCutchan17-Feb-16 5:29
mveRichard MacCutchan17-Feb-16 5:29 
AnswerRe: Live GPS Tracking Pin
David Crow17-Feb-16 8:12
David Crow17-Feb-16 8:12 
QuestionUnable to use Listadapter along with getfilter() for dynamic search filter? Pin
A KA15-Feb-16 6:48
A KA15-Feb-16 6:48 
SuggestionRe: Unable to use Listadapter along with getfilter() for dynamic search filter? Pin
David Crow15-Feb-16 10:12
David Crow15-Feb-16 10:12 
QuestionNative vs Hybrid App Development Pin
Member 1232849715-Feb-16 4:13
Member 1232849715-Feb-16 4:13 
QuestionAndroid: cannot open drawer inside onReceivedError Pin
Bazzer13-Feb-16 12:09
Bazzer13-Feb-16 12:09 
I have this code within `onCreate`:

webView.setWebViewClient(new WebViewClient() {

    final ProgressDialog progress = new ProgressDialog(MainActivity.this);
    .
    .
    public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {
        view.loadUrl("file:///android_asset/www/error.html");
        DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
        drawer.openDrawer(GravityCompat.START);
        progress.dismiss();
    }

});


When there is no internet connection it successfully detects the error and loads `error.html`. However, it refuses to open the drawer. Also, it closes the progress dialog whether I comment out that line or not. The drawer opens and closes fine when the back button is pressed:

@Override
public void onBackPressed() {
    DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
    if (drawer.isDrawerOpen(GravityCompat.START)) {
        drawer.closeDrawer(GravityCompat.START);
    } else {
        drawer.openDrawer(GravityCompat.START);
    }
}


Why will the drawer not open inside onReceivedError?
QuestionConsuming WCF web service from android Pin
Member 1232072611-Feb-16 1:26
Member 1232072611-Feb-16 1:26 
QuestionPopulate Spinner from Sqlite and display the associated record of selected or populated item Pin
Varma Lanke8-Feb-16 20:46
Varma Lanke8-Feb-16 20:46 
AnswerRe: Populate Spinner from Sqlite and display the associated record of selected or populated item Pin
Richard MacCutchan8-Feb-16 22:53
mveRichard MacCutchan8-Feb-16 22:53 
SuggestionRe: Populate Spinner from Sqlite and display the associated record of selected or populated item Pin
David Crow9-Feb-16 3:14
David Crow9-Feb-16 3:14 
QuestionTutorialObjectTracking-master Pin
Member 122599845-Feb-16 3:25
Member 122599845-Feb-16 3:25 
AnswerRe: TutorialObjectTracking-master Pin
David Crow5-Feb-16 3:32
David Crow5-Feb-16 3:32 
GeneralRe: TutorialObjectTracking-master Pin
Member 122599845-Feb-16 3:47
Member 122599845-Feb-16 3:47 
GeneralRe: TutorialObjectTracking-master Pin
Richard MacCutchan5-Feb-16 7:25
mveRichard MacCutchan5-Feb-16 7:25 
GeneralRe: TutorialObjectTracking-master Pin
Member 122599846-Feb-16 5:10
Member 122599846-Feb-16 5:10 
GeneralRe: TutorialObjectTracking-master Pin
Richard MacCutchan6-Feb-16 5:12
mveRichard MacCutchan6-Feb-16 5:12 
GeneralRe: TutorialObjectTracking-master Pin
Member 122599846-Feb-16 5:30
Member 122599846-Feb-16 5:30 
GeneralRe: TutorialObjectTracking-master Pin
Richard MacCutchan6-Feb-16 6:23
mveRichard MacCutchan6-Feb-16 6:23 
GeneralRe: TutorialObjectTracking-master Pin
David Crow7-Feb-16 10:03
David Crow7-Feb-16 10:03 
GeneralRe: TutorialObjectTracking-master Pin
Member 1225998410-Feb-16 7:54
Member 1225998410-Feb-16 7:54 
SuggestionRe: TutorialObjectTracking-master Pin
David Crow10-Feb-16 7:58
David Crow10-Feb-16 7:58 
QuestionInsert Images in EditText as in Notes app in Android Mobiles Pin
Tirumaleswara Reddy.K4-Feb-16 3:16
Tirumaleswara Reddy.K4-Feb-16 3:16 
QuestionRe: Insert Images in EditText as in Notes app in Android Mobiles Pin
David Crow4-Feb-16 7:21
David Crow4-Feb-16 7:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.