Log error
12-01 19:54:16.928: WARN/dalvikvm(501): threadid=3: thread exiting
with uncaught exception (group=0x4001b188)12-01 19:54:16.938: ERROR/
AndroidRuntime(501): Uncaught handler: thread main exiting due to
uncaught exception12-01 19:54:16.948: ERROR/AndroidRuntime(501):
java.lang.IllegalArgumentException: Activity#onCreateDialog did not
create a dialog for id 312-01 19:54:16.948: ERROR/AndroidRuntime(501):
    at android.app.Activity.createDialog(Activity.java:871)12-01
19:54:16.948: ERROR/AndroidRuntime(501):     at
android.app.Activity.showDialog(Activity.java:2483)12-01 19:54:16.948:
ERROR/AndroidRuntime(501):     at
com.appmobileos.freetoiletsrussia.Parametri_Add_WC.onOptionsItemSelected(Parametri_Add_WC.java:
317)12-01 19:54:16.948: ERROR/AndroidRuntime(501):     at
android.app.Activity.onMenuItemSelected(Activity.java:2170)12-01
19:54:16.948: ERROR/AndroidRuntime(501):     at
com.android.internal.policy.impl.PhoneWindow.onMenuItemSelected(PhoneWindow.java:
730)12-01 19:54:16.948: ERROR/AndroidRuntime(501):     at
com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:
139)12-01 19:54:16.948: ERROR/AndroidRuntime(501):     at
com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:
855)12-01 19:54:16.948: ERROR/AndroidRuntime(501):     at
com.android.internal.view.menu.IconMenuView.invokeItem(IconMenuView.java:
525)12-01 19:54:16.948: ERROR/AndroidRuntime(501):     at
com.android.internal.view.menu.IconMenuItemView.performClick(IconMenuItemView.java:
122)12-01 19:54:16.948: ERROR/AndroidRuntime(501):     at
android.view.View.onTouchEvent(View.java:4179)12-01 19:54:16.948:
ERROR/AndroidRuntime(501):     at
android.widget.TextView.onTouchEvent(TextView.java:6540)12-01
19:54:16.948: ERROR/AndroidRuntime(501):     at
android.view.View.dispatchTouchEvent(View.java:3709)12-01
19:54:16.948: ERROR/AndroidRuntime(501):     at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)12-01
19:54:16.948: ERROR/AndroidRuntime(501):     at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)12-01
19:54:16.948: ERROR/AndroidRuntime(501):     at
com.android.internal.policy.impl.PhoneWindow
$DecorView.dispatchTouchEvent(PhoneWindow.java:1643)12-01
19:54:16.948: ERROR/AndroidRuntime(501):     at
android.view.ViewRoot.handleMessage(ViewRoot.java:1691)12-01
19:54:16.948: ERROR/AndroidRuntime(501):     at
android.os.Handler.dispatchMessage(Handler.java:99)12-01 19:54:16.948:
ERROR/AndroidRuntime(501):     at android.os.Looper.loop(Looper.java:
123)12-01 19:54:16.948: ERROR/AndroidRuntime(501):     at
android.app.ActivityThread.main(ActivityThread.java:4363)12-01
19:54:16.948: ERROR/AndroidRuntime(501):     at
java.lang.reflect.Method.invokeNative(Native Method)12-01
19:54:16.948: ERROR/AndroidRuntime(501):     at
java.lang.reflect.Method.invoke(Method.java:521)12-01 19:54:16.948:
ERROR/AndroidRuntime(501):     at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:860)12-01 19:54:16.948: ERROR/
AndroidRuntime(501):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)12-01
19:54:16.948: ERROR/AndroidRuntime(501):     at
dalvik.system.NativeStart.main(Native Method)12-01 19:54:16.958: INFO/
Process(51): Sending signal. PID: 501 SIG: 312-01 19:54:16.969: INFO/
dalvikvm(501): threadid=7: reacting to signal 312-01 19:54:16.969:
ERROR/dalvikvm(501): Unable to open stack trace file '/data/anr/
traces.txt': Permission denied
On 1 дек, 08:09, Andrei <[email protected]> wrote:
> Good afternoon. Prompt why this code works inAndroid2.2and not
> working inAndroid2.1. óalling dialogue.
> final Dialog pricewc = new Dialog(this);
>                 LayoutInflater inf = getLayoutInflater();
>                 View layoutdialog = inf.inflate(R.layout.pricewc,
> (ViewGroup)findViewById(R.id.pricewcadd));
>                 pricewc.setContentView(layoutdialog);
>                 final EditText textdialog =
> (EditText)pricewc.findViewById(R.id.pricewcadd);
>                 pricewc.setTitle(R.string.dialog_add_wc_coast);
>                 Button bn = (Button)pricewc.findViewById(R.id.buttonAdd);
>                 Button bn_cansel =
> (Button)pricewc.findViewById(R.id.buttonAdd_cansel);
>                 bn.setOnClickListener(new View.OnClickListener() {
>                 public void onClick(View v) {
>                                 showDialog(ExitActvitiFinal);
>                                 pricewc.cancel();
>
>                         }
>                 });
>                 bn_cansel.setOnClickListener(new View.OnClickListener() {
>                                 public void onClick(View v) {
>                                 pricewc.cancel();}
>
>                 });
>                 pricewc.setCancelable(false);
>                 pricewc.show();
>         return null ;

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to