Android :: Building OpenSSL On NDK
Jun 1, 2010
I want to use DTLS (on OpenSSL) using JNI on Android 2.1/2.2. Can someone help me get started (tutorials, howto, pointers etc) with building OpenSSL for Android (2.1/2.2) using the Android NDK?
View 1 Replies
Mar 30, 2010
I've got a problem with my application when I make a number of requests using the HttpsUrlConnection class.
My program makes the first request using the HttpsUrlConnection class to retrieve a file. It then makes a second request to the same server to retrieve a different file. What happens however is that periodically I'm getting a -1 HTTP response code on the connection.
When the failure occurs between the two requests I see the following line of trace in logcat:
D/OpenSSLSessionImpl( 699): Freeing OpenSSL session
This seems to happen fairly consistently. If I retry the second request after it has failed it generally works and I get the requested file from the server.
Note that if I don't see the OpenSSL session being freed the second request works fine the first time.
Some other information:
1) I'm not calling disconnect on the connection
2) I'm don't always read the entire file from the server after the first request
3) I always close the InputStream in the event that I get an InputStream on the first connection
How to prevent the OpenSSL session from being freed.
View 2 Replies
View Related
Nov 4, 2009
i need my app to support 1.5 and above. i noticed that if I create my build.xml file using --
c: oolsandroid2.0r3 oolsandroid update project --name MyProject -- path C:MyProject --target 2
it complains about my resource directory names "res/drawable-hdpi, res/ drawable-ldpi, etc... res/layout-large, etc..." saying "invalid resource directory name".
If I use 1.6r1 tool set c: oolsandroid1.6r1 oolsandroid update project --name MyProject -- path C:MyProject --target 2
Everything works fine.
If I use target 3 (1.6 and above) c: oolsandroid2.0r3 oolsandroid update project --name MyProject -- path C:MyProject --target 3
Everything works fine. So, do I basically *have* to use 1.6r1 to build for 1.5? And does that mean that those special directory names will only work on 1.6 and above?
View 6 Replies
View Related
Dec 1, 2009
I've G1 dev phone. Earlier I upgraded it to 1.5 using HTC website. Now I want to customize (make some changes to ) source code and keep the changes running on G1 phone. I wanna go with cupcake release. Could any body please give me some pointers. If I download cupcake source code from android website and do 'make' for which target it will generate the images ?[Emulator or G1 phone etc.,]
View 3 Replies
View Related
Nov 5, 2009
I was just wondering where there is any information on creating custom user interface libraries for Android. I would like to create a library and include it in an application by specifying something like <uses- library android:name="com.foo.bar" /> in the manifest (just like maps) and have an Activity that can be inherited from like the MapActivity. How can one create and build a library like this?
View 7 Replies
View Related
May 19, 2010
So, I'm new to developing apps (altogether) and I thought that it would be fun to start out on the Android. I did the test with "HelloAndroid" app, but I have no clue on how to run the app on my phone via Eclipse. I remember reading about it a long time ago (sometime in February) but I have no idea where to find it.
View 2 Replies
View Related
Aug 31, 2009
When I download the source and build it according to http://source.android.com/download, then try to build the eclipse dev evironment as described on http://source.android.com/using-eclipse, I get 100s of Java Errors when trying to build the project.
Linux is 2.6.28-15-generic #49-Ubuntu Eclipse is eclipse-java-galileo-linux-gtk.tar.gz
18# java -version java version "1.5.0_18" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_18-b02) Java HotSpot(TM) Client VM (build 1.5.0_18-b02, mixed mode, sharing) 19#
View 5 Replies
View Related
Sep 16, 2010
I am trying to build android example app by using phonegap. Here are the the system details.
Operating System : Windows XP
Android Sdk : 1.5 ( Previously i had 2.2 but deleted suspecting problem was with that)
Ruby : 1.9.1-p430
Ant: 1.8.1
Java JDK 5
PhoneGap 0.9.1
System Enviroment Variables
ANDROID_HOME : D:workandroid-sdk_r3-windowsandroid-sdk-windows
ANT_HOME : D:workANTapache-ant-1.8.1
JAVA_HOME : C:SunSDKjdk
CLASSPATH : C:SunSDKjdklib
Path : D:workandroid-sdk_r3-windowsandroid-sdk-windows;C:Ruby191in;D:workANTapache-ant-1.8.1in;D:workandroid-sdk_r3-windowsandroid-sdk-windows ools;
I ran ruby script and get output as below
$ ruby ./droidgap "D:/work/android-sdk_r3-windows/android-sdk-windows" pgtest c
om.example.android.pgtest example/ "D:/work/droid_apps/output1"
Building the JAR...
BUILD FAILED
D:workandroid-sdk_r3-windowsandroid-sdk-windows oolsantant_rules_r3.xml:28
3: null returned: 1
Total time: 1 second
Creating Android project for target level 1
Adding www folder to project...
Generating manifest...
Copying over libraries and assets and creating phonegap.js...
c:/Ruby191/lib/ruby/1.9.1/fileutils.rb:1265:in initialize': No such file or dir
ectory - D:/work/phonegap/phonegap-android/framework/phonegap.jar (Errno::ENOENT)
CODE:......
I even changed ant to ant.bat at one place, android to android.bat at two places in ruby script. I also set target_id = 1 which is for 1.5 sdk.
View 3 Replies
View Related
Apr 23, 2010
When using an Android-generated ant build file, the file references your SDK installation via an sdk.dir property inside the local.properties files which is generated by "android update project -p .".
The comments in build.xml suggest that local.properties should NOT be checked into version control.
BUT, when you run your build from Hudson, it does a fresh checkout of your code from version control, hence local.properties does not exist and subsequently the build fails without sdk.dir being set. So its kind of chicken and egg problem. As a workaround I have checked local.properties into version control for now (nobody else will use it) but I was curious as to how other developers had tackled this problem ?
View 2 Replies
View Related
Feb 4, 2009
Solved this by following the instructions at http://www.mail-archive.com/android-porting@googlegroups.com/msg01340... Also realised - that looks like a more appropriate mailinglist too :)
View 2 Replies
View Related
Oct 17, 2010
I'm tinkering around with trying to build a speedometer using only the accelerometer for use when I go snowboarding. I can read values from the accelerometer but I'm not sure how I would derive the velocity. I was thinking of taking the square root of (X^2 + Y^2 + Z^2) where X, Y, and Z are the values reported by the accelerometer in each axis but that only would only give me the amplitude of acceleration at any given instant. I could multiple that by the sampling frequency to get my instantaneous velocity but this approach fails when I'm moving at a constant speed.
View 2 Replies
View Related
Feb 26, 2010
I want to know if we can create builds using ant's build.xml and when i'm trying to do this an error is displayed SDK location not mentioned and besides that I'm unable to find local.properties file to mention the SDK Location. My aim is that I want to use my exiting code and make a build for new Android SDK's with changes in the resources and and some constant values is this task Possible with making a build using Ant and if by some other way. I have no idea about Ant and its functioning so it would very appreciable if minute details are also provided.
View 2 Replies
View Related
Apr 21, 2010
I just installed NetBeans and the Android SDK following the instructions here. I am running Ubuntu 9.10 (Karmic). NetBeans is 6.7.1. The Android SDK is version 7.W.When I go into that directory, I see that the file does exist and it has proper permissions to be executable by anyone, yet even bash can't find it!
View 3 Replies
View Related
Jul 1, 2010
Suggestions for building a treeview control in Android
View 1 Replies
View Related
Aug 6, 2010
I want to start making cellphone apps with Android as first choice but not the only one. I have 10 years of experience with Java, C#, C++ in commercial applications and I know that many things and practices for this applications are not valid for cellphones. Where do I start reading? How do I adapt my way of thinking to this new environment as quickly as posible? I plan to make some money with it sometime in the future as an extra income or a career change maybe, who know.
View 6 Replies
View Related
Jul 15, 2010
I want to build Alarm Clock application on android .Is there any tutorial available on net??
View 1 Replies
View Related
Sep 10, 2010
I seek instructions for buiulding Android on the HTC Nexus. I have tried looking atthe OpenMoko ones, but could not find any useful guides. I have the Android SDK and Java JDK and this is it. All the guides on the Android site refer to installing Eclipse, which is for build Java apps so not a lot of use. Has anyone got some links? Please note that this is a question about building the kernel and the distribution around it. It is not about building applications for Android).
View 1 Replies
View Related
Mar 5, 2010
I want to modify the Skia graphics library in Android slightly.
Is it possible to only rebuild the modified library without downloading and building the whole platform? The platform is massive and this is too much a bother..
Downloading and building the small number of projects Skia depends on seems ok to me, but the build script requires everything!
View 1 Replies
View Related
May 15, 2010
I'm trying to build dschaefer android-box2d, and did follow the recipe.
I do get this error when trying to build the TestBox2d with eclipse:
Make all
CODE:........................
The only thing I did change was in the TestBox2dMakefile where i did change the path to the NDK.
View 1 Replies
View Related
Dec 23, 2009
I'm going to start building some apps for android in the new year and i was wondering if people would like to suggest any apps they would like to see developed for their HEROS.Any suggestions welcome - the more unique the better.
View 34 Replies
View Related
Mar 16, 2010
With my current code base I'd like to build two or more different versions of my Android app (free, premium,). For the iPhone (XCode) I can definte different targets. Is there something similar implemented in Eclipse?
View 1 Replies
View Related
Feb 23, 2013
I am trying to make an app base on HTML and java actually I have this mobile site and contents are mostly text and 2 java picture galleries, and I need to run it as a native app. Is it possible to make mobnile website in other tools and somehow import them manually to Eclipse to get the app built? Because when I use new-->android application, the projects have only XML files and I am not familiar with xml.
View 9 Replies
View Related
Nov 1, 2011
I am doing a project where we have to use the Android Terminal Emulator. I downloaded the the Jackpal Android Terminal Emulator from github and using the instructions in the document to build the terminal emulator.
[code].....
I am having trouble installing the package in the first step itself, i.e. building the ndk shared libraries.
According to the instructions provided:
Build the shared library:
cd <the-android-terminal-emulator-directory>
<path-to-the-android-ndk>/ndk-build
Accordingly, I typed the following in my cmd
C:>cd androidterm
C:androidterm>android-ndk-r6b/ndk-build
I got the following error message:
'android-ndk-r6b' is not recognized as an internal or external command, operable program or batch file.
I am still learning Android and have never worked with the command line before. Is it a problem with the way I have typed the command?
View 8 Replies
View Related
Sep 23, 2010
When i try to clean and rebuild a project, eclipse hangs on the "building workspace" progress bar. the last thing i did was paste an image into a drawable folder - that caused a lockup and i forced eclipse close. now it's not rebuilding the project.
View 2 Replies
View Related
Oct 23, 2009
I created a sample project using the below command:
android create project --target 1 --name HelloAndroid --path ./ HelloAndroid --activity HelloAndroid --package com.helloandroid
Then attempted to build it using ANT. It gives the below error while creating the .dex file.
CODE:............
BUILD FAILED C:android-sdk-windows-1.6_r1platformsandroid-1.1 emplates android_rules.xml: 129: apply returned: 2
Total time: 5 seconds
View 3 Replies
View Related
Jul 16, 2009
I have downloaded the code successfully using "repo sync" on my linux system and now I want to buld it using make but it fails and telling that
"frameworks/policies/base/PolicyConfig.mk:22:*** No module defined for the given PRODUCT_POLICY (android.policy_phone) . stop. "
View 9 Replies
View Related
Feb 18, 2009
We're thinking about building light and paid versions of our app for the Market. But I am not clear what we need to do, or how to do it. (1) Do we definitely need the two versions to have different package names for the two builds ?It seems logical to do it that way, but I have not found a clear answer from Google to that question. Though I have found several people asking the same question. 2) Is there any support in Eclipse for building two similar apps with different package names from the same java and xml files ?In most of the IDEs I've used, it is a doddle to define multiple build targets for one project, but none of those mechanisms seem to be present here. And, the package name is embedded in every java file, as well as in many places in the manifest, leaving me without a tidy way to build to alternate package names.Is there a tidy way to build multiple version ? Or are we really going to end up copying the whole codebase and search-and-replacing the package name.
View 6 Replies
View Related
Sep 10, 2010
can you advice me a book or something else containing good practices about how to build/structure a web application in a way that will be easy to extend it with an Android/iPhone version later.I am currently trying to get into Django so it will be nice if the practices are related to it.
View 1 Replies
View Related
Oct 15, 2009
how to enable SVG support when building Webkit for Android? I saw an earlier thread from back in March about SVG being slow for the UI of apps, but I'd like to experiment with web content containing SVG, DOM manipulations, etc to see what the speed is like. Is it just a matter of turning on the compile flags for SVG support in Webkit or would there be a significant porting task?
View 2 Replies
View Related
Dec 21, 2009
I am currently working on a project which requires me to use an XML document to render a form on an Android device. The form must be fetched and displayed at run-time. I am wondering if there is a way to tag the form XML, transform it using XSLT into an Android layout XML, and then have the device render it.
View 3 Replies
View Related