NDK - Using Static Libraries Don't Find Headers

Jan 4, 2011

There's another two simpler questions at the end of this post, I want to know those too.i'm wrapping a native API to Android by NDK.But when building it don't find the header files.I have the following structure.

<project>/jni
Android.mk

Code:
LOCAL_PATH := $(call my-dir)
include $(call all-subdir-makefiles)
LOCAL_PATH :=/home/marcos/dev/workspace/rmsdk.native.wraper/jni
include $(CLEAR_VARS)
LOCAL_LDLIBS := -llog
LOCAL_MODULE := ndk1
LOCAL_SRC_FILES := native.c DelegateDRMProcessorClient.cpp
LOCAL_STATIC_LIBRARY := adept cryptopenssl dp expat fonts hobbes jpeg mschema png t3 xml zlib
[code]....

NDK - Using static libraries don't find headers


Android :: Best Practice For Static Headers And Footers

Apr 11, 2009

I am trying to display a high score table in my application and wanted to know the Best Practice for displaying static headers or footers. The data for the High Score tableis a REST web service returing up to 100 JSON records. I have looked at some of the previous posts http://groups.google.com/group/android-developers/browse_thread/threa. that talk about addHeaderView() & addFooterView() but they all seem to indicate that the footer or header will scroll off the screen. My 1st question is has someone been able to implement this in a clean way to allow a basic static header or footer. My second question is is their another way I could accomplish my goal of displaying my high score table besides a List View. I will be displaying 6 columns of data which will need to scroll vertically.

View 2 Replies View Related

Android :: How To Add External Static Libraries To Android.mk?

Sep 24, 2009

I have a few pre-compiled static libraries,*.a files.How to add them in Android.mk file?Finally i have to get a .so file.What changes should i make in Android.mk? Please respond.

View 3 Replies View Related

Replace Single Row View In Custom STATIC ListView - STATIC Data

Mar 18, 2013

I have Eclipse Juno and I'm working on an app with that.

The main activity will have a scrollable menu that takes you to all the other activities.

So the general structure/outline right now:[HIGH]Relative Layout ImageView (header logo type thing) ListView (the actual scrollable menu)[/HIGH]Here's the problem though... I can't find any simple list tutorials. I can easily make a single line list work but I need to make a two line list and one that is static, not dynamic and no examples are out there for that. It's like if you want to make a 2 line list, you can only learn how to do it in the most code-heavy ridiculous way possible.

Essentially what I am looking for with the list is this: Item one: Centred, bold, non selectable title (Resources)

- Item two-??: two line list items, click-able to a new activity, title of the section on first line, description on the second line.

- Item ??: Centred, bold, non selectable title (Tools)

- Item ??-??: two line list items, click-able to a new activity, title of the section on first line, description on the second line.

Nothing dynamic that is ever going to change, no super complex wonkey calculations, just to simply have the data set in stone (preferably via XML) and to call it into the list.

I experimented with some of the other list views and no matter what I did, I could get, via editing the resources and NOT using Java, more that one item on a single line but it wouldn't format it properly according to the layout I guess because I haven't got the ID correct or whatever I don't know.

I mean, all the examples I've seen for a 2 line list are extraordinarily over-coded and just bloated. I mean I have a website I am still working on in C#/ASP.net that has far more complex things in it with half the code that I've seen for the examples of the two line lists.

