[android-developers] errors trying to use loaders in android

2013-04-22 Thread majid . bari
So I'm trying to make AOuth work in android for twitter. Here's the code 
I'm having errors with in my activity:

@Overridepublic Loader onCreateLoader(int id, Bundle arg1) {

consumerLoader = new getCommonsHttpOAuthConsumer(); //consumerLoader is 
declared in the activity as "private Loader consumerLoader;"
return consumerLoader;
// After this method you're going in loadInBackground()}


Here's the code for my asyncTaskLoader:

class getCommonsHttpOAuthConsumer extends AsyncTaskLoader{

public getCommonsHttpOAuthConsumer(Context context) {
super(context);
// TODO Auto-generated constructor stub
}

@Override
public OAuthConsumer loadInBackground() {
// TODO Auto-generated method stub

return new CommonsHttpOAuthConsumer(Constants.CONSUMER_KEY, 
Constants.CONSUMER_SECRET);
}
}

This is a 2 part question. 1st question: I get an error when I use *import 
android.support.v4.app.LoaderManager* The error is on *Loader
*. It says "The return type is incompatible with 
LoaderManager.LoaderCallbacks.onCreateLoader(int, Bundle)". But the error 
goes away if I use *import android.app.LoaderManager *instead. My question 
is: Should I try to fix the error with using the support library, so that 
more devices will be compatible with my app? If yes, how can I fix that 
error?

 

2nd question: No matter what import I use, I get an error on *new 
getCommonsHttpOAuthConsumer();* The error says: "Type mismatch: cannot 
convert from getCommonsHttpOAuthConsumer to Loader". What am I doing wrong?



-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Errors building my first android app

2012-09-19 Thread aimit78


Hi,

Can anyone please help me on this issue I have been trying to create a 
first Android App under the JAVA - Eclipse SDK Platform but the "Build SDK" 
dropdown list selection doesn't give me any choices, please see my 
screenshot below. Greatly appreciated it if someone please help me on this 
on. Thanks!


 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Errors while compiling latest Apidemos

2012-06-29 Thread Subodh Nijsure

This morning, I downloaded the latest Android 4.1(API 16) and also updated 
my eclipse plugins. I am trying to compile the ApiDemos and getting errors:


AccessibilityNodeProvider cannot be resolved to a type 
AccessibilityNodeProviderActivity.java 
/com.example.android.apis.ApiDemos/src/com/example/android/apis/accessibility 
line 
88 Java Problem
ActivityOptions cannot be resolved Animation.java 
/com.example.android.apis.ApiDemos/src/com/example/android/apis/app line 98 
Java 
Problem

I followed the README.txt in ApiDemos and 
copied ./sdk/extras/android/support/v4/android-support-v4.jar to 
sdk/samples/android-16/ApiDemos/libs/.

I updated the ApiDemos as additional jar and I am still getting these 
errors or I have looked over something basic/obvious in setting up the 
API16?


-Subodh

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Errors while trying to launch the emulator

2012-03-20 Thread Meryeme
hey every body I am trying to launch the emulator when I finished
building Android 4.0.3 source code. and I am getting this error do you
have any idea?

root@meryeme-laptop:/WORKING_DIRECTORY/out/host/linux-x86# emulator -
avd eml -kernel kernel/arch/arm/boot/zImage
PANIC: Could not open: /root/.android/avd/eml.iniroot.

did anybody of you face the same problem before?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Errors running builder 'Java Builder'

2012-02-17 Thread fei ji
Have you ever installed any plugins? It may caused by some plugin which
isn't very robost I think.
在 2012-2-17 下午11:40,"Jim Morris" 写道:

> Every time I open Eclipse, I get a message about a null pointer
> exception. Everything seems to work okay, but I fear someday it might
> cause me problems. I have seen postings about this, but I have never
> seen a resolution. I am running Eclipse 3.7.1. I have not done
> anything non-standard.
>
>
> ==
>
>
> !ENTRY org.eclipse.core.resources 4 75 2012-02-17 07:18:29.140
> !MESSAGE Errors occurred during the build.
> !SUBENTRY 1 org.eclipse.jdt.core 4 75 2012-02-17 07:18:29.140
> !MESSAGE Errors running builder 'Java Builder' on project 'firms'.
> !STACK 0
> java.lang.NullPointerException
>at java.lang.String.(Unknown Source)
>at
>
> org.eclipse.jdt.internal.compiler.problem.ProblemReporter.conditionalArgumentsIncompatibleTypes(ProblemReporter.java:
> 1335)
>at
>
> org.eclipse.jdt.internal.compiler.ast.ConditionalExpression.resolveType(ConditionalExpression.java:
> 556)
>at
>
> org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
> 1799)
>at
>
> org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
> 1796)
>at
>
> org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
> 1796)
>at
>
> org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
> 1796)
>at
>
> org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
> 1796)
>at
>
> org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
> 1796)
>at
>
> org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
> 1796)
>at
>
> org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
> 1796)
>at
>
> org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
> 1796)
>at
>
> org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
> 1796)
>at
>
> org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
> 1796)
>at
>
> org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
> 1796)
>at
>
> org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
> 1796)
>at
>
> org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
> 1796)
>at
>
> org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
> 1796)
>at
>
> org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
> 1796)
>at
>
> org.eclipse.jdt.internal.compiler.ast.CombinedBinaryExpression.resolveType(CombinedBinaryExpression.java:
> 337)
>at
>
> org.eclipse.jdt.internal.compiler.ast.ReturnStatement.resolve(ReturnStatement.java:
> 225)
>at
>
> org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:
> 463)
>at
>
> org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:
> 252)
>at
>
> org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:
> 422)
>at
>
> org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:
> 1148)
>at
>
> org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:
> 1258)
>at
>
> org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.resolve(CompilationUnitDeclaration.java:
> 539)
>at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:
> 763)
>at
>
> org.eclipse.jdt.internal.compiler.ProcessTaskManager.run(ProcessTaskManager.java:
> 137)
>at java.lang.Thread.run(Unknown Source)
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Errors running builder 'Java Builder'

