Android :: Build Library Without Optimization In Order To Properly Debug It

Mar 12, 2009

I'm trying to debug native library (in particular, libril.so). Everythig is going fine, breakpoint is being hit, I can go thru the lines of RIL_onRequestComplete() function. But when I tried to print out particular struct I got,

(gdb) print pRI $2 = <value optimized out> (gdb) print pRI->pCI $3 = (android::._115 *) 0x613 (gdb) print pRI->pCI->requestNumber Cannot access memory at address 0x613

I suspect it could be due to optimization done by compiler. But when I tried to add,

LOCAL_CFLAGS := -g3 -O0

into makefile of the lib, I've got another problem when I cannot correctly set breakpoint on desired function. Instead of correct one,

(gdb) break RIL_onRequestComplete Breakpoint 1 at 0xae402e4e: file hardware/ril/libril/ril.cpp, line 1800.

I got,

(gdb) break RIL_onRequestComplete Breakpoint 1 at 0xffffab44: file bionic/libm/src/s_tanf.c, line 42.

Does anybody know what could be a problem, and what is the right way to handle this?

Android :: Build library without optimization in order to properly debug it


Android :: Debug Build An APK And Launch It Directly With Eclipse?

Apr 2, 2010

Does anyone know how to DEBUG build an APK and launch it directly with Eclipse?

in my case, no matter whether i use Run> or Debug> menu command in Eclipse, my apk always logs Config.DEBUG as "false", although obviously the apk is signed with the key in factory debug.store.

View 1 Replies View Related

Android :: Eclipse Error On Build.xml Target Debug / Release Does Not Exist

Oct 16, 2010

This is more of an Eclipse error than an Android or Ant error. My Eclipse project won't build because when it sees the build.xml created from the Android command, it starts looking for the debug and release commands. Well, since they are dynamically generated from the <setup> task, they don't exist. So now Eclipse (Build id: 20100218-1602) locking the project from build/run based on these errors. kay.. so here is the weird part: It worked this morning. In fact it has been working for weeks with the build.xml file sitting there. All I did was edit the build.xml file in Eclipse (changed some constants). Ant thinks everything is peachy.

View 3 Replies View Related

Android :: Access Build Type [release / Debug] In Java / Xml Code At Run Time?

Jul 28, 2010

I want to access the build type [release/debug] in java code and xml file to enable or disable the particular feature at the run time.

Please let me know if we have any environment variable defined for it which can be accessed in java code and in xml file also.

View 3 Replies View Related

Android : Build Shared Library (.so File) For Chm Reader In Droid?

Apr 1, 2010

In my application, I want to use chm library.

Can anyone tell me How to build shared library (.so file) for chm reader in Android?

And which toolchain is used. what is the steps for building it?

View 1 Replies View Related

Android :: Store Values In SharedPreferences In Library Code / Have It To Projects That Include Library?

Nov 11, 2010

I have an Android library project that makes calls to PreferencesManager.getDefaultSharedPreferences.

I have 2 version of my app, paid/free, and they are not able to access the preferences stored by the library code.

Can someone tell me the right way to store values in SharedPreferences in library code and have the values available to projects that include the library?

View 2 Replies View Related

Android :: Self-contained Test Library Project Cannot Find Library Classes

Aug 17, 2010

According to this SDK guide, unit-testing a Library project can be achieved by creating a standard application project, reference the Library project and then instrument the application for unit testing. However, when I do this and launch the test application I get the message.No tests found with test runner 'JUnit 3".I'm using Eclipse and the Android ADT plugin, all latest versions.the projects compile just fine. The test project also installs fine to the emulator. But in the console I can see that it looks for <library>.apk, which of course doesn't exist since I'm compiling this as a library into the test project.

View 1 Replies View Related

Android :: Load Native Library Which Depends On Third Shared Library

Aug 26, 2009

