[android-developers] Re: How to add external static libraries to Android.mk?

2009-10-20 Thread Dimitris
I have the exact same problem and error message. Can someone describe the difference between STATIC and SHARED library? Please help! On Sep 24, 11:00 pm, mmj may.mari...@gmail.com wrote: Anyone who knows the reason please help.It is very urgent. Please be kind enough to share your insights!!!

[android-developers] Re: Avoid restarting http request on orientation change

2010-04-17 Thread Dimitris
I would take into consideration that onDestroy() might not get called always. Usually onPause() is the best place to store/cache data before you are done because it is guaranteed to get called. Keep in mind not to do expensive or time consuming operations onPause() because the other activity that

[android-developers] Re: AsyncTask and screen rotation

2010-09-10 Thread Dimitris
Wow thank you, I've been finally waiting for some clarification regarding how safe it is when updating the instance of the Activity in a task. This should be well documented and perhaps an example should be provided. On Sep 10, 10:13 am, Mark Murphy mmur...@commonsware.com wrote: On Fri, Sep

[android-developers] Re: XML encryption

2010-10-05 Thread Dimitris
Yes, look for CipherOutputStream and CipherInputStream for writing and reading the file safely. I would use a symmetric encryption algorithm such as AES unless the XML is coming from a web service. On Oct 5, 9:18 am, Kostya Vasilyev kmans...@gmail.com wrote:   05.10.2010 19:59, DanH пишет: If

[android-developers] Re: Developing Stand alone service

2010-10-06 Thread Dimitris
When you say other applications can use the service do you mean that they will remotely bind to it (using AIDL?). I cant think of another way. If so, the calling app can pass a flag to android (I think it is BIND_AUTO_CREATE) that will create the service if it is not running. On Oct 6, 6:49 pm,

[android-developers] Re: Singleton object with context?

2010-10-11 Thread Dimitris
The context class is abstract. When you say context do you mean an Activity context? I suggest you look at the Application class (see getApplicationContext()) and pass that instead. It is much much safer from memory leaks rather than passing the Activity around. Try to also override the

[android-developers] Re: Singleton object with context?

2010-10-11 Thread Dimitris
Agreed. For UI related cases that you might want to use that Context, the application one is not suited. Use depending on what you are trying to do :) On Oct 11, 11:13 am, Mark Murphy mmur...@commonsware.com wrote: On Mon, Oct 11, 2010 at 2:01 PM, Dimitris dnkou...@gmail.com wrote

[android-developers] Re: Class Object and Messenger/Bundle

2010-10-11 Thread Dimitris
Look up parcelable interface in Android. On Oct 11, 2:26 pm, Jim Cortez j...@jimcortez.com wrote:   Nevermind. I just realized that the java Class object implements Serializable. I can now use a bundle and call putSerializable Jim On 10/11/10 2:23 PM, Jim Cortez wrote:  Hello all,  

[android-developers] Custom title bar with TextView and id @android:id/title does not inherit/use android:label from manifest!

2010-10-12 Thread Dimitris
I have a custom title bar that I would like to apply to all my activities. I have searched online and found a few ways of doing that however I have ran into a problem. It seems that despite the fact I have a TextView in my titlebar with id @android:id/title, Android will not use the value defined

[android-developers] Re: Custom title bar with TextView and id @android:id/title does not inherit/use android:label from manifest!

2010-10-12 Thread Dimitris
layout to it? On Wed, Oct 13, 2010 at 12:13 AM, Dimitris dnkou...@gmail.com wrote: I have a custom title bar that I would like to apply to all my activities. I have searched online and found a few ways of doing that however I have ran into a problem. It seems that despite the fact I

[android-developers] Re: Custom title bar with TextView and id @android:id/title does not inherit/use android:label from manifest!

2010-10-12 Thread Dimitris
that the title bar would always contain a texview with this id. So, the best bet I would suggest is go for a theme with no default title, and add a custom view which looks like a title. You will then have full control over it. On Wed, Oct 13, 2010 at 1:23 AM, Dimitris dnkou...@gmail.com wrote: I