2012-02-17 Thread Jim Morris
Every time I open Eclipse, I get a message about a null pointer
exception. Everything seems to work okay, but I fear someday it might
cause me problems. I have seen postings about this, but I have never
seen a resolution. I am running Eclipse 3.7.1. I have not done
anything non-standard.


==


!ENTRY org.eclipse.core.resources 4 75 2012-02-17 07:18:29.140
!MESSAGE Errors occurred during the build.
!SUBENTRY 1 org.eclipse.jdt.core 4 75 2012-02-17 07:18:29.140
!MESSAGE Errors running builder 'Java Builder' on project 'firms'.
!STACK 0
java.lang.NullPointerException
at java.lang.String.(Unknown Source)
at
org.eclipse.jdt.internal.compiler.problem.ProblemReporter.conditionalArgumentsIncompatibleTypes(ProblemReporter.java:
1335)
at
org.eclipse.jdt.internal.compiler.ast.ConditionalExpression.resolveType(ConditionalExpression.java:
556)
at
org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
1799)
at
org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
1796)
at
org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
1796)
at
org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
1796)
at
org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
1796)
at
org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
1796)
at
org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
1796)
at
org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
1796)
at
org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
1796)
at
org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
1796)
at
org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
1796)
at
org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
1796)
at
org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
1796)
at
org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
1796)
at
org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
1796)
at
org.eclipse.jdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:
1796)
at
org.eclipse.jdt.internal.compiler.ast.CombinedBinaryExpression.resolveType(CombinedBinaryExpression.java:
337)
at
org.eclipse.jdt.internal.compiler.ast.ReturnStatement.resolve(ReturnStatement.java:
225)
at
org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:
463)
at
org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:
252)
at
org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:
422)
at
org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:
1148)
at
org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:
1258)
at
org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.resolve(CompilationUnitDeclaration.java:
539)
at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:
763)
at
org.eclipse.jdt.internal.compiler.ProcessTaskManager.run(ProcessTaskManager.java:
137)
at java.lang.Thread.run(Unknown Source)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] errors