I created a jni library which depends the third shared library, I must copy the third shared library to /system/lib, otherwise, Java application can't load jni library. But you know, on G1 with official OS image, /system/lib is readonly. I tried to call System.setProperty to set java.library.path to the location stored the thired shared library before load jni library, but the issue still exists.

View 6 Replies View Related

Android :: PNG Optimization On Packaging Process

Oct 28, 2009

I've noticed that the PNGs of my application with some gradients effects looked terribly bad at the device (a Samsung Galaxy) and at the emulator, and I've found the following note at the documentation (http://developer.android.com/guide/topics/graphics/2d- graphics.html):

Image resources placed in res/drawable/ may be automatically optimized with lossless image compression by the aapt tool. For example, a true-color PNG that does not require more than 256 colors may be converted to an 8-bit PNG with a color palette. This will result in an image of equal quality but which requires less memory. So be aware that the image binaries placed in this directory can change during the build. If you plan on reading an image as a bit stream in order to convert it to a bitmap, put your images in the res/raw/ folder instead, where they will not be optimized."

I've tried the res/raw suggestion, but it didn't worked.

I've tried to use the image as JPEG as a workaround, but I couldn't use 9-patch.

I've uploaded a comparison between the original png and the "optimized" png that is shown on the emulator or devices: [url]

One workaround would be put the images at /assets/ and manually load and set the image on the ImageViews, but it requires a lot of code changes.

View 11 Replies View Related

Android : Screen Optimization In Droid?

Jun 30, 2010

I want to do screen optimization. That means once I develop the UI in android it should fit exactly the same in all android enabled phones. So how do i do it?

View 1 Replies View Related

General :: Android Kernel Optimization

May 8, 2013

What sections of kernel code are changed for optimization of performance.

Like we can change
1) the minimum free memory that android need to keep free.
2) Rate of clearing cache
3)Advanced LMK- where we can kill more than one process at at time when memory scarcity occurs.
4) Reducing logging.
5) In framework we can change the oom_adj value of important processes.
6) Implement Zram for kernel.
7) change the minimum and maximum no of process for AMS.

I want to know all the changes that can be made into kernel or framework code to optimize performance. I also want to know how can we implement swapcache for android kernel. What changes do i need to make in the code.

View 2 Replies View Related

Android :: Optimization Accessing Fields Vs Methods

Nov 1, 2010

I know rule #1 of optimization is: don't do it! But I figured this was an easy question, and if I start using the faster method now I can save a lot of cpu time when I'm finished.Now, the answer to my question may be "there's no difference" and that's fine with me. I just want to know.

View 4 Replies View Related

Android :: Open Home Memory Optimization

Nov 11, 2009

Any idea? It doesn't seem to close apps like TaskKiller or TaskPanel. So what is it doing?

View 4 Replies View Related

Android :: Long ListView Optimization / Usability

Nov 17, 2010

I have a long list to display in a listview. Let's say 200 items. This is a long list, but i can't reduce it. Now my list is slow and is not convenient for the user.I need something like a paging system: at the beginning I load 25 items. When the user reach the end I show a button, or something like it, to load other 25 items. An Iphone style solution.Is there a better way? Or what is the best solution?

View 1 Replies View Related

Android :: Want Sql Optimization Techniques For Databases Has Nearly 80,000 Records

Jul 14, 2009

I want to know optimization techniques for databases that has nearly 80,000 records,
list of possibilities for optimizing

i am using for my mobile project in android platform
i use sqlite,i takes lot of time to retreive the data.

View 9 Replies View Related

Android :: Differences Between Jar Library And Library Project

Jul 15, 2010

As I understand, the three ways of distributing my application are via Jar, Android Library and Android Library Project.Jar - cannot contain resources or XML layouts (so this is out for me)Android Library - I don't really know how this works but the Google API uses it..Android Library Project - includes resources but allows the client free rein on the code as it is distributed as source.If I am to create a closed source application that requires drawables and XML files that I want to distribute to other Android programmers, what should I use? And can someone direct me to a tutorial on creating an Android Library?

