cannot find htonl

by taosinker » Thu, 13 Aug 2009 17:28:08 GMT


Sponsored Links
 Hi all:

When I build my native lib, an error find.
" undefined reference to `htonl'"


Do you have any advice?

Thanks

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



Other Threads

1. How 2 install app on MY phone

Does anyone know how to install an app on your personal phone?  I saw
a post that i thought would do it, but that did'nt work.  I have a app
that I would like to install on MY phone, to use it, test it and debug
it, prior to public offering(ANDROID MARKET).
Can be just a java program, or does it have to be an android app?  Is
there any documentation available on how to achieve this?  My job does
not allow me alot of time to develop apps, so if there is anyone who
could help, please email me, rcobb3...@gmail.com.
Additionally, is there any documentation on ECLIPSE.  Tried following
install instructions, but having problems, as well as ANT.
thank you very much for all your help,
rcobb3...@gmail.com
--~--~---------~--~----~------------~-------~--~----~

2. Method to detect a widget is visible - or otherwise in the foreground or background?

It would appear on a G1 (with the latest software update) that onUpdate
() runs even when the widget is not visible. Is there a way of sensing
that the widget is or is not visible or is otherwise in foreground?
That is, running the code below shows a logcat message at whatever
interval the Widget is scheduled to update, whether it's in foreground
or not, whether even the screen is dim or otherwise in deep sleep.

It would seem onUpdate should only be scheduled to run when the Widget
is in the foreground or visible. Is this a defect in the G1, or is
there some other API call to detect if the Widget is visible?


public class HomeScreenWidget extends AppWidgetProvider {

        public static final String TAG = "HomeScreenWidget";


       @Override
       public void onUpdate(Context context, AppWidgetManager
appWidgetManager, int[] appWidgetIds) {

                Log.i(TAG, "onUpdate - runs every 6 seconds on G1 - per the
updatePeriodMillis, even when not visible");
       }

}


<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/
android"
            android:minWidth="146dip"
            android:minHeight="146dip"
            android:updatePeriodMillis="6000"
            android:initialLayout="@layout/a_widget_home_screen"
         />


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

3. Notification and NotificationManager

4. persistent saveCacheFile in webview?

5. notifydatasetchanged in a ListView and handle Event click

6. Capture key pressed

7. left handed user