2012-01-20 Thread vishal patel
i m connecting with facebook API...
i followed the steps given in  
http://developers.facebook.com/docs/mobile/android/build/
this link

when i m running application i found log messages like
05-14 15:09:08.410: WARN/ActivityManager(192): Launch timeout has
expired, giving up wake lock!
05-14 15:09:08.430: WARN/ActivityManager(192): Activity idle timeout

how can i resolve my application.. plz guide me...
thanks in advanced...

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Errors :Consumer closed input channel or an error occurred. events=0x8 & Channel is unrecoverably broken and will be disposed!

2012-01-17 Thread srinivasan shanmugam
Dear All,

I'm using the below android application when i run the below sample
application when i click the data button after typing the data

http://www.ftdichip.com/Drivers/D2XX/D2XXSample/D2XXSample.zip


The above android application usage is provided in the TN_134 FTDI
Android D2XX Driver pdf(you can get this in google by searching this
key word)


when i run the above application i getting the below errors

E/InputDispatcher(2176): channel '2b10d600 com.ftdi.d2xx/
com.ftdi.d2xx.D2XXSampleActivity (server)' ~ Consumer closed input
channel or an error occurred.  events=0x8


E/InputDispatcher(2176): channel '2b10d600 com.ftdi.d2xx/
com.ftdi.d2xx.D2XXSampleActivity (server)' ~ Channel is unrecoverably
broken and will be disposed!


As am new to this android applns development could any body pls help
me in how to fix this problem or could any correct the above problem
in the above code n share the same with me

Kindly do the needful as soon as possible,

Advanced Thanks,
Srinivasan S

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Errors while booting custom android image for tegra platform

2011-05-25 Thread Android Tegra
I am trying to install a custom android image on to tegra 250 board.

For this i have downloaded android sources from nv-tegra.nvidia.com
site and build a custom image.

Now i am trying to flash our custom image using the flash utility
provided by nvidia.

When I just flash system.img and keep the kernel same as provided by
nvidia, i am getting following errors during boot. In this case system
is in a hang state and screen is blank.

E/Zygote ( 1805): setreuid() failed. errno: 30
W/MediaProfiles( 1805): could not find media config xml file
E/BatteryService( 1808): usbOnlinePath not found


Logcat output

D/AndroidRuntime( 1805): >> AndroidRuntime START
<<
D/AndroidRuntime( 1805): CheckJNI is ON
D/dalvikvm( 1805): creating instr width table
D/AndroidRuntime( 1805): --- registering native functions ---
I/SamplingProfilerIntegration( 1805): Profiler is disabled.
I/Zygote  ( 1805): Preloading classes...

E/Zygote  ( 1805): setreuid() failed. errno: 30

D/dalvikvm( 1805): GC_EXPLICIT freed 821 objects / 47496 bytes in 1ms
D/dalvikvm( 1805): GC_EXPLICIT freed 219 objects / 13600 bytes in 1ms
I/bluetooth_ScoSocket.cpp( 1805): Entry name = MY-CAR ScoTypes = 0x7f
I/bluetooth_ScoSocket.cpp( 1805): Entry name = Motorola HF850 ScoTypes
= 0x7
D/dalvikvm( 1805): GC_EXPLICIT freed 253 objects / 14360 bytes in 1ms
D/dalvikvm( 1805): GC_EXPLICIT freed 466 objects / 28880 bytes in 2ms
D/dalvikvm( 1805): GC_EXPLICIT freed 2090 objects / 108352 bytes in
3ms

W/MediaProfiles( 1805): could not find media config xml file

