file change notification permission for native c application?

by cavalzheng » Tue, 04 Aug 2009 23:14:56 GMT


Sponsored Links
 I am migrating a c program from linux to android
when lauch it in the shell everything is ok, but when I lauch it from
UI
with Runtime.getRuntime().exec(...), there is permission issue
for the file change notification, also I know there is mechanism of
permission
on android,  but I can not find related type of permission in
Manifest.permission list.

Any info will be highly appriciated.

Regards,
Caval.




--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Using Intent to view specific App in Android Market

I've seen a few other threads on this subject, but none that addresses
my need which is to not only find the app in the market via the market
uri, but display it as if the user had navigated to it.

The closest anyone has gotten to this answer is to show how to bring
up the Android Market app and browse for the app you want which shows
the single result in a list that the user must still select to get to
the screen I want to display.

Here's my existing code that does exactly that:

private static final String MY_MARKET_APP = "com.some.silly.name";

Intent marketLaunch = new Intent(Intent.ACTION_VIEW);
marketLaunch.setData(Uri.parse("market://search?q=pname:" +
MY_MARKET_APP));
startActivity(marketLaunch);

I don't want to have to force the user to select this single item from
the list - just bypass that and bring up the next screen.

Has anyone been able to successfully do this?

Regards,

- Mike
--~--~---------~--~----~------------~-------~--~----~

2. How to get the text value that has been entered in a dialog box?(AlertDialog)

Hello all,

I'm playing with the AlertDialogSample.java program.

I want to add lines in the code to get the value in the onClick
methods.

Please see the location marked as "==>" that I want to add lines.

Could you please guide me what lines should be there?

Thank you.

        case DIALOG_SINGLE_CHOICE:
            return new AlertDialog.Builder(AlertDialogSamples.this)
                .setIcon(R.drawable.alert_dialog_icon)
                .setTitle(R.string.alert_dialog_single_choice)
                .setSingleChoiceItems(R.array.select_dialog_items2, 0,
new DialogInterface.OnClickListener() {
                    public void onClick(DialogInterface dialog, int
whichButton) {

                        /* User clicked on a radio button do some
stuff */
                    }
                })
                .setPositiveButton(R.string.alert_dialog_ok, new
DialogInterface.OnClickListener() {
                    public void onClick(DialogInterface dialog, int
whichButton) {
                        /* User clicked Yes so do some stuff */

=====>
=====>
                    }
                })
                .setNegativeButton(R.string.alert_dialog_cancel, new
DialogInterface.OnClickListener() {
                    public void onClick(DialogInterface dialog, int
whichButton) {

                        /* User clicked No so do some stuff */
                    }
                })
               .create();

        case DIALOG_MULTIPLE_CHOICE:
          ................

--~--~---------~--~----~------------~-------~--~----~

3. Device Chooser shows warning

4. Using system.out on the andriod

5. Problem of vertical alignment in a RelativeLayout

6. Calibration with the environment may improve the readings ?!

7. Where to execute test_pvauthorengine