View 4 Replies View Related

Android :: Optimization Proposals For ListView With Data From Multiple Tables

Aug 18, 2010

I just encountered the following situation. I have an Android app with a scenario which I guess may happen in multiple apps. It's about tagging/labeling/categorizing, call it as you want.After CommonsWare's feedback here a bit of a clarification. I'm weird about doing the second query to the DB inside the CursorAdapter, basically this would result in one query per row and I fear this will heavily impact my performance (I've still to test it on a real device with a substantial amount of data to see how much this impacts).My question therefore is on whether there are some strategies on how to avoid this given my data model or whether I have to basically "live" with that :)

View 2 Replies View Related

Android :: Build Error Build/core/java.mk:20 On 2.2

Jun 24, 2010

I downloaded the Android 2.2 source code and try to build it. When I executed the make command, I got an error here like this build/core/java.mk:20: *** frameworks/ex/common: Invalid LOCAL_SDK_VERSION '8' Choices are: current 4 5 6 7. Stop. Then I changed the frameworks/ex/common/Android.mk to LOCAL_SDK_VERSION = 8 from LOCAL_SDK_VERSION = 7. Next place, build/core/java.mk:20: *** external/jsr305: Invalid LOCAL_SDK_VERSION '8' Choices are: current 4 5 6 7. Stop. I changed the external/jsr305/Android.mk to LOCAL_SDK_VERSION = 8 from LOCAL_SDK_VERSION = 7

Last one, build/core/java.mk:20: *** external/guava: Invalid LOCAL_SDK_VERSION '8' Choices are: current 4 5 6 7. Stop. I changed the external/guava/Android.mk to LOCAL_SDK_VERSION = 8 from LOCAL_SDK_VERSION = 7
By these changes the code started the compilation.

1. Why the error occured?
2. Changes which I did is correct or not?

View 3 Replies View Related

Jelly Bean :: Turn Off WiFi Optimization S4 I9500 4.3

Dec 6, 2013

Well I have S4 I9500 and whenever I tried to connect to my work network after updating to a clean android 4.3*OTA, I receive a notification stating that: This network has been disconnected.You need to sign-in again. This also happened to all 4.3 users in my workplace. 2 colleagues using Note 3 and another colleague using S4 19500. All of us can log onto various networks outside of our workplace like home and coffee shops. After doing some research I found out that I have to turn off wifi optimization but that option is not available in S4.

View 2 Replies View Related

Samsung Galaxy S :: Phone Running Really Slow / Could It Be Optimization Thing - Something?

Jul 4, 2010

I just got my phone about 4 days ago, and when opening apps, unlocking, opening contact lists etc etc, it just lags heaps. Does anybody else have the same issue? Could it just be an optimization thing or something?

View 35 Replies View Related

Android :: Any Tool To Find Memory Leak / Code Optimization In Android?

Sep 12, 2010

I would like to know is there any tool in android to find memory leak and code optimization.

View 8 Replies View Related

General :: Build Kernel MT6577 - Can't Boot After Build

Feb 21, 2013

I have a phone with a MT6577. The vendor (Wiko) published the kernel source code. So, i'm trying to build it. I can get the zImage. I converted it to boot.img but i can't boot with it on my phone.build a good zImage? (if you want to try) : URL...

cp mediatek-configs .config
TARGET_PRODUCT=s9081 MTK_ROOT_CUSTOM=../mediatek/custom make
# sudo mtk-tools/repack-MT65xx.pl -boot zImage boot.img-ramdisk boot.img
MTK-Tools by Bruno MartinsMT65xx repack script (last update: 27-01-2013)
Repacking boot image...
Ramdisk size: 2046 blocs
Repacked boot image into 'boot.img'.

Here are the Warnings I got when compiling