D/dalvikvm( 1805): GC_EXPLICIT freed 264 objects / 15104 bytes in 3ms
D/dalvikvm( 1805): GC_FOR_MALLOC freed 5081 objects / 225952 bytes in
5ms
D/dalvikvm( 1805): GC_FOR_MALLOC freed 11277 objects / 382552 bytes in
7ms
D/dalvikvm( 1805): GC_FOR_MALLOC freed 9789 objects / 461648 bytes in
8ms
D/dalvikvm( 1805): GC_FOR_MALLOC freed 8711 objects / 423216 bytes in
9ms
D/dalvikvm( 1805): GC_FOR_MALLOC freed 7696 objects / 460744 bytes in
9ms
D/dalvikvm( 1805): GC_FOR_MALLOC freed 7196 objects / 460080 bytes in
9ms
D/dalvikvm( 1805): GC_FOR_MALLOC freed 8264 objects / 457520 bytes in
9ms
D/dalvikvm( 1805): GC_FOR_MALLOC freed 6875 objects / 455480 bytes in
9ms
D/dalvikvm( 1805): GC_EXPLICIT freed 1347 objects / 89480 bytes in 9ms
D/dalvikvm( 1805): GC_EXPLICIT freed 598 objects / 29376 bytes in 9ms
D/dalvikvm( 1805): GC_EXPLICIT freed 449 objects / 25120 bytes in 9ms
D/( 1804): 2s elapsed in InitFifo; is daemon started?
D/dalvikvm( 1805): GC_EXPLICIT freed 306 objects / 35040 bytes in 13ms
D/dalvikvm( 1805): GC_EXPLICIT freed 279 objects / 19072 bytes in 13ms
D/dalvikvm( 1805): GC_EXPLICIT freed 341 objects / 18552 bytes in 13ms
D/dalvikvm( 1805): GC_EXPLICIT freed 449 objects / 28312 bytes in 13ms
D/dalvikvm( 1805): GC_EXPLICIT freed 527 objects / 52888 bytes in 15ms
D/dalvikvm( 1805): GC_EXPLICIT freed 623 objects / 34000 bytes in 15ms
D/dalvikvm( 1805): GC_EXPLICIT freed 861 objects / 46888 bytes in 15ms
D/dalvikvm( 1805): GC_EXPLICIT freed 1747 objects / 85496 bytes in
15ms
D/dalvikvm( 1805): GC_EXPLICIT freed 447 objects / 29456 bytes in 16ms
D/dalvikvm( 1805): GC_EXPLICIT freed 315 objects / 20128 bytes in 16ms
I/Zygote  ( 1805): ...preloaded 1265 classes in 1373ms.
E/Zygote  ( 1805): setreuid() failed. errno: 30
D/dalvikvm( 1805): GC_EXPLICIT freed 104 objects / 14208 bytes in 16ms
I/Zygote  ( 1805): Preloading resources...
D/dalvikvm( 1805): GC_EXPLICIT freed 312 objects / 15568 bytes in 16ms
W/Zygote  ( 1805): Preloaded drawable resource #0x10801e8 (res/
drawable-mdpi/jog_tab_bar_left_end_confirm_gray.9.png) that varies
with configuration!!

W/Zygote  ( 1805): Preloaded drawable resource #0x10801ec (res/
drawable-mdpi/jog_tab_bar_left_end_normal.9.png) that varies with
configuration!!
W/Zygote  ( 1805): Preloaded drawable resource #0x10801ed (res/
drawable-mdpi/jog_tab_bar_left_end_pressed.9.png) that varies with
configuration!!
W/Zygote  ( 1805): Preloaded drawable resource #0x10801f1 (res/
drawable-mdpi/jog_tab_bar_right_end_confirm_gray.9.png) that varies
with configuration!
!
W/Zygote  ( 1805): Preloaded drawable resource #0x10801f5 (res/
drawable-mdpi/jog_tab_bar_right_end_normal.9.png) that varies with
configuration!!
W/Zygote  ( 1805): Preloaded drawable resource #0x10801f6 (res/
drawable-mdpi/jog_tab_bar_right_end_pressed.9.png) that varies with
configuration!!
D/dalvikvm( 1805): GC_EXPLICIT freed 392 objects / 23912 bytes in 16ms
W/Zygote  ( 1805): Preloaded drawable resource #0x10801fb (res/
drawable-mdpi/jog_tab_left_confirm_gray.png) that varies with
configuration!!
W/Zygote  ( 1805): Preloaded drawable resource #0x1080200 (res/
drawable-mdpi/jog_tab_left_normal.png) that varies with
configuration!!
W/Zygote  ( 1805): Preloaded drawable resource #0x1080201 (res/
drawable-mdpi/jog_tab_left_pressed.png) that varies with
configuration!!
W/Zygote  ( 1805): Preloaded drawable resource #0

