[android-developers] Re: need help on https (code for http included)
The Base64 class is here from: http://www.koders.com/java/fid69F2AEF194A11C98811C89E96EE802AB0CD5E7BD.aspx?s=base64#L30 --~--~-~--~~~---~--~~ 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] Re: need help on https (code for http included)
Well, I get really stuck on this. Normal HTTP is working fine: public class Hyper extends Activity { private static Logger logger = Logger.getLogger(Hyper.class); private static final String HTTP = http://www.gmx.de;; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); logger.debug(START); try { URL url = new URL(HTTP); URLConnection connection = url.openConnection(); connection.setDoOutput(true); connection.setDoInput(true); BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream())); StringBuffer sb = new StringBuffer(); while (br.ready()) { sb.append(br.readLine()); } logger.debug(InputStream: + sb.toString()); logger.debug(END); } catch (Exception e) { logger.error(e); } } } --~--~-~--~~~---~--~~ 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] Re: need help on https (code for http included)
I tried to work with something I've found on the web. I think I am quite near. But nothing is printed... package hyper.hyper; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.InetAddress; import java.net.Socket; import java.net.URL; import java.net.UnknownHostException; import java.security.KeyManagementException; import java.security.KeyStoreException; import java.security.NoSuchAlgorithmException; import java.security.UnrecoverableKeyException; import java.security.cert.X509Certificate; import javax.net.ssl.HostnameVerifier; import javax.net.ssl.HttpsURLConnection; import javax.net.ssl.SSLContext; import javax.net.ssl.SSLSession; import javax.net.ssl.SSLSocketFactory; import javax.net.ssl.TrustManager; import javax.net.ssl.X509TrustManager; import org.apache.log4j.Appender; import org.apache.log4j.AppenderSkeleton; import org.apache.log4j.Layout; import org.apache.log4j.Level; import org.apache.log4j.Logger; import org.apache.log4j.PatternLayout; import org.apache.log4j.spi.LoggingEvent; import android.app.Activity; import android.os.Bundle; import android.util.Log; /** * Hyper */ public class Hyper extends Activity { private static Logger logger = Logger.getLogger(Hyper.class); private static final String HTTPS = https://www.commerzbanking.de;; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); logger.debug(START); try { URL url = new URL(HTTPS); HttpsURLConnection.setDefaultHostnameVerifier(new MyHostnameVerifier()); HttpsURLConnection.setDefaultSSLSocketFactory(new MySSLSocketFactory()); HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); connection.setDoOutput(true); connection.setDoInput(true); BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream())); StringBuffer sb = new StringBuffer(); while (br.ready()) { sb.append(br.readLine()); } logger.debug(InputStream: + sb.toString()); logger.debug(END); } catch (Exception e) { logger.error(e); } } /** * MyHostnameVerifier */ public class MyHostnameVerifier implements HostnameVerifier { public boolean verify(String hostname, SSLSession session) { logger.debug(hostname: + hostname); logger.debug(session.getPeerHost: + session.getPeerHost()); return true; } } /** * MyTrustManager */ public class MyTrustManager implements X509TrustManager { public X509Certificate[] getAcceptedIssuers() { return (null); } public void checkClientTrusted(X509Certificate[] chain, String authType) { } public void checkServerTrusted(X509Certificate[] chain, String authType) { } } /** * MySSLSocketFactory */ public class MySSLSocketFactory extends SSLSocketFactory { private SSLSocketFactory factory; public MySSLSocketFactory() throws KeyManagementException, NoSuchAlgorithmException, KeyStoreException, UnrecoverableKeyException { try { SSLContext sc = SSLContext.getInstance(TLS); sc.init(null, new TrustManager[] { new MyTrustManager() }, null); factory = sc.getSocketFactory(); } catch (Exception ex) { } } @Override public Socket createSocket(Socket arg0, String arg1, int arg2, boolean arg3) throws IOException { return factory.createSocket(arg0, arg1, arg2, arg3); } @Override public String[] getDefaultCipherSuites() { return factory.getDefaultCipherSuites(); } @Override public String[] getSupportedCipherSuites() { return factory.getSupportedCipherSuites(); } @Override public Socket createSocket(String arg0, int arg1) throws IOException, UnknownHostException { return
[android-developers] Re: Free vs. Paid Package Names
have you ever heard about refactoring? thats what you are doing. and eclipse will help you so much... greetings, darolla --~--~-~--~~~---~--~~ 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] Re: Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]
maybe its just that simple: choose eclipse to export the library for you. it can be found there where you can add exernal jars and stuff... greetings darolla --~--~-~--~~~---~--~~ 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] Re: How to add an icon in the List view?
you can also think it this way: the xml is the list. right now you are using some official xml for every list item / list row. its quite easy to write your own list item / list row xml and use them in the list. its all done in the examples... greetings darolla --~--~-~--~~~---~--~~ 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] Re: Obtaining the exact SDK Source
take a look at the good old calculator source code. they are using some magic buttons, that extends the normal buttons. there is also a ways to configure the new view from the xml. the trick ist the namespace... greetings darolla --~--~-~--~~~---~--~~ 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] Re: need help on https (code for http included)
thank you droidin, unfortunately I didnt need the httpclient but the stream. well, I found a solution :) btw: this is sdk 1.1 r1 code: greetings, marco import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.URL; import java.security.SecureRandom; import java.security.cert.X509Certificate; import javax.net.ssl.HostnameVerifier; import javax.net.ssl.HttpsURLConnection; import javax.net.ssl.SSLContext; import javax.net.ssl.SSLSession; import javax.net.ssl.TrustManager; import javax.net.ssl.X509TrustManager; import lgpl.haustein.Base64Encoder; import org.apache.log4j.Appender; import org.apache.log4j.AppenderSkeleton; import org.apache.log4j.Layout; import org.apache.log4j.Level; import org.apache.log4j.Logger; import org.apache.log4j.PatternLayout; import org.apache.log4j.spi.LoggingEvent; import android.app.Activity; import android.os.Bundle; import android.util.Log; /** * Hyper */ public class Hyper extends Activity { private static Logger logger = Logger.getLogger(Hyper.class); private static final String HTTP = http://www.gmx.de;; private static final String HTTPS = https://www.verisign.com/;; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); logger.debug(START); try { SSLContext sc = SSLContext.getInstance(TLS); scinit(null, new TrustManager[] { new MyTrustManager() }, new SecureRandom()); HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory()); HttpsURLConnection.setDefaultHostnameVerifier(new MyHostnameVerifier()); HttpsURLConnection con = (HttpsURLConnection) new URL(HTTPS).openConnection(); con.setDoOutput(true); con.setDoInput(true); con.connect(); BufferedReader br = new BufferedReader(new InputStreamReader(con.getInputStream())); StringBuffer sb = new StringBuffer(); String line; while ((line = br.readLine()) != null) sb.append(line); logger.debug(InputStream: + sb.toString()); logger.debug(END); } catch (Exception e) { logger.error(e); } } /** * MyHostnameVerifier */ private class MyHostnameVerifier implements HostnameVerifier { @Override public boolean verify(String hostname, SSLSession session) { return true; } } /** * MyTrustManager */ private class MyTrustManager implements X509TrustManager { @Override public void checkClientTrusted(X509Certificate[] chain, String authType) { } @Override public void checkServerTrusted(X509Certificate[] chain, String authType) { } @Override public X509Certificate[] getAcceptedIssuers() { return null; } } } --~--~-~--~~~---~--~~ 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] Re: text alignment in edit text
I think it isn't possible. Maybe u use 2 widgets instead... Greetings, DaRolla 2009/4/29 r3 rakesh.gar...@gmail.com: Hi, Can anybody teell me how to set half text left aligned and other half right aligned in the edit text thanks, rakesh --~--~-~--~~~---~--~~ 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] Re: java.lang.StackOverflowError when deserializing
dear fadden, thanks a lot for Thread(ThreadGroup group, Runnable target, String name, long stackSize). this works perfectly :) greetings, darolla 2009/4/22 fadden fad...@android.com: On Apr 21, 2:17 am, DaRolla netzprofi.ma...@googlemail.com wrote: In order to work with a server object (that uses Castor un/ marshalling) I do it like I always do. Same routines. Well, this time the file is only 172kb (my routines works pretty well with 2,4mb files) but the interlacing is quite deep. So it all starts with a class containing 2 ArrayLists. I tried de/serializing just ArrayListString and this works very well. But the XML file (which is unmarshalled with Castor and serialized in JDK) has 7000 lines. So I get this StackOverflowError. Android's default stack size is 8KB. This gets you 60-100 stack frames, depending on how complex your methods are. You can either: (a) use something that doesn't recurse as deeply (b) do the work on a thread you create with Thread(ThreadGroup group, Runnable target, String name, long stackSize) You can create a thread with a much larger stack (max is 256KB), which should be enough for your needs. If you need more than that, you should seriously consider adjusting your needs. :-) --~--~-~--~~~---~--~~ 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] Re: How can I programatically launch Browser in my android application
its done using intent: new Intent(android.intent.action.VIEW, new ContentURI(http://www.google.com;)); I googled 10 sec and found this: http://www.ciol.com/developer/languages/tutorial/android-its-anatomy-and-features/20308104622/0/ greetings, darolla 2009/4/23 nathan.charles.sum...@gmail.com nathan.charles.sum...@gmail.com: Hi, How can I programatically launch Browser in my android application? And how can I do that with it opens an URL instead of home page? Thank you. --~--~-~--~~~---~--~~ 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] Re: changing language on demand?
hi, thanks for this. I've found the same sourcecode here: http://almondmendoza.com/2009/01/28/force-localize-an-application-on-android/ :) All I had to add was this: this.setContentView(R.layout.main); This way my layout is updated with the right language. Thought there might be an update mechanism except loading the xml again Greetings, DaRolla 2009/4/23 Evgeny V evgen...@gmail.com: Hi! Try this. I have res\values and res\values-ja-rJP folders. Using following code: String languageToLoad = jp; Locale locale = new Locale(languageToLoad); Locale.setDefault(locale); Configuration config = new Configuration(); config.locale = locale; context.getBaseContext().getResources().updateConfiguration(config, context.getBaseContext().getResources().getDisplayMetrics()); On Thu, Apr 23, 2009 at 11:43 AM, DaRolla netzprofi.ma...@googlemail.com wrote: hello, I need to change the language of a running apk on demand. So the texts are set in xml to @strings/name And there are different strings.xml inside values-de values-en values- tr and so on. Is there a way to tell android to update the layout in order to change the strings automatically? Or do I have to replace all of them by hand using findById().setText (R.strings.name) ? Greetings DaRolla --~--~-~--~~~---~--~~ 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] Re: calling servlet from application
and how do I use authentication (simple http login /pw) and how https / ssl (with my own licence)? using httpclient its quite simple... do I need to set some htttp headers on my own? greetings, darolla 2009/4/14 Opal maciek.op...@gmail.com: Gr8, thanks for the clues :) On 9 Kwi, 01:03, mark.ka...@gmail.com wrote: Yes that is a wonderful feature of Android, in that much of the backend functionality is the same as 'regular' java. You can even stream objects back and forth to servlets, no need for chossy xml/soap type web data services. M On Apr 6, 11:06 am, Mark Murphy mmur...@commonsware.com wrote: Opal wrote: I need to call aservletfrom my android app and send/receive some data (using post method). I don't know how to do it and reading the API doesn't help me very much. Do u know any solution or have any idea how to do it? If you use HttpURLConnection, it works the same as in regular Java: http://www.exampledepot.com/egs/java.net/pkg.html If you use org.apache.http.*, there is documentation and examples at: http://hc.apache.org -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android App Developer Training:http://commonsware.com/training.html --~--~-~--~~~---~--~~ 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] Re: Android XMLRPC client
hi, I don't know this framework, but I know the user. pskink. he is an android developer from poland, mostly writing into the forum anddev.org. maybe you can post him a pm there, I am sure he will help you. greetings, darolla ps: maybe you can tell him greetings from darolla ;) 2009/4/8 Saravanan.K saravinfot...@gmail.com: Hi, I have downloaded the XMLRPC library from http://code.google.com/p/android-xmlrpc/downloads/detail?name=XMLRPC.tar.gzcan=2q= and tried using it to access my webservice. I have modified the Test.java file to consume my own webservice. But i was not quite successfull. This is the first time am trying to access a webservice. Am not quite sure if any modifications need to be done on the file org.xmlrpc.android.XMLRPCClient.java. I have seen few variables declared there... should those also need to be modified or is it enough if we modify the Test.java file Am much confused with this and i have spent almost one week struggling in this Please help me its urgent I need to create an android client to consume the wsdl file --~--~-~--~~~---~--~~ 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] Re: [TextView] What are that XML Attributes in JAVA ?
is there noone who want to help me on this? the most setter methods are documentated, but on this I get really nuts: android:layout_height=wrap_content thanks darolla 2009/4/4 DaRolla netzprofi.ma...@googlemail.com: Hi, I need to programm this XML in JAVA. Some I figured out, some not. Can you help me on the missing ones? TextView android:layout_width=150px android:layout_height=wrap_content android:text=Bladidadi android:layout_gravity=center_vertical android:textColor=#ff / TextView tv = new TextView(this); //android:layout_width=150px tv.setWidth(150); //android:layout_height=wrap_content ??? //android:text=Bladidadi tv.setText(Bladidadi); //android:layout_gravity=center_vertical tv.setGravity(Gravity.CENTER_VERTICAL); //android:textColor=#ff tv.setTextColor(Color.rgb(0xff, 0xff,0xff)); // tv.setTextColor (0xff) doesn't work somehow Greetings, DaRolla --~--~-~--~~~---~--~~ 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] Re: how to add --core-library to Eclipse ?
hello you all, and thanks for your answers. it is like dan bornstein wrote: I tried to integrate java.beans.PropertyChangeListener and java.beans.PropertyChangeEvent into my eclipse android project and got the dx error. I played around with that android-sdk/tools/activitycreator and succeeded. Right now I use the build.xml (ant script) to compile, reinstall and debug my activity with included PropertyChangeListener and PropertyChangeEvent. I imported that project into eclipse in order to start the build.xml from there. I had to check off build automatically. So right now I am using Eclipse as a texteditor and to trigger that ant script. To be more comfortable I'd like to add that parameter --core-library to eclipse / dex. is this possible somehow? greetings, darolla 2009/3/30 Mark Murphy mmur...@commonsware.com: Dan Bornstein wrote: Maybe it needs some further wordsmithing. As another for instance of this error, I am working on Android-ifying some existing Java code that relies on java.beans.PropertyChangeListener and java.beans.PropertyChangeEvent. I can pull those files out of Apache Harmony, and they are nicely self-contained -- PropertyChangeEvent references PropertyChangeListener, but everything else they use are supplied by Android. When I tried putting src/java/beans/PropertyChangeEvent.java and src/java/beans/PropertyChangeListener.java in my source tree, though, I triggered the --core-library error message from dx. In particular, dx rejects the definition of classes in namespaces which are already used by classes in the standard boot classpath or are likely to be defined in future incarnations of the platform. The problem is that you put us out here in a bind: we can't use your classes (because they are not in the SDK) and you won't let us use our edition of those classes. I would recommend the --core-library dx error message have a link to some documentation page where this gets spelled out, so we know what to expect. In particular, a list of the prohibited namespaces would be handy, so we don't have to just guess what we can and cannot use. FYI, I have filed this in the issue tracker as: http://code.google.com/p/android/issues/detail?id=2329 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ 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] Re: how to add --core-library to Eclipse ?
is there noone who can help me on this? 2009/3/26 DaRolla netzprofi.ma...@googlemail.com: hi, I need to know how to add the parameter --core-library to Eclipse, especially to DEX. I managed to work around with activitycreator and ant scripts (build.xml), but this way it takes too long. Where can I configure this? Thanks, DaRolla --~--~-~--~~~---~--~~ 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] Re: need help on --core-library
I think I have to compile the java.bean. using the makefiles (just like the android core sources). to be honest I didnt find any documentation how to use them. greetings, darolla 2009/3/18 Stoyan Damov stoyan.da...@gmail.com: FreeTTS is a text-to-speech engine. It's only dependency is *again* java.beans.PropertyChangeListener. I've tried compiling with --core-library using Eclipse but no matter what I did I wasn't able to pass that parameter to the Android tools (can't remember which one required it). I managed to compile using the command-line tools but haven't tried running the app because in the end I've given up because of the big voice files required for FreeTTS. Bottom line is, I can't really help you, but try compiling on the command line OR try creating an IntelliJ IDEA project and modify it's build script -- I can't guarantee it will work though. Cheers On Wed, Mar 18, 2009 at 9:51 AM, Marco Schmitz netzprofi.ma...@googlemail.com wrote: hi stoyan, I am working for a company that needs an android client for their web application. because the server is coded nicely, the first try is going to be a serialized server object on android. but the server uses jdk 1.6 and therefor some classes that android doesnt support like java.bean. because these beans are transient I just need an empty class inside android. but the problem is to compile it. any suggestions? by the way: what is freetts? greetings, darolla 2009/3/17 Stoyan Damov stoyan.da...@gmail.com: I'll try to pull a magic now and guess what you're trying to do -- are you trying to get FreeTTS to work in your app? :P On Tue, Mar 17, 2009 at 6:01 PM, DaRolla netzprofi.ma...@googlemail.com wrote: hello, I need to build a java.beans.PropertyChangeListener which is part of JDK (rt.jar) but not part of Dalvik. Trying to copy the sources to my Application I get this: Attempt to include a core VM class in something other than a core library. It is likely that you have attempted to include the core library from a desktop virtual machine into an application, which will most assuredly not work. If you really intend to build a core library -- which is only appropriate as part of creating a full virtual machine binary, as opposed to compiling an application -- then use the --core-library option to suppress this error message. If you go ahead and use --core-library but are in fact building an application, then please be aware that your build will still fail at some point; you will simply be denied the pleasure of reading this helpful error message. My solution: 1) build a core library with consisting out of java.beans.PropertyChangeListener 2) integrate that library (jar?) into my application. My question: - how can I build a core library using eclipse? greetings, darolla --~--~-~--~~~---~--~~ 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] Re: need help on --core-library
hi stoyan, I am working for a company that needs an android client for their web application. because the server is coded nicely, the first try is going to be a serialized server object on android. but the server uses jdk 1.6 and therefor some classes that android doesnt support like java.bean. because these beans are transient I just need an empty class inside android. but the problem is to compile it. any suggestions? by the way: what is freetts? greetings, darolla 2009/3/17 Stoyan Damov stoyan.da...@gmail.com: I'll try to pull a magic now and guess what you're trying to do -- are you trying to get FreeTTS to work in your app? :P On Tue, Mar 17, 2009 at 6:01 PM, DaRolla netzprofi.ma...@googlemail.com wrote: hello, I need to build a java.beans.PropertyChangeListener which is part of JDK (rt.jar) but not part of Dalvik. Trying to copy the sources to my Application I get this: Attempt to include a core VM class in something other than a core library. It is likely that you have attempted to include the core library from a desktop virtual machine into an application, which will most assuredly not work. If you really intend to build a core library -- which is only appropriate as part of creating a full virtual machine binary, as opposed to compiling an application -- then use the --core-library option to suppress this error message. If you go ahead and use --core-library but are in fact building an application, then please be aware that your build will still fail at some point; you will simply be denied the pleasure of reading this helpful error message. My solution: 1) build a core library with consisting out of java.beans.PropertyChangeListener 2) integrate that library (jar?) into my application. My question: - how can I build a core library using eclipse? greetings, darolla --~--~-~--~~~---~--~~ 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] Re: object serialization ???
thank you all :) you were right: the only solution is to remove my class from beeing an inner class. thanks a lot. greetings, darolla 2009/2/11 Mattaku Betsujin mattaku.betsu...@gmail.com: The problem is you're trying to serialize an inner class of SerialisiereAndroidActivity, which is not Serializable. To fix this, you can declar the inner class as public static class Serialisiere implements ^^^ - Mattaku On Tue, Feb 10, 2009 at 11:56 AM, dlawogus...@gmail.com dlawogus...@gmail.com wrote: Hello darolla, I have not tested your code to be certain about this but I would say u would actually need to instantiate your object like so instead of passing the static reference because the object u create in your code contains states (your instance vars) but the static reference does not. Serialisiere s = new Serialisirer(1,2,3) oos.writeObject(s) On Feb 10, 5:50 am, Chechy che...@gmail.com wrote: Hi, I've tried several ways but the only way I succeeded to serialize something is to serialize each member of class Serialisiere: public void writeIt(String filename) throws IOException { FileOutputStream fos = openFileOutput(filename, MODE_WORLD_WRITEABLE); ObjectOutputStream oos = new ObjectOutputStream(fos); oos.writeInt(this.i); oos.writeDouble(this.d); oos.writeChars(this.s); oos.close(); fos.close(); } I'm not sure if this answers your question. Best Regards: Chechy On Feb 10, 11:55 am, DaRolla netzprofi.ma...@googlemail.com wrote: hi, I get nuts on this, who can help? package de.test; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectOutputStream; import java.io.Serializable; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.widget.TextView; public class SerialisiereAndroidActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); try { Serialisiere pi = new Serialisiere(3, Math.PI, pi); ((TextView) findViewById(R.id.tv1)).setText(Serialisiere:+ pi.toString()); pi.writeIt(pi.ser); } catch( Exception e) { Log.d( SerialisiereAndroidActivity, e.toString() ); } } public class Serialisiere implements Serializable { private static final long serialVersionUID = -3922493985071195239L; private int i; private double d; private String s; public Serialisiere(int i, double d, String s) { this.i = i; this.d = d; this.s = s; } public void writeIt(String filename) throws IOException { FileOutputStream fos = openFileOutput(filename, MODE_WORLD_WRITEABLE); ObjectOutputStream oos = new ObjectOutputStream(fos); oos.writeObject(Serialisiere.this); oos.close(); fos.close(); } @Override public String toString() { return i= + i + d= + d + s= + s; } } } the problem is: oos.writeObject(Serialisiere.this); this throws an java.io.NotSerializableException. who can help me on this? greetings, darolla --~--~-~--~~~---~--~~ 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] Re: object serialization ???
maybe I didnt explain enough :) so what I want to is to serialize an Object in order to deserialize it later on. but its not that easy. I think the way I try to write is ok. but why do i get that exception? its only an in, a double and a string inside that object. greetings, darolla 2009/2/10 DaRolla netzprofi.ma...@googlemail.com: hi, I get nuts on this, who can help? package de.test; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectOutputStream; import java.io.Serializable; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.widget.TextView; public class SerialisiereAndroidActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); try { Serialisiere pi = new Serialisiere(3, Math.PI, pi); ((TextView) findViewById(R.id.tv1)).setText(Serialisiere: + pi.toString()); pi.writeIt(pi.ser); } catch( Exception e) { Log.d( SerialisiereAndroidActivity, e.toString() ); } } public class Serialisiere implements Serializable { private static final long serialVersionUID = -3922493985071195239L; private int i; private double d; private String s; public Serialisiere(int i, double d, String s) { this.i = i; this.d = d; this.s = s; } public void writeIt(String filename) throws IOException { FileOutputStream fos = openFileOutput(filename, MODE_WORLD_WRITEABLE); ObjectOutputStream oos = new ObjectOutputStream(fos); oos.writeObject(Serialisiere.this); oos.close(); fos.close(); } @Override public String toString() { return i= + i + d= + d + s= + s; } } } the problem is: oos.writeObject(Serialisiere.this); this throws an java.io.NotSerializableException. who can help me on this? greetings, darolla --~--~-~--~~~---~--~~ 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] Re: Views
try to create a folder layout-land and layout-port next to layout. just place main.xml inside both folders but not inside layout. swapping the layout (numlock+7 inside the emulator) will show you the best fitting xml file. greetings, darolla 2009/2/10 Romain Guy romain...@google.com: 1) Does Google think there will only be one screen size on Android phones? No. The reason I ask is because I haven't been able to find anything on variable layouts in Android? All layouts are variable. I would like to create a layout with 2 webviews, one 80% of screen height and the other 20%. Is this even possible, or do I need to assign the height of each as a static px value? That's what wrap_content, fill_parent, weight and in some measure the dip unit are for. 2) How do I preserve the data in my views when someone switches between landscape and portrait? I doubt it's hard, but I've not been able to find it. Can someone post an example? It's done automatically for all the views with an id. -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~-~--~~~---~--~~ 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] Re: How to solve the landscape mode issue?
maybe you can create 2 different xml files for each mode. create a folder layout-land and a folder layout-port under res and place the xml file (same filename) into it. the xml file mustnt be inside layout. this way the best fitting xml file is used :) greetings, darolla 2009/2/10 manoj manojkumar.m...@gmail.com: Hi frnds, I did as you suggested. I used ScrollView, inside that I used LinearLayout, but still the problem persists. can you please help me. Thanks, Manoj. On Feb 10, 5:52 pm, Odessa Silverberg silverberg.ode...@googlemail.com wrote: Well there can be some reasons. Problem is you aren't specific enough to get a clue what could be causing it. First off, you can also swap to Landscape Mode in the emulator too, if you press Ctrl+F11 (iirc, don't have eclipse/SDK installed on work) However, there could be a few reasons for this: 1. If you have designed your application for potrait mode, you maybe forgot to add a scroll view. So an application in potrait mode would look fine but when you flip it (i.e. open the keyboard in the G1), it turns into landscape mode. In this case you could simply add a ScrollView element as top element in the XML file i.e. ScrollView android:layout_height=fill_parent android:layout_width=fill_parent LinearLayout android:layout_ !-- Your other Views comes here -- /LinearLayout /ScrollView 2. Maybe you used fixed layout where every view has a fixed position. this can cause some very unflexible layouts. Instead use something more flexible, like Relative or Linear Layout (even Table Layout) On Feb 10, 1:28 pm, manoj manojkumar.m...@gmail.com wrote: Hi friends, I have a small application. It has some user inputs (like name, phone number, country, connection type...etc, I used editText for the user to enter). Its working fine on the emulator. When I installed the same app on real device, firstly it shows the whole input screen. But when I tried to give input, (changing into landscape mode) half of the screen is not visibiling. I want to show the whole screen, I dont know how to do? can any one please help me? Thanks, Manoj. --~--~-~--~~~---~--~~ 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] Re: ListView: Disable Focus Highlight
otherwise try it with your own theme. you need to take a look at theme.xml and styles.xml in your sdk in order to manipulate your list selector (which is shown above your list items, so manipulating them wont help) greetings darolla 2009/2/6 BoD bodl...@gmail.com: Thanks a lot, I'll try that. BoD On Feb 6, 2009 12:29 AM, Emmanuel emmanuel.ast...@gmail.com wrote: In order not to have the items selectable, I disable them by code ( but it is perhaps doable in the xml files ), in the adapter definition : ListAdapter adapter = new SimpleCursorAdapter(MyList, Layout, c, new String[] { Name, Score }, to) { public boolean areAllItemsEnabled() { return false; } public boolean isEnabled(int position) { return false; } }; and it's ok... Emmanuel http://androidblogger.blogspot.com/ On Feb 5, 12:08 am, BoD bodl...@gmail.com wrote: I too have this problem. I tried this solution (setting the listSelector to #), but even though it does suppress the Orange background there's a side effect: the text is darker. Isn't there a proper way to completely disable the focusable/ selectable behavior of a ListView? If you can make it not clickable, it should make sense that it is also not possible to select cells. Thanks for your help! BoD On Feb 2, 12:47 pm, Mark Murphy mmur...@commonsware.com wrote: fahad wrote: Hi, I've set the row (view) being used in a ListView as non-focusable along with non-clickable and have set the listview's focusable flag to false as well. However, I still get the yellow highlight when I use the scroll-ball on my device. How can I disable the yellow highlight and use my own special view/color instead upon focus? Any help would be much appreciated. android:listSelector in your ListView XML will allow you to change the color/drawable used for the highlight. You can also set it to be fully transparent (#) and roll your own highlighting, if you feel the need. -- Mark Murphy (a Commons Guy)http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ 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] Re: how to add 3-4 items in list view
you need to create an xml for each children row. please take a look at the 14 list source codes inside your api samples. greetings, darolla 2009/2/6 munish munish.sha...@lntinfotech.com: Can any one please tell me how to add multiple items (images/text) in list view --~--~-~--~~~---~--~~ 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] Re: Problem
hi, maybe you start with the onTouchEvent which each Activity has: public boolean onTouchEvent(MotionEvent event) {...} then you can get the Id of each button. changing the way the button looks can be manipulated using button.setBackground(). there you can add a resource (like a .png or a .9.png) hope this helps you a little greetings darolla ps: I am sorry that you got those stupid answers yet... 2009/2/4 jsymone...@prosoftco.com jsymone...@prosoftco.com: Your kidding me? A developer asks a questions and you two are rude to him? If you don't have something to say to answer the question, why bother even responding? No one needs to hear your snide remarks especially when someone is trying to learn and grow in this area. On Feb 4, 9:13 am, Faber Fedor faberfe...@gmail.com wrote: Start here:http://www.catb.org/~esr/faqs/smart-questions.htmlhttp://www.catb.org/%7Eesr/faqs/smart-questions.html On Wed, Feb 4, 2009 at 10:50 AM, Alowishus alowis...@gmail.com wrote: Okay Gang, Here is the problem, I am building an application and have multiple images that need to switch when the user touches the screen, doesn't matter where the users touches. The press the screen and the images switch randomly. I purchased the ebook Professional Android Application Development and have torn though it. I am stumped. I'm thoroughly confused at this point. Any ideas on where I can go or how I can accomplish this? The simpler the terms you can put it in the better. Thanks in advance, Kevin -- Faber Fedor Cloud Computing New Jerseyhttp://cloudcomputingnj.com --~--~-~--~~~---~--~~ 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] Re: Home Screen source code in SDK 1.0
you can download the whole 2gb android sources using GIT (there is a windows implementation for that, too) :) greetings, darolla 2009/2/6 Jose Cortes jbeerb...@gmail.com: Hello everybody. I have been looking the home Screen source code (The Launcher code) in the Android project page: http://android.git.kernel.org/ And, in this case, there are some classes that are not implemented in the actual public SDK (1.0), like android.provider.LiveFolders. I supose that is normal, because they are continuing developing and creating new packages and so... The thing is... Does anyone know a place to get the soure code to the actual launcher (home) with the public/official SDK? --~--~-~--~~~---~--~~ 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] Re: windowAnimationStyle - ignored in theme?
hi mark, I downloaded the development.apk sources, but I didnt get the clou. DevelopmentSettings.java line 79: private IWindowManager mWindowManager; line 502: mWindowManager.setAnimationScale(which, scale); this way somehow globally the transition is set. I need to checkout the source / jar / apk with IWindowManager, I cannot compile it yet. I think if we fin dout how the transition in development.apk is set we will know more ;) greetings, darolla 2009/2/4 Mark Murphy mmur...@commonsware.com: DaRolla wrote: I'd like to have some fancy effects on my Activities when entering or exiting. AFAIK, support for that was cut out as part of releasing the newer versions of the SDK. The Development.APK allows you to enable slide animations for opening and closing activities across the board, but I'm not aware of a supported way to do it on a per-activity basis today. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Published! --~--~-~--~~~---~--~~ 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] Re: custom View using Adapter iface
take a look into the api samples. there are 14 lists, and one of them has a very performant adapter... greetings, darolla 2009/1/31 skink psk...@gmail.com: hi, i want to create custom View showing possibly several items. i think using Adapter interface would be good idea. my question is: should i extend AdapterView? if so, what is the most imortant when doing this (e.g. AdapterView is ViewGroup, so how should i manage children)? thanks, pskink --~--~-~--~~~---~--~~ 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] Re: custom View using Adapter iface
/** * Demonstrates how to write an efficient list adapter. The adapter used in this example binds * to an ImageView and to a TextView for each row in the list. * * To work efficiently the adapter implemented here uses two techniques: * - It reuses the convertView passed to getView() to avoid inflating View when it is not necessary * - It uses the ViewHolder pattern to avoid calling findViewById() when it is not necessary * * The ViewHolder pattern consists in storing a data structure in the tag of the view returned by * getView(). This data structures contains references to the views we want to bind data to, thus * avoiding calls to findViewById() every time getView() is invoked. */ public class List14 extends ListActivity { private static class EfficientAdapter extends BaseAdapter { private LayoutInflater mInflater; private Bitmap mIcon1; private Bitmap mIcon2; public EfficientAdapter(Context context) { // Cache the LayoutInflate to avoid asking for a new one each time. mInflater = LayoutInflater.from(context); // Icons bound to the rows. mIcon1 = BitmapFactory.decodeResource(context.getResources(), R.drawable.icon48x48_1); mIcon2 = BitmapFactory.decodeResource(context.getResources(), R.drawable.icon48x48_2); } /** * The number of items in the list is determined by the number of speeches * in our array. * * @see android.widget.ListAdapter#getCount() */ public int getCount() { return DATA.length; } /** * Since the data comes from an array, just returning the index is * sufficent to get at the data. If we were using a more complex data * structure, we would return whatever object represents one row in the * list. * * @see android.widget.ListAdapter#getItem(int) */ public Object getItem(int position) { return position; } /** * Use the array index as a unique id. * * @see android.widget.ListAdapter#getItemId(int) */ public long getItemId(int position) { return position; } /** * Make a view to hold each row. * * @see android.widget.ListAdapter#getView(int, android.view.View, * android.view.ViewGroup) */ public View getView(int position, View convertView, ViewGroup parent) { // A ViewHolder keeps references to children views to avoid unneccessary calls // to findViewById() on each row. ViewHolder holder; // When convertView is not null, we can reuse it directly, there is no need // to reinflate it. We only inflate a new View when the convertView supplied // by ListView is null. if (convertView == null) { convertView = mInflater.inflate(R.layout.list_item_icon_text, null); // Creates a ViewHolder and store references to the two children views // we want to bind data to. holder = new ViewHolder(); holder.text = (TextView) convertView.findViewById(R.id.text); holder.icon = (ImageView) convertView.findViewById(R.id.icon); convertView.setTag(holder); } else { // Get the ViewHolder back to get fast access to the TextView // and the ImageView. holder = (ViewHolder) convertView.getTag(); } // Bind the data efficiently with the holder. holder.text.setText(DATA[position]); holder.icon.setImageBitmap((position 1) == 1 ? mIcon1 : mIcon2); return convertView; } static class ViewHolder { TextView text; ImageView icon; } } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setListAdapter(new EfficientAdapter(this)); } private static final String[] DATA = { Abbaye de Belloc, Abbaye du Mont des Cats, Abertam, Abondance, Ackawi, Acorn, Adelost, Affidelice au Chablis, Afuega'l Pitu, Airag, Airedale, Aisy Cendre, ... 2009/1/31 skink psk...@gmail.com: hi, i want to create custom View showing possibly several items. i think using Adapter interface would be good idea. my question is: should i extend AdapterView? if so, what is the most imortant when doing this (e.g. AdapterView is ViewGroup, so how should i manage children)? thanks, pskink --~--~-~--~~~---~--~~ 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
[android-developers] Re: custom themes?
take a look here: http://code.google.com/p/android-titlebar/ http://www.anddev.org/my_own_titlebar_backbutton_like_on_the_iphone-t4591.html and here: http://code.google.com/p/android-misc-widgets/ http://www.anddev.org/making_own_theme-t4052.html greetings, darolla 2009/1/31 Craig csab...@gmail.com: Could anyone post or point me to an example of using custom items in a theme? I've created a theme that uses custom attributes as item names, and I want to refer to those items in the code. I can see the theme is working because it also sets the android:windowBackground color. As a concrete example, I want an inactiveColor item in my Theme.GreenWithYellow to use in onDraw methods in my Views. I think this would be the right mechanism to use to have multiple color schemes for application specific purposes, but I would be happy to entertain other approaches, too. --~--~-~--~~~---~--~~ 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] Re: button text change
sometimes you need to invalidate() greetings, darolla 2009/1/31 Chander Pechetty cspeche...@gmail.com: Have you done setContentView(R.layout.yourLayout) before calling this. Looks ok to me, it certainly works for me. if you are doing this on a certain click , then make sure its clickable... button1.setClickable(true); -Chander On Jan 31, 10:37 am, Bob bshumsk...@yahoo.com wrote: Hi, How do I change the text on a button at run-time? This code doesn't appear to do anything, what am I doing wrong: Button button1=(Button)findViewById(R.id.button1); button1.setText(Change text); Thanks, Bob --~--~-~--~~~---~--~~ 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] Re: Activity Title font
hi, just take a look at android\android-sdk-windows-1.0_r2\tools\lib\res\default\values styles.xml and themes.xml greetings, darolla 2009/1/30 AusR austinjr...@gmail.com: Anyone know what the default Activity Title font size/style is? I'm creating a custom title but would like to match the other Activities. 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] Re: Running more than one .apk in the same process?
and how can you startup both .apks ? greetings, darolla 2009/1/30 Dianne Hackborn hack...@android.com: The two .apks must be signed with the same certificate, use android:sharedUserId in their manifest to be assigned the same uid, and then can use android:process to specify the same name of the process to run in. On Thu, Jan 29, 2009 at 9:33 PM, mongd mongdl...@gmail.com wrote: According to the docs in the Android developer's site, processes can be used to reduce overhead by running the code of multiple .apks in the same process. (see application model) What I'm wondering is HOW I can run multiple .apk in the same process. Since an image from one of the Google I/O video shows that process can run one .apk or just part of one .apk, I'm little confused about processes. Thank you! -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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] Re: Anybody having trouble accessing https://dl-ssl.google.com/android/eclipse/ - ie the eclipse / android integration plugin ?
using http without s works for me fine inside eclipse... greetings, darolla 2009/1/30 blindfold seeingwithso...@gmail.com: http://code.google.com/intl/ru/android/adt_download.html On Jan 30, 9:57 am, Richard Green richardagr...@gmail.com wrote: I can't seem to get anything back fromhttps://dl-ssl.google.com/android/eclipse/ - even accessing from a browser just gives a 404. Is it just me ?!?! --~--~-~--~~~---~--~~ 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] Re: ListView with the CheckBoxPreference look
maybe this helps you: http://www.jsharkey.org/blog/2008/08/18/separating-lists-with-headers-in-android-09/ greetings, darolla 2009/1/29 Dan Dromereschi dandromeres...@gmail.com: Hello, I am trying to build a ListView that contains items that look exactly like the CheckBoxPreference, an android.R.id.text1, an android.R.id.text2 and a checkbox. I am using a SimpleAdapter and I manage to either have only text1 and the checkbox, or text1 and text2, but never all the 3 of them. Is there something I am missing? Thanks, Dan --~--~-~--~~~---~--~~ 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] Re: what is maximum height and width of image which can display?
I think 16MB is max for one activity... greetings, darolla 2009/1/29 jj jagtap...@gmail.com: what is maximum height and width of image which can display? When I try for 1000px height and 1000pix width it work, but for beyond it, it gives exception, appl force close. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---