open socket failed: Permission denied when application to run a native C function.

by Terence » Thu, 14 May 2009 01:25:03 GMT


Sponsored Links
 Hi

I port a tool in native C and builed a executable file or a library,
and the executable can work successfully in console (Alt + F1).

Then I creat a SimpleJNI to run the executable or library,
when I click the SimpleJNI icon, it will occure a error message:
:socket err=Permission denied

Is the user not a root such that can not open socket in native C
(Permission denied),
Is there any way to solve this problem ?

Thanks

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



Other Threads

1. InsetDrawable inside LayerDrawable

hi,

i'm trying to define in xml layer drawable.

when using two <item>s it works well, however when one <item> is
embedded in <inset> (InsetDrawable) it doesn't work: this drawable is
not shown at all.

i tried two approaches: with embedded <item> and with
'android:drawable' attribute inside <inset>. and yes, i have
'android:visible' set to 'true'

what am i missing?

thanks,
pskink
--~--~---------~--~----~------------~-------~--~----~

2. Cached Background Bitmaps From Widgets?

So I was just reading a great overview of some of the IO happenings
written by Mark Murphy and posted over at http://androidguys.com/?p=5342
and was very intrigued by something... here is the relevant text

"Next, Romain moved into images, particularly backgrounds for widgets.
Backgrounds will always be fitted to the widget, and so Android may
have to scale your bitmap to fit the widget however, scaling at
runtime is expensive. It is better, where possible to pre-scale the
image and use the scaled one in your layouts, rather than having
Android scale it on the fly. You can do this in Java code, via
Bitmap#createScaledBitmap(), and setting the widget background from
the cached scaled value."

end size of your widget by reading values cached bitmap object, but I
have no idea where to get this object.

When I started working with widgets I spent a lot of time trying to
figure out the dimensions of the widget but figured it was a lost
cause because my understanding was that RemoteView gets inflated after
you ever get a chance to work with the specific dimensions... it seems
this is still the case but a background bitmap is still cached
somewhere?  Where can I get a hold of that bitmap object?

I tried writing a proof of concept sample for myself, basically th
widget layout was a frame layout with a imageView set to fill parent
for both width and height... I created a bitmap of a small size
(40x40) and set the widgets image view to this bitmap via
removoteView.setImageViewBitmap(), i then went back to update the
widget 1 minute later and my bitmap object had not been scaled at
all...

Can anyone help me out with this?  Romain maybe?

I have a few ideas that require this ability so any help is appreciated
--~--~---------~--~----~------------~-------~--~----~

3. Sqlite Paging Results

4. In-call audio / media access

5. unable to complete installation of ADT plugin with eclipse

6. How to know whether a table already exist in database?

7. What is that? "Multiple assets with package name"