Re: [android-developers] errors while compiling WebKit with SVG ENABLE option.

2011-03-04 Thread TreKing
On Tue, Mar 1, 2011 at 4:18 AM, Illyoung Choi  wrote:

> I downloaded entire platform codes and successfully compiled with default
> option without any modification.
>

Try the platform or porting group for questions regarding building the
source.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] errors while compiling WebKit with SVG ENABLE option.

2011-03-02 Thread Illyoung Choi
Hi All.

I'm trying to compile WebKit which is already included on Froyo source
code.
I downloaded entire platform codes and successfully compiled with
default option without any modification.

Now, I'm trying to enable SVG features and SVG_ANIMATION features on
WebKit.
I modified some build scripts, I referred below site.

http://www.tandroid.org/enable-android-webkit-svg


But, while building libwebcore.a, I got an error like this.

.
Live child 0x11fa4728 (out/target/product/generic/obj/STATIC_LIBRARIES/
libwebcore_intermediates/libwebcore.a) PID 6900
target StaticLib: libwebcore (out/target/product/generic/obj/
STATIC_LIBRARIES/libwebcore_intermediates/libwebcore.a)
Reaping winning child 0x11fa4728 PID 6900
make: execvp: /bin/bash: Argument list too long
Live child 0x11fa4728 (out/target/product/generic/obj/STATIC_LIBRARIES/
libwebcore_intermediates/libwebcore.a) PID 6901
Reaping losing child 0x11fa4728 PID 6901
make: *** [out/target/product/generic/obj/STATIC_LIBRARIES/
libwebcore_intermediates/libwebcore.a] Error 127
Removing child 0x11fa4728 PID 6901 from chain.


I assume that this error is from build-script because they used too
many files as arguments.
But, I can't find out where the makefile is and how can I solve this.

I'll wait for your helps. :)

Thanks.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Errors while building a Standalone tool chain.

2009-09-02 Thread Nagendra Kumar
Hi all,

I want to port a C library in Android with the help of NDK.
To do this i am trying to build the standalone Cross tool chain to get the
pre build libraries which Android is already having.

To build this i am running "build-ndk-sysroot.sh", which is present in the
NDK ( */build/tools*)
I am using the following command to build the sysroot directory, which
contains the libraries and include files ordered in a proper manner.

  *bash ./build/tools/build-ndk-sysroot.sh --build-out=path to
*

I set the ANDROID_NDK_ROOT path and set the environment variables also.
But i am getting the following mentioned errors.

*ERRORS:*

