Extract one example from a project with many

by Droidy » Sat, 23 Jan 2010 06:49:44 GMT


Sponsored Links
 I have an api examples project with about 100 examples in it.
How do I get just one out - I mean I need java files, resources,
R.java, manifest, layout, string xmls etc etc.

Tried all sorts of things and always some crapy unsolvable error.

Is there a simple way to get one example java + associated files
form the hundreds in the project?

--



Extract one example from a project with many

by Maps.Huge.Info (Maps API Guru) » Sat, 23 Jan 2010 08:10:54 GMT


 I'm guessing you're talking about the api demo app. It sure is
complicated, however, taking the time to understand the particular
parts and how it's organized will pay off in the long run. It may be
worth your effort to look at a simpler example, one that covers a
single function instead of hundreds until you've built up your
knowledge base.

-John Coryat

"Radar Now!"

"What Zip Code?"

--


Sponsored Links


Extract one example from a project with many

by Droidy » Sun, 24 Jan 2010 17:41:09 GMT


 Yes, it is in the apiDemo project that I am trying to get just
one GL example out. Impossible. :-(

Its one reason I hate eclipse - I never do any programming in
eclipse, I just try to work out its buttons and dialogues.


On Jan 23, 12:09am, "Maps.Huge.Info (Maps API Guru)"



--



Extract one example from a project with many

by Anthoni » Mon, 25 Jan 2010 12:21:51 GMT


 Hi John / Droidy,

Can you please tell me where these API demo APPs are please ?
I am just starting out learning Android and want to glean as much
information as I can.

Tried posting this question before to both of you, but it seemed to
have got sucked into the void. Not sure why.

Regards
Anthoni

On Jan 23, 12:09am, "Maps.Huge.Info (Maps API Guru)"



--



Extract one example from a project with many

by Maps.Huge.Info (Maps API Guru) » Mon, 25 Jan 2010 14:56:32 GMT


 Under "Samples" in the platform you desire to work with, in the SDK.
There's actually a lot of good stuff in the samples directory.

-John Coryat

"Radar Now!"

"What Zip Code?"

--



Other Threads

1. Change in behavior in X509TrustManager callback on Android 2.3

My application which was working fine on 2.2 is broken on 2.3 due to a
change in the way that the X509TrustManager callbacks have been
implemented on Android 2.3.  My application has a class which
implements the X509TrustManager interface.  It is called during the
handshake with a server so that the user can make a decision about
whether to trust the certificate.

On Android 2.2 and earlier the behaviour when this class was used is
as follows:
1) The checkServerTrusted method is called by the framework
2) The user decides not to accept the certificate which results in my
method throwing a CertificateException
3) This is caught by the framework and used to create a new
SSLException
4) The SSLException is delivered to my networking code which handles
the specific exception

However on Android 2.3  using the emulator this interaction model has
changed to the following
1) The checkServerTrusted method is called by the framework
2) The user decides not to trust the certificate which results in my
method throwing a CertificateException
3) This is caught by the framework which AGAIN calls my
checkServerTrusted method
4) The user is again prompted and again decides to not accept the
certifcate which results in another CertificateException being thrown
from my code
5) The framework catches this exception then generates an IOException
that is delivered to my networking code with the detail message being
"server xyz not verified"

As you can see the behaviour is very different between earlier
versions of Android and the latest 2.3 release.  You can quite easily
reproduce the problem using the browser as well, which has inherited
the same bug.  To do this make a HTTPS connection to a website that
makes use of a self signed certificate. You'll be presented with a
dialog that allows you to accept, view or reject the certificate.
Clicking reject causes the same dialog to be shown one more time.
Clicking reject a second time results in an empty screen being
displayed.

I'd suggest that something is broken in 2.3 in the way that the
CertificateException thrown by the X509TrustManager is handled by the
framework.  I'm seeing a major change in the interaction between my
application and the framework that I can reproduce using the Android
browser.

Thanks
Lee

-- 

2. Changing the System Proxy and Port Settings

Which command can i use to set the Proxy and Port settings.
I have tryed a lot of codes, but no one is working.

f.e:

System.setProperty("proxyHost", "test");
System.setProperty("proxyPort", "3124");
System.setProperty("proxySet", "true");

I have also debugged my Phone,

When i Change the Proxy settings at the Phone manually it shows the
following lines:

DSptch > Window(460697b8 com.android.settings/
com.android.settings.wifi.AdvancedSettings paused = false)

then, when i press the ok button:

system <- value=ipaddress name=wifi_http_proxy
property: sys.settings_system_version=135
notifying: content://settings/system/wifi_http_proxy

when i change the proxy:

system <- value=proxynumber name=wifi_http_port
property: sys.settings_system_version=136
notifying: content://settings/system/wifi_http_port


PLEASE HELP ME!
Thank you everyone who reads this post, and who will answers.

-- 

3. SMS Injection tool

4. supporting more devices - minSDKversion, support-screens

5. Implementing WiFi proxy support in the master branch

6. ERROR/LocationMasfClient

7. How to return from Linux shell (Alt + F1) to the Android-x86 OS desktop?