[android-developers] Re: Custom title bar with TextView and id @android:id/title does not inherit/use android:label from manifest!

2010-10-12 Thread Dimitris
that without having to pick up the value from the manifest and setting it to the title. Once you mention that you are using a custom title, the default things don't work. It thinks that you will set a custom title yourself, so it doesn't do it. On Wed, Oct 13, 2010 at 1:54 AM, Dimitris dnkou

[android-developers] Re: Custom title bar with TextView and id @android:id/title does not inherit/use android:label from manifest!

2010-10-12 Thread Dimitris
up the value from the manifest and setting it to the title. Once you mention that you are using a custom title, the default things don't work. It thinks that you will set a custom title yourself, so it doesn't do it. On Wed, Oct 13, 2010 at 1:54 AM, Dimitris dnkou...@gmail.com wrote

[android-developers] Re: How to make linkable TextView with Linkify

2010-10-13 Thread Dimitris
I think you might have to call setMovementMethod() on your textview. See: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/text/Link.html On Oct 11, 11:09 am, Marco Rocco mr8...@gmail.com wrote: I would make a textview linkable, and i have tried with this

[android-developers] HEAP size increase on every Http post request

2009-06-01 Thread Dimitris
Hey all, I am looking for some help regarding a memory issue. I make multiple POST requests on a REST server to receive data based on the user action. Everything seems to work fine with no problem but on my login screen the user enters his credentials to login. The credentials are checked

[android-developers] Re: UnknownHostException on 1.5 emulator

2009-06-08 Thread Dimitris
I too get the same problem on emulator 1.5. After multiple test sessions suddenly the connection to the emulator hangs. I cannot use view my apps heap, threads or access any URI from the emulator. I have to restart the emulator to fix this. Hopefully this does not happen on my ADP1 coming here

[android-developers] Re: Conversion to Dalvik format failed with error 1

2010-12-16 Thread Dimitris
Check your project dependencies, go to Window - Properties - Android - Build and put it on Verbose. Then use the console to see (make sure Console view is Android instead of DDMS) and see if there is an error there. On Dec 15, 10:51 pm, sumanth ag.suma...@gmail.com wrote: Hi Christopher, I

[android-developers] Re: onBufferingUpdate What is the progress argument

2011-01-09 Thread Dimitris
I believe it means that the MediaPlayer is currently buffering and the progress of buffering is indicated by the 'progress' variable. If it reaches 100 it means the MediaPlayer has buffered enough and it can continue playing... -- You received this message because you are subscribed to the

[android-developers] Re: How to develop an mp3 player on android platform

2010-10-21 Thread Dimitris
Read and study how MP3s work and how to read them. There is an MP3 header which consists of info about the song (like IDv3 etc) and it is followed by a bunch of MP3 frames. That should give u a good start. On Oct 20, 7:17 pm, zamesking zames.k...@gmail.com wrote: Hi, I am just getting into

[android-developers] Re: Prevent Rooted phones to access sqlite db and preferences

2010-11-01 Thread Dimitris
Encrypt your data when writing to DB and decrypt when you read. Might make ur app a tiny bit slower but you might be better off. On Oct 27, 6:25 pm, Byron Penner bapenner...@gmail.com wrote: In cases where u absolutly need to maintain secure data obfusticate the data before sasving to the db.

[android-developers] Best practices for automatic retrying of AsyncTask

2011-02-06 Thread Dimitris
Hey guys, I have a base abstract class that all my asynctasks extend from. I have built in error handling for network errors where I display a dialog to the user telling them they can retry their request (after all it was a network error...). I am having a bit of a problem retrying my

Re: [android-developers] Best practices for automatic retrying of AsyncTask

2011-02-06 Thread Dimitris
Yes it is necessary. The base abstract class provides all the plumbing for posting an HTTP request and handling exceptions while allowing subclasses to do their actual work. I would hate for each asynctask to write network error handling. The problem is, I cant find a proper way to