nagen...@nagendra-desktop:~/android-ndk-1.5_r1$ sudo bash
./build/tools/build-ndk-sysroot.sh
--build-out=/home/nagendra/beagledroid_latest
cp: cannot stat
`/home/nagendra/beagledroid_latest/obj/lib/crtbegin_static.o': No such file
or directory
cp: cannot stat
`/home/nagendra/beagledroid_latest/obj/lib/crtbegin_dynamic.o': No such file
or directory
cp: cannot stat
`/home/nagendra/beagledroid_latest/obj/lib/crtend_android.o': No such file
or directory
cp: cannot stat
`/home/nagendra/beagledroid_latest/obj/STATIC_LIBRARIES/libc_intermediates/libc.a':
No such file or directory
cp: cannot stat
`/home/nagendra/beagledroid_latest/obj/STATIC_LIBRARIES/libm_intermediates/libm.a':
No such file or directory
cp: cannot stat
`/home/nagendra/beagledroid_latest/obj/STATIC_LIBRARIES/libstdc++_intermediates/libstdc++.a':
No such file or directory
cp: cannot stat
`/home/nagendra/beagledroid_latest/obj/STATIC_LIBRARIES/libthread_db_intermediates/libthread_db.a':
No such file or directory
cp: cannot stat
`/home/nagendra/beagledroid_latest/symbols/system/lib/libdl.so': No such
file or directory
cp: cannot stat
`/home/nagendra/beagledroid_latest/symbols/system/lib/libc.so': No such file
or directory
cp: cannot stat
`/home/nagendra/beagledroid_latest/symbols/system/lib/libm.so': No such file
or directory
cp: cannot stat
`/home/nagendra/beagledroid_latest/symbols/system/lib/libstdc++.so': No such
file or directory
cp: cannot stat
`/home/nagendra/beagledroid_latest/symbols/system/lib/libthread_db.so': No
such file or directory
Copy: ./build/platforms/android-1.5/common/include/zlib.h
install: cannot stat
`/home/nagendra/beagledroid_latest/../../../../external/zlib/zlib.h': No
such file or directory
chmod: cannot access `./build/platforms/android-1.5/common/include/zlib.h':
No such file or directory
Link: ./build/platforms/android-1.5/arch-arm/usr/include/zlib.h
Copy: ./build/platforms/android-1.5/common/include/zconf.h
install: cannot stat
`/home/nagendra/beagledroid_latest/../../../../external/zlib/zconf.h': No
such file or directory
chmod: cannot access `./build/platforms/android-1.5/common/include/zconf.h':
No such file or directory
Link: ./build/platforms/android-1.5/arch-arm/usr/include/zconf.h
Copy: ./build/platforms/android-1.5/common/include/jni.h
install: cannot stat
`/home/nagendra/beagledroid_latest/../../../../dalvik/libnativehelper/include/nativehelper/jni.h':
No such file or directory
chmod: cannot access `./build/platforms/android-1.5/common/include/jni.h':
No such file or directory
Link: ./build/platforms/android-1.5/arch-arm/usr/include/jni.h
./build/tools/build-ndk-sysroot.sh: line 220: cd:
/home/nagendra/beagledroid_latest/../../../../system/libthread_db/include:
No such file or directory
Copy: ./build/platforms/android-1.5/common/include/math.h
install: cannot stat
`/home/nagendra/beagledroid_latest/../../../../system/libm/include/math.h':
No such file or directory
chmod: cannot access `./build/platforms/android-1.5/common/include/math.h':
No such file or directory
Link: ./build/platforms/android-1.5/arch-arm/usr/include/math.h
Copy: ./build/platforms/android-1.5/arch-arm/usr/include/arm/fenv.h
install: cannot stat
`/home/nagendra/beagledroid_latest/../../../../system/libm/include/arm/fenv.h':
No such file or directory
chmod: cannot access
`./build/platforms/android-1.5/arch-arm/usr/include/arm/fenv.h': No such
file or directory
./build/tools/build-ndk-sysroot.sh: line 220: cd:
/home/nagendra/beagledroid_latest/../../../../system/libstdc++/include: No
such file or directory
./build/tools/build-ndk-sysroot.sh: line 220: cd:
/home/nagendra/beagledroid_latest/../../../../system/bionic/kernel/common:
No such file or directory
./build/tools/build-ndk-sysroot.sh: line 240: cd:
/home/nagendra/beagledroid_latest/../../../../system/bionic/kernel/arch-arm:
No such file or directory
./build/tools/build-ndk-sysroot.sh: line 220: cd:
/home/nagendra/beagledroid_latest/../../../../system/bionic/include: No such
file or directory
./build/tools/build-ndk-sysroot.sh: line 240: cd:
/home/nagendra/beagledroid_latest/../../../../system/bionic/arch-arm/include:
No such file or directory

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegrou

[android-developers] errors please help any body

2009-08-08 Thread android.vinny

HI

When i am calling the web services i got his errors

i added the internet permissions in android manifest.xml file

08-08 15:40:09.127: INFO/aSizzle(198): statusCode>>>500
08-08 15:40:09.158: INFO/aSizzle(198): statusLine>>>HTTP/1.1 500
Internal Server Error

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Errors In Android Run time I need suggestions

2009-06-23 Thread android.vinny

HI everyone go through the attachment i have enclosed as attachment i
have captured the error what i git i need solution for this


Thanks in advance
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Errors while loading classfiles from groovy

2009-05-28 Thread Hjalmare

Ive been trying to get groovy running on dalvikvm. And i have been
trying the route via groovyc (groovyc -> jar -> dx -> dalvikvm).
For testing i put together a jarfile with 3 classfiles, one pure java,
one javaclass that invokes a method on a groovy class, and a groovy
class.

The pure java class works flawlessly but the other two fails with
these messages:

/system/bin/dalvikvm -classpath testdex.jar GroovyFromJ
Dalvik VM unable to find static main(String[]) in 'GroovyFromJ'
java.lang.VerifyError: GroovyFromJ
at dalvik.system.NativeStart.main(Native Method)

And for the groovy file:
/system/bin/dalvikvm -classpath testdex.jar Groov
Dalvik VM unable to locate class 'Groov'
java.lang.NoClassDefFoundError: Groov
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: Groov in loader
dalvik.system.pathclassloa...@400190d8
at dalvik.system.PathClassLoader.findClass
(PathClassLoader.java:243)
at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
... 1 more

What should happen is that the classes invoking groovy should throw a
class not found
exception since i don't have the groovy jar in the classpath yet
(theres no point atm).
Does anyone have a clue about whats going on here? I know the
classfiles generated by
groovyc is slightly different from javas, but they are "real"
classfiles and should atleast load.



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Errors on Windows 7

2009-05-15 Thread info+farm

Dear all,

I installed the brand new Windows 7 RC Ultimate and tried to run
Android tools on it.
Unfortunately, tools(aapt, emulator ...) do not work on the new OS.

aapt.exe give Error;
Problem signature:
  Problem Event Name:   APPCRASH
  Application Name: aapt.exe
  Application Version:  0.0.0.0
  Application Timestamp:49ee9d70
  Fault Module Name:ntdll.dll
  Fault Module Version: 6.1.7100.0
  Fault Module Timestamp:   49eeb132
  Exception Code:   c008
  Exception Offset: 00039fef
  OS Version:   6.1.7100.2.0.0.256.1
  Locale ID:1033
  Additional Information 1: 0a9e
  Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
  Additional Information 3: 0a9e
  Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

emulator.exe gives Error;
Problem signature:
  Problem Event Name:   APPCRASH
  Application Name: emulator.exe
  Application Version:  0.0.0.0
  Application Timestamp:49ee9cd3
  Fault Module Name:msvcrt.dll
  Fault Module Version: 7.0.7100.0
  Fault Module Timestamp:   49eeb128
  Exception Code:   8003
  Exception Offset: 0006d73c
  OS Version:   6.1.7100.2.0.0.256.1
  Locale ID:1033
  Additional Information 1: 0a9e
  Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
  Additional Information 3: 0a9e
  Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

I just sent this post to inform users that Android tools are not
working on Windows 7 RC right now. If there are people, who have the
workaround for this, I will be appreciated to hear it.

Best,
jojo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Errors

2008-12-16 Thread suresh kanna
hi...
 i'm doing one project in android platform..i'm running the project but
emulator is not working.i received some errors in the eclipse...the
error is
Android\Androidsdk1R1\tools\adb.exe start-server' to ensure ADB is running.
[2008-12-16 10:17:55 - ddms]'adb start-server' succeeded
[2008-12-16 10:17:56 - DeviceMonitor]Opening adb connection
[2008-12-16 10:17:56 - DeviceMonitor]Connecting to adb for Device List
Monitoring...
[2008-12-16 10:17:56 - DeviceMonitor]Connection attempts: 38
[2008-12-16 10:17:56 - ddms]Launching
'D:\Android\Androidsdk1R1\tools\adb.exe start-server' to ensure ADB is
running.
[2008-12-16 10:17:56 - ddms]'adb start-server' succeeded
[2008-12-16 10:17:57 - DeviceMonitor]Opening adb connection
[2008-12-16 10:17:57 - DeviceMonitor]Connecting to adb for Device List
Monitoring...
[2008-12-16 10:17:57 - DeviceMonitor]Connection attempts: 39
[2008-12-16 10:17:57 - ddms]Launching
'D:\Android\Androidsdk1R1\tools\adb.exe start-server' to ensure ADB is
running.
[2008-12-16 10:17:57 - ddms]'adb start-server' succeeded
[2008-12-16 10:17:58 - DeviceMonitor]Opening adb connection
[2008-12-16 10:17:58 - DeviceMonitor]Connecting to adb for Device List
Monitoring...

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Errors when POSTing a jpeg

2008-12-15 Thread Anna PS

Hi,

I'm trying to POST a jpeg image as part of a multipart message, and
keep getting errors saying the file is incorrect.

The jpeg data is retrieved from the photo store using its URI. This
bit seems to work fine.

All the other parts of the multipart message also work fine, and I
know that there isn't a problem with the POST script.

Unfortunately the error message isn't very descriptive - it just says
"Please upload a JPEG image only".

I think the problem is something to do with the conversion from bitmap
to jpeg to ByteArrayPartSource. Should I use some method other than
FilePart for uploading jpegs?

My code is below...

Thanks
Anna



method = new PostMethod(url);

try {

Bitmap bitmap;
ByteArrayOutputStream bytes;
byte[] imageData = null;

HttpClient client = new HttpClient();
client.getHttpConnectionManager().getParams()
.setConnectionTimeout(5000);

//Get photo from URI
bitmap = 
android.provider.MediaStore.Images.Media.getBitmap(
getContentResolver(), uri);
bytes = new ByteArrayOutputStream();

//Compress to jpeg
bitmap.compress(Bitmap.CompressFormat.JPEG, 
100, bytes);

imageData = bytes.toByteArray();

   //length is not null, so I know there
is something there
Log.d(LOG_TAG, "len of data is " + 
imageData.length + " bytes");

Part[] parts = { new StringPart("name", name),
new StringPart("email", email),
new FilePart("photo", new 
ByteArrayPartSource("photo",
imageData))
};

method.setRequestEntity(new 
MultipartRequestEntity(parts,
method.getParams()));

client.executeMethod(method);
responseString = 
method.getResponseBodyAsString();
method.releaseConnection();

Log.e("httpPost", "Response status: " + 
responseString);

textMsg.setText(" Response: " + responseString);

} catch (Exception ex) {
Log.v(LOG_TAG, "Exception", ex);
return false;
} finally {
method.releaseConnection();
}

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Errors with android httpclient (Thread forbids HTTP requests)

2008-08-27 Thread androidETuser

I am trying to make HTTP requests thru android APis. But I am getting
some error.

Did any one saw this error before? Can someone help me out here?

Here is the code I am running. This code executed when the sub
activitilty is completed and the callback is called.

protected void onActivityResult(int requestCode, int resultCode,
Intent intent) {
super.onActivityResult(requestCode, resultCode, intent);

Bundle extras = intent.getExtras();

   String symbol = extras.getString("Symbol");

  String lastPrc = getLastPrice(symbol);
}

private String getLastPrice (final String symbol) {
String  response = new String();
String errMsg = new String();
errMsg = "test";

try {

AndroidHttpClient httpClient =
AndroidHttpClient.newInstance("Etrade");

HttpGet authGet = new HttpGet( 
"https://us.etrade.com/e/t/invest/
flash?type=EQ&sym=" + symbol);
HttpResponse resp = httpClient.execute(authGet);
 response = resp.toString();
System.out.println("actual response is " + response);
} catch(Exception e) {
errMsg = e.getMessage();

System.out.println("actual error msg is " + errMsg);
e.printStackTrace();
}
return response;
}

This line is thrwoing errors.
httpClient.execute(authGet);

And the error message is "This thread forbids HTTP requests".

Thanks,
Navin

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---