mediatek/platform/mt6577/kernel/drivers/video/tvc_drv.c:61:5: warning: "FIXED_WVGA_PARAMS" is not defined
net/ipv4/tcp.c: In function 'tcp_nuke_addr':
include/net/ipv6.h:338: warning: 'in6' may be used uninitialized in this function
net/ipv4/tcp.c:3367: note: 'in6' was declared here
In file included from net/ipv4/netfilter/ipt_LOG.c:27:
include/net/netfilter/xt_log.h: In function 'sb_close':
[code]....

View 9 Replies View Related

Android :: AMF Client Library / RTMP Client Library

Apr 26, 2010

Android AMF client library Aftek has extensive experience in developing enterprise Flex applications. We have used BlazeDS extensively and we believe that it would nice to provide all the benefits provided by AMF for Android applications as well. We have developed an Android AMF client library which would enable Android application developers use the same extensively. The Android AMF client library supports remoting and secured remoting. This will allow all android applications to use the existing backend like .NET, Java, or PHP. The implementation is asynchronous in nature providing success and failure callbacks. This allows application to perform other tasks without blocking the application. We are currently performing some performance benchmarking and plan to release our library very soon. We would also be incorporating the messaging feature as well.

Android RTMP client library:Aftek has extensive experience in developing voip and audio/video and media applications. Media applications has a huge market and there would be quite a few people eager to develop the medial applications on Android. We believe that it would nice to provide all the benefits provided by RTMP for Android applications as well. We are developing an Android RTMP client library which would enable Android application developers use the same extensively. Our Android RTMP client library would support some add-ons that would help developers to deliver robust media solutions.

View 3 Replies View Related

Android :: Best Way To Debug ANR

Aug 11, 2010

What is the best way to debug ANR. ideally, it would be nice to know what call / thread / file and line number it is stalled at when the ANR occurs, but every time I look at /anr/traces.txt, I can't seem to find anything that points to something I can start tracking down.

View 5 Replies View Related

Android :: How Can I Debug Without Using Eclipse?

Nov 8, 2009

I have mostly been avoiding debugging when I can because of these two problems, so hopefully someone here has suggestions to avoid them:

1. It seems that I have to build the SDK (`make sdk`) and copy it off to a directory for Eclipse to use almost every time I want to debug. I haven't followed through the "sdk" directive, so I'm not clear on why this is necessary instead of just having Eclipse read from the source in my directory. Isn't there some way for it to do this? FYI: I have a (modified) full checkout of Donut, not just the SDK.

2. How can I debug without using Eclipse? I would really like to be able to use something like gdb/jdb.

View 2 Replies View Related

Android :: App Is Crashing / Debug It?

Aug 6, 2009

My app is crashing, How do I debug it? I'm using a HTC Magic and eclips. I looked in the documentation, but it doesn't say how to go about doing it.

View 3 Replies View Related

Android :: Debug Application Using Gdb?

May 11, 2009

How to debug application using gdb .

View 2 Replies View Related

Android :: How To Debug An App With GDBSERVER

Jan 13, 2010

I'm trying to debug a native shared library that my App uses through JNI. I can attach to a running app just fine with "gdbserver --attach pid" but i need to actually launch my app when i launch the gdbserver command.

There's a million blog hits on this topic but none of them seem to be clear as to how you launch your app. They all say to just type "gdbserver 10.0.2.2:1234 ./MyProgram" but what exactly is "MyProgram". Is that MyProgram.apk? Is it MyProgram.so? Is it some other file that gets created when the app is installed? If so, what's its path?

View 1 Replies View Related

Android :: Can't Debug Applications?

Mar 13, 2009

I've tried to debug the android applications on emulator and than on the device as well but all the time I get the message "Wait for debugger - waiting for the debugger to attach to the process". I really don't know how to set the environment and the application in order to run the debug.

View 2 Replies View Related

Android :: Force Close - Debug

Jun 9, 2010

Is there a writeini / readini functions for andriod/ecplise developent? Or what is the best way to 'remember' a setting, and then at a later time restore it?

View 5 Replies View Related







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