Re: [android-developers] Best practices for automatic retrying of AsyncTask

2011-02-07 Thread Dimitris
Could you please elaborate more and make an example? As for the Harmony HTTP API, yes it does have automatic retrying but at the end it will fail if a network error occurred (UnknownHostException, SocketTimeoutException etc...). I would need the user to initiate a retry then. Thank you! --

[android-developers] Re: showDialog(int id) vs dialog.show()

2011-02-09 Thread Dimitris
I cant seem to find an Edit post button. I basically want to ensure my dialog is automatically managed but also be able to pass along information either onPrepareDialog or onCreateDialog. I've seen on Android 2.2 you can pass a Bundle but I am building my app based on 2.1 and this method is

[android-developers] showDialog(int id) vs dialog.show()

2011-02-09 Thread Dimitris
Hi all, I recent ran across this questionhttp://stackoverflow.com/questions/3170308/dialog-show-vs-activity-showdialog on StackOverflow which has no real valid response or perhaps best practice. I am pasting the question below for your convenience: As far as I can tell, there are two ways to

[android-developers] Re: Is the limit of memory heap only 6M?

2009-06-30 Thread Dimitris
I would read an image slowly using a buffer if you want to avoid this. If you are trying to display the image use BitmapFactory.Options and increase the sample size to reduce the quality of the image but gain in memory. Also, whenever you are done using a bitmap and you know it is not needed

[android-developers] Re: How to cancel a connection ?

2009-06-30 Thread Dimitris
I believe there is a conn.disconnect() and as you mentioned it is always good to close() the inputstream. I assume this operation occurs in another thread instead of the UI thread. Take a look at the asynctask class offered with 1.5. You can call cancel on the thread and raise the onCancelled()

[android-developers] ListView (ExpandableListView as well) selector highlight problems with custom background

2009-07-13 Thread Dimitris
? Thanks, Dimitris --~--~-~--~~~---~--~~ 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

[android-developers] Re: ListView (ExpandableListView as well) selector highlight problems with custom background

2009-07-13 Thread Dimitris
Anyone? On Jul 13, 11:30 am, Dimitris dnkou...@gmail.com wrote: Hey all, I have an expandable list with a custom adapter. Everything works great but there are two problems. First whenever a group or child has a custom background color set the orange selector does not show up. If I

[android-developers] Re: ListView (ExpandableListView as well) selector highlight problems with custom background

2009-07-14 Thread Dimitris
Why is noone ever responding here? On Jul 13, 10:42 pm, Dimitris dnkou...@gmail.com wrote: Anyone? On Jul 13, 11:30 am, Dimitris dnkou...@gmail.com wrote: Hey all, I have an expandable list with a custom adapter. Everything works great but there are two problems. First

[android-developers] Re: ListView (ExpandableListView as well) selector highlight problems with custom background

2009-07-15 Thread Dimitris
, Dimitris On Jul 15, 4:50 am, Mark Murphy mmur...@commonsware.com wrote: Dimitris wrote: Why is noone ever responding here? Thousands of messages appear on this list every week. Not all get answered. In some cases, those who read the question may not know the answer. For example, I have no idea

[android-developers] Re: how to draw a simple shape according to compass data

2011-02-24 Thread Dimitris
to draw a rectangle. But how can I make this rectangle moving according to azimuth value? Can anyone help me? Hi, we are looking for something like this with my friends in order to use it in our hiking routes. Have you solve your problem? Could you give us some solutions? Thanks, Dimitris

[android-developers] Google Maps Javascript API for android Application

2011-07-14 Thread Dimitris
Hi! I would like to create an android application, where users will be able to see the position of the other users on the map. This may sound awkward but I have something on my mind. My question is how to make that possible? How to put a mark of my users on Google Maps and how to show this to the

[android-developers] Broken Android Studio GUI on Windows 10

2016-01-28 Thread Dimitris Poulopoulos
Hello! I have a strange problem. The GUI of the Android Studio is broken and I don't know what's wrong. -- 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