I tried on my own to figure it out (I am decent with C# and vaguely familiar with Java, self taught, and programming for some other systems like Python, again all self-taught), but like ALL coding references, they're organised by the actual code you implement (that you don't know) instead of by what you want it to do (so you have to search the whole code base to find something that you don't know what it's called but know what it does). >:C

View 10 Replies View Related

Android :: Call Non Static Method In Static SQLiteDatabase Class

Mar 30, 2010

i want to display a msg to the user (msg box or Toast) when exception happend in a static SQLite Database class that i use. the problem is that i cant call a non static method in a static class , how can i handle this. this is the class

private static SQLiteDatabase getDatabase(Context aContext) {

and i want to add something like this in the class when exception happen but context generates the problem of reference to non static in static class.

Context context = getApplicationContext();
CharSequence text = "Hello toast!";
int duration = Toast.LENGTH_SHORT;
Toast toast = Toast.makeText(context, text, duration);
toast.show();

View 1 Replies View Related

Android :: Cannot Make Static Reference To Anon-static Method

Feb 7, 2010

I'm having some issues with the old "Cannot make a static reference to a non-static method" error in my Android program. I am creating a sand falling game (similar to the Powder Game) and I created a class called Control to create a Control Bar at the bottom of the screen with a slider for brush size (that works fine) and a button to pop up a Dialog to allow users to pick the selected element. However, when I call DemoActivity.showDialog(2) from my code, it gives the static reference to non-static error (DemoActivity is the main activity of my application). I also tried changing it to just Activity.showDialog(2), but I got exactly the same error!

Here's my code:

CODE:................

I fixed it by adding the following to my Control.java code:

CODE:..........

And then calling control.setActivity(this); from my onResume section of DemoActivity.java!

View 2 Replies View Related

Android :: Non-static Method Cannot Be Referenced From A Static Context

May 26, 2010

I am modifying the source code here: http://thinkandroid.wordpress.com/2009/12/30/getting-response-body-of-httpresponse/

I get this error:

code:.............

This error is line 13 on the second box.

View 5 Replies View Related

Android :: Static Vs Non-static Inner Classes

Mar 9, 2009

I have been finding it convenient to extend Handler in many of my activities to handle messages specific to the activity. The handler sublass is an inner class of the activity and needs to access its state. I am wondering if there is any performance difference between making the handler subclass static and passing in the activity explicitly in its constructor or making the subclass an "instance class" and letting the vm worry about my accessing members of the containing activity.

The static approach:

CODE:.............................

View 4 Replies View Related

Android :: Add Headers To A Listview

Oct 10, 2009

What is the easiest way to add headers to a listview (and my list has multiple adapters (sections) so I need to show multiple headers for my list!

View 10 Replies View Related

Android :: App To Download Only Email Headers

Feb 13, 2010

I'm looking for an app to download only the email headers with (or without, but better with) the possibility to download the whole mail.

The reason is to be able to take a quick look to all af them, avoiding wasting time of downloading when some friend has just the happy idea of sending you a heavy power point, or the pictures from your last party, or just simple spam.

I must say that there's another not less important reason: I don't have a 3G flat rate.

View 4 Replies View Related

Samsung Galaxy S :: Set Up Email For Headers Only

Sep 17, 2010

Is there a way to set up the email client to download only the message headers? I don't want to wait to download all my messages. Plus, I receive a lot of fun mail and I don't want to download it on my SGS. I just want to know what messages I have received and select the ones that I want.

My company mail doesn't support IMAP or exchange

View 2 Replies View Related

Android :: How To Generate A ListView With Headers?

Mar 6, 2010

I want to generate a Listview that has some dividers between some of the entries, like it can be seen in some of the property sections. See the example below. I try to generate a List that consists of some textviews followed by one of the fancy dividers explaining the next part of the list and then again some text views. How can this be done? I thought about creating different views to add to the list? Is this the way to go?

View 4 Replies View Related

Android :: Sending Custom Headers In WebView

Mar 12, 2010

I've found some information about this topic, but I was curious as to whether anyone has had any success loading webpages in a WebView with custom headers. There doesn't seem to be any simple way of doing this. I've seen an implementation that involved downloading the webpage and separately loading the data into the WebView. While this is not difficult, the WebView then demonstrated problems with relative URLs and downloading images.

View 4 Replies View Related

Android :: Excel Like Vertical And Horizontal Headers

Apr 7, 2010

It means, that it has vertical headers (fixed horizontally), which can be scrolled vertically, and horizontal headers (fixed vertically), which can be scrolled horizontally. The contents should be scrollable both vertically and horizontally. To make it clear, I tried to 'draw' here...........

View 2 Replies View Related

Android :: Adding Section Headers For My ListView

Sep 6, 2010

I'm adding section headers for my listView, there are few methods on the web. Since I'm using simpleCursorAdapter to manage my listView, I adopted phil bogle's method. http://thebogles.com/blog/2010/02/section-headers-for-android-listviews/

The error occurred at this part of the code:

CODE:.................

This is the LogCat shows how they compare while I scroll up the list:

CODE:..............

The correct output should be:
Sun, 05 Sep 2010
112
120

But when I scroll up, the setViewValue calls 120 first and compare with preDate(show above), it becomes:
Sun, 05 Sep 2010
112
Sun, 05 Sep 2010
120

So how can I make the section headers fixed after creating the headers? Why setViewBinder been called while scrolling?

View 1 Replies View Related

Android :: Possible To Set Custom HTTP Headers In WebView?

Jan 5, 2010

I have to access a web page from within my application and, in order to have access to it, I need to set some custom HTTP headers. I want to use the WebViewclass in my activity but, as far as I can tell, it's not possible to set custom HTTP headers.

So is there a way of using the existing web browser (or WebView) with custom HTTP headers? My application targets Android 1.6.

View 1 Replies View Related

Android :: Static Method In Java Accept Only Final Or Non Final Variables Within Its Method - But Not Static

Sep 15, 2010

Why should a static method in java accept only final or non final variables within its method, but not static?

For example I have the following method:

CODE:.................

View 6 Replies View Related

Android :: Php Headers For .apk File Not Working When Downloading On Phone

Jul 29, 2010

I am trying to download an Android APK file that is output by a php page. I have the following and it works on firefox but not on the phone. Firefox downloads with an apk extension but has a little firefox icon next to it. The phone downloads the file with a .html extension, why is this?

UPDATE: Full source

function display($tpl = null) {
//SETUP
$appId = JRequest::getInt('id', '0');
$model = &$this->getModel();

$app = $model->getApplication($appId);.................

View 2 Replies View Related

Android :: Scrollable Table Layout & Column Headers

Aug 3, 2010

I am trying to create a basic datasheet in my application using a TableLayout. The first row contains the titles of each column. Every row thereafter is data. I would like the data to be scrollable while keeping the first title row visible (i.e. the first row would not scroll with the rest).I have tried something like the following (unsuccessfully)

View 1 Replies View Related

Android :: Access Http Response Headers In WebView?

Jun 28, 2010

Is there a way to view the http response headers in an Activity once a web page has been loaded in a WebView? Seems like this should be possible, but I can't find any methods that expose the headers.

View 1 Replies View Related

Android :: ListActivity And Headers Giving Odd Side Effect

Dec 28, 2009

I'm getting some odd side effects when I set a header to my ListActivities. The ListActivity actually allows you to scroll up "behind" the header and click...which sends my app into a fit of errors b/c my Lists are connected to a Cursor and selecting behind the header returns a value of -1. Ive noticed this doesnt happen to any of my Lists that dont have headers.

View 3 Replies View Related

Android :: Adding Headers To Listview For Cursor With Grouped Results

Jul 30, 2010

Requirement: Display query results in a list with a header view atop each group. (results grouped from database) Looking at Mark's MergeAdapter. Wondering if I might be able to use a single cursor and have each adapter filter on the group field? That a viable approach?

View 9 Replies View Related

Android :: Send HTTP Basic Authentication Headers In Droid?

Nov 22, 2010

I am not sure how to send HTTP Auth headers.

I have the following HttpClient to get requests, but not sure how I can send requests? code...

View 2 Replies View Related

Android :: Adjust Height Of Group Headers In An ExpandableListView Dynamically?

Oct 7, 2010

I have an ExpandableListView (ELV) with the groups having LinearLayout. I have set the height of the group to some value (38dip in this case, equivalent to two lines of text). If the group heading is long and would take more than 2 lines, it is not shown properly in the ELV item - some part of the view gets scrolled. On the other hand, if I change android:layout_height to "wrap_content" in the LinearLayout, the groups always show all the lines. But the line widths are variable, i.e., short titles show up with only 1 line and long titles show up with 2, 3 or 4 lines. That looks ugly. I would like to implement the height to be something like max("38dip", "wrap_content"). Is there a way to do this?

Even programmatically, I do not seem to be getting the actual height of the group if I set android:layout_height to "wrap_content". Any suggestions there?

View 1 Replies View Related

Android :: K-9 Quickie : "save All Headers Locally"?

Oct 18, 2010

I've got half an idea but have been losing emails and would like to know exactly.

View 3 Replies View Related

Android :: Libraries STILL Not Working

Sep 10, 2010

I was really excited today when I saw the Tools r7 and ADT 0.9.8 were available and the latter had this note;

Fixes problems with handling of library project names that contain characters that are incompatible with the Eclipse path variable. Now properly sets up the link between the main project and the library project.

I create the library (foolib - no spaces, no caps, no punctuation). So far so good. I go to the main project, go to preferences --> Android. In the library box I add the new library. It appears. I press Apply. I press OK.

Nothing happens.

I return to the preferences, the library is no longer there JUST LIKE BEFORE.

View 2 Replies View Related

Android :: OpenGL ES Libraries

Jul 13, 2010

I looked around for info on this in the group but couldn't find any... so far in my OpenGL programming I've just done everything directly, but I was curious if anyone had written any "wrapper" libraries for it besides min3d. Min3d is great (or is getting there) but it's GPL'd, making it unsuitable for a commercial product (if my understanding of the license is correct).

View 5 Replies View Related

Android :: Using Gdbserver And JNI Libraries

Oct 15, 2009

We have been using gdbserver to debug our JNI code as follows. We have been less than successful -- breakpoints do not always get activated, sometimes we get SIGILL, and we seldom ever get a useful stack when the debugging stops on SIGSEGV, sometimes the program dies with SIGTRAP!!!

We have occasionally been able to have debug sessions with s/n, but since pretty much every SEGV has resulted in either a damaged stack, or at least, gdbserver can not find the stack, it's a pain.

Is there something we are missing? Is there some reason to use the 4.2.1 vs 4.3.1 toolchain? (Why are there two toolchains? I assume because of bugs in each that are fixed in the other... which bugs?)

We guessed that the "dalvik" process that we wanted to debug was app_process --- we found this out by looking at /proc/XXX/cmdline on our running activity.

This is what we do typically do(repo sync directory is in /build/m1 for me)

invoke:/build/m1/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin/arm-eabi- gdb

(some of us use -tui, some of us run it under Xemacs, etc.)

We then do:

CODE:..........

We then start our activity, adb shell, discover the PID of the activity, discover the IP of the phone with "netcfg", and:

app_15 1815 49 107468 15744 ffffffff afe0d4a4 S org.credil.thomas_watson.videophoneservice

# gdbserver 0.0.0.0:1234 --attach 1815 Attached; pid = 1815 Listening on port 1234 Remote debugging from host 132.213.238.4

(gdb) target remote 132.213.236.179:1234

This is with a physical device. With an emulator, one has to, of course, run the adb forward stuff. (Too bad that doesn't work with a real device too, as then I would not need to run gdb over the wireless)

Program terminated with signal SIGKILL, Killed. The program no longer exists. (gdb) target remote 132.213.236.179:1234 Remote debugging using 132.213.236.179:1234 Error while mapping shared library sections: /system/bin/linker: No such file or directory. warning: .dynamic section for "/build/m2/out/target/product/generic/ symbols/system/lib/libc.so" is not at the expected address (wrong library or version mismatch?) ... many more GDB will be unable to debug shared library initializers and track explicitly loaded dynamic code. tkill () at bionic/libc/arch-arm/bionic/tkill.S:52

(gdb) break sendframe Breakpoint 1 at 0x80401086: file /build/m1/packages/apps/ VideoPhoneService/libvideophoneservice/src/rooster.cpp, line 96.

(gdb) c Continuing.

Program terminated with signal SIGTRAP, Trace/breakpoint trap. The program no longer exists. (gdb)

(btw, an annoyance about googlegroups is that it seems that it looks at my SMTP from header, rather than From:... This basically means that I can not post from gmane.org via NNTP, which is a shame. Is there a secret NNTP access on googlegroups.com, I wonder?)

View 7 Replies View Related

Android :: FootPrint And Its Various Libraries?

Jun 17, 2009

I need to know the footPrint of Android and its various Libraries

- Hide quoted text -

View 2 Replies View Related

Android : Possible To Use Native C/C++ Libraries?

Apr 1, 2009

Is it possible to use a native C/C++ library? If so, are there any restrictions for those libraries to be used?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved