[android-developers] Re: Geocoder nightmare

2011-07-03 Thread Ali Chousein
Your code should work without problems. I use very similar code in my application and it just works. For Geocoder you need to set android.permission.INTERNET in your manifest file. Did you do this? -- Ali Chousein Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com

[android-developers] Re: what is the difference between an Install and an active install?

2011-07-03 Thread Ali Chousein
Active installs is relevant when you expect revenue from advertisements I guess. Raghav and Kostya are right; the statistics in the Developer Console is a joke. The first week when I published my application, active installs was higher than installs for 2 days! How about that? :-) -- Ali

[android-developers] Re: Async Task

2011-07-03 Thread Ali Chousein
activity can start multiple AsyncTasks just the way it can start multiple threads. Follow the suggestions of Nikola on how to update your GUI within an AsyncTask. If you miss that your application will consistently crash. -- Ali Chousein Geo-Filtered Assistant http://geo-filtered

[android-developers] Re: Three line ListView question

2011-07-02 Thread Ali Chousein
you have something to add. -- Ali Chousein Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com/ On Jul 2, 6:51 am, arudzki tony.rud...@gmail.com wrote: All, I would like to know if something is possible, and if I could get a hint or two on how to do it.  I want to use

[android-developers] Re: factory reset tips

2011-07-02 Thread Ali Chousein
Do you need to backup your contacts in this case? I would guess that your contacts are also in your G-mail and once you synchronize your phone with your G-mail again, you should automatically get them on your phone. -- Ali Chousein Geo-Filtered Assistant http://geo-filtered

[android-developers] Re: DoNut Eat

2011-07-02 Thread Ali Chousein
You need POI database which stores the location of shops selling Dunkin Donuts, I doubt that you'll be able to get such database for free and this group cannot help providing you with such information. You may try to contact companies selling maps. -- Ali Chousein Geo-Filtered Assistant

[android-developers] Re: Exit function in android application

2011-07-01 Thread Ali Chousein
. Calling the finish method of all activities would ensure that they are gracefully destroyed. If there is a better and more concise alternative, I would be happy to learn it. -- Ali Chousein Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com/ On Jul 1, 6:14 am, nageswara rao

[android-developers] Bundle.toString() and then create a Bundle from String

2011-07-01 Thread Ali Chousein
information on this. Of course I don't wish to parse _strBundle myself and hope that the framework already provides a String2Bundle sort of a functionality. -- Ali Chousein Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com/ -- You received this message because you

[android-developers] Re: Bundle.toString() and then create a Bundle from String

2011-07-01 Thread Ali Chousein
:-) -- Ali Chousein Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.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

[android-developers] Re: Fireworks app

2011-06-30 Thread Ali Chousein
Congratulations!!! I also uploaded to Youtube the most fantastic goal I ever scored in indoor soccer. Would you like to watch it? -- Ali Chousein Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com/ On Jun 29, 3:17 pm, July 4th fireworks joeyk@gmail.com wrote: Hi my

[android-developers] Re: Fireworks app

2011-06-30 Thread Ali Chousein
Do I need iPad? Actually you can watch it only on a system which has decent support of multitasking. If you have a super expensive, yet not that useful device with zillions of restrictions (and I'm not mentioning any names), I'm afraid you cannot enjoy it. -- Ali Chousein Geo-Filtered

[android-developers] Re: How do I know in the screen EditText is the last one?

2011-06-29 Thread Ali Chousein
The link http://developer.android.com/reference/android/view/View.html explains View::isFocused(). This should help you solve your problem. How exactly it's going to help you, it depends on your situation and you should implement your own solution. -- Ali Chousein Geo-Filtered Assistant

[android-developers] Re: latitude and long sample code required

2011-06-29 Thread Ali Chousein
into the corresponding longitude- latitude, then have a look at http://developer.android.com/reference/android/location/Geocoder.html Once again, there are plenty of examples on the internet. If I remember it right, the books of Mark Murphy also explain both with good examples. -- Ali Chousein Geo

[android-developers] Re: two list in a screen

2011-06-29 Thread Ali Chousein
I've never tried this, but putting them in a RelativeLayout might work. At least, in the new application I'm developing now, I was able to successfully put ListView with many other controls in a RelativeLayout. -- Ali Chousein Geo-Filtered Assistant http://geo-filtered

[android-developers] Re: How to remove XML child having same name

2011-06-29 Thread Ali Chousein
the internet for 'SAX parser' to find more examples. -- Ali Chousein Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com/ On Jun 28, 7:05 am, HariRam hariram1...@gmail.com wrote: Hi all, Thanks for valuable replies. I have two node having same name with different data. i want

[android-developers] Re: CursorAdapter over multiple columns

2011-06-29 Thread Ali Chousein
Probably you need to implement your own custom adapter for that. Google for 'android custom adapter' and you'll find examples which will guide you solve your problem. -- Ali Chousein Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com/ -- You received this message because

[android-developers] Re: ListView is no clickable

2011-06-28 Thread Ali Chousein
Manish, A very basic question, but did you by change forget to put @Override before the declaration of setOnItemClickListener? -- Ali Chousein Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com/ -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: Beginning with Android App development

2011-06-27 Thread Ali Chousein
to experiment with the SDK If you have only scripting experience and no experience with languages like Java/C++/C# take your time to get used to Java a bit. Good luck, -- Ali Chousein Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com/ -- You received this message because you

[android-developers] Re: authentication of an app in facebook

2011-06-24 Thread Ali Chousein
try to stop the majority of the discussions. Do it like the rest of us. If you don't have anything to say, please don't react. It's easier. Some of the members are really newbies, but probably eager to learn and also with talent. Don't forget, you also used to be a newbie. -- Ali Chousein Geo

[android-developers] Re: authentication of an app in facebook

2011-06-24 Thread Ali Chousein
anybody. Period. -- Ali Chousein Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.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

[android-developers] Re: authentication of an app in facebook

2011-06-24 Thread Ali Chousein
anybody. Period. -- Ali Chousein Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.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

[android-developers] Re: authentication of an app in facebook

2011-06-24 Thread Ali Chousein
anybody. Period. -- Ali Chousein Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.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

[android-developers] Re: SAX parser crashes with Permision Denied exeption message when retriving google weather XML.

2011-06-22 Thread Ali Chousein
AFAIK, Google weather API is an undocumented API. This means they can change it anytime based on their own needs and you'll have no reason to complain. You may try alternative sources for weather information. One such source which I'm investigating now is http://www.worldweatheronline.com/ I

[android-developers] Recently released: Geo-Filtered Assistant

2011-06-21 Thread Ali Chousein
Hi, I recently released an enhanced version of my free application Geo- Filtered Assistant. More information about the application can be found here: http://geo-filtered-assistant.blogspot.com/ For comments and suggestion please contact me. Thank you all in advance. -Ali -- You received this

[android-developers] Re: Upload image to server

2011-06-03 Thread Ali Chousein
Please check the Facebook Graph API - http://developers.facebook.com/docs/reference/api/ I've not used Graph API for uploading images but most probably it's possible. Facebook also provides an Android SDK which clearly shows how you can use the Graph API and get started very fast.

[android-developers] Re: Linkedin integration in Android

2011-06-03 Thread Ali Chousein
I've successfully integrated LinkedIn in my application, Geo-Filtered Assistant. Which library are you using for retrieving your access token and also for signing your requests? I've used signpost. (http:// code.google.com/p/oauth-signpost/) If you also use signpost you can follow the examples at

[android-developers] Application icon not shown under Samsung Galaxy S

2011-06-03 Thread Ali Chousein
Hi, The icon of my application is not displayed under Samsung Galaxy S; the default Android icon is displayed instead. My target platform is Google APIs 2.1-update1. Has anybody faced a similar problem before? Cheers, -Ali -- You received this message because you are subscribed to the Google

[android-developers] Re: Regarding asynchronous communication in Android.

2011-06-01 Thread Ali Chousein
You can achieve it by not making your communication synchronous. Set aside jokes, please have a look to the link TreKing posted. On May 30, 2:30 pm, cherry e cherry@gmail.com wrote: Hi     I am new to Android. I want to know how would we achieve asynchronous communication in android. for

[android-developers] Re: 回覆:facebook

2011-05-30 Thread Ali Chousein
What??? The official Facebook app has nothing to do with the app you develop, which integrates Facebook API. Of course you need to retrieve your app secret from Facebook and put it in the code of your application. The official Facebook app and your app are two completely different things. And

[android-developers] Re: 回覆:Re: 回覆:facebook

2011-05-30 Thread Ali Chousein
Warenix, First, it was not me who asked the question, I answered to Bob's post. Second, it's very poor practice to make one application depend on another. Once again, an application should be developed on a stand- alone way; its correct execution should not depend whether a user installed some

[android-developers] Re: Career as an Andoid developer. Is there any point?

2011-05-29 Thread Ali Chousein
Like any occupation, unless you're some sort of savant you need to spend about 2000 hours (a year) working at it to achieve basic competence, and 10,000 hours (five years) to become an expert.  If you're not prepared to spend that sort of time working at it, then find a different occupation.

[android-developers] Re: Career as an Andoid developer. Is there any point?

2011-05-28 Thread Ali Chousein
Chris if you read the more recent messages I wrote you'll see that I'm not evangelizing poor architectural design or poor implementation. My experience in the industry showed me that project management methodology and architectural design/implementation go hand in hand. I strongly believe in the

[android-developers] Re: easy facebook android sdk library

2011-05-27 Thread Ali Chousein
I don't know what that parameters is about, but in general you need to create an application at the Facebook site and you get back a key. Using that key in your application is enough to start communicating with Facebook. On May 27, 12:35 am, bob b...@coolgroups.com wrote: Can someone help me

[android-developers] Re: Career as an Andoid developer. Is there any point?

2011-05-26 Thread Ali Chousein
with broken chasses, and work animals with broken backs? I've heard some crazy statements in my day, but this one has to be near the top of the list. -Original Message- From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Ali Chousein Sent

[android-developers] Re: Career as an Andoid developer. Is there any point?

2011-05-26 Thread Ali Chousein
To eliminate misunderstandings, I would like to make the following additions: By iterative approach, I mean the short release cycles which also enables you to get immediate feedback and evaluate if you are heading on the right direction. I guess this is exactly what you mean by Agile is

[android-developers] Re: Career as an Andoid developer. Is there any point?

2011-05-26 Thread Ali Chousein
Dan, what you write is correct, but this applies in business in general, no matter which field you function in. This fact has nothing to do with whether a platform has been designed well or poorly. Without the ecosystem of a company it always is and will always be difficult, tricky and risky to

[android-developers] Re: Career as an Andoid developer. Is there any point?

2011-05-26 Thread Ali Chousein
Dianne, talking about limitations, as a developer I'm not happy at all with the fact that Android does not support an official interface for reading SMS messages (simple, the ones that you've received and sent) and e-mails. I don't understand why the Android designers didn't include this in the

[android-developers] Re: Career as an Andoid developer. Is there any point?

2011-05-26 Thread Ali Chousein
I understand the priorities. What I mean by extremely simple to do is, there is the well designed ContactsContract API, which can easily be extended to support reading SMS and e-mails as well. However, life is life, and different people have different priorities. It's understandable, although not

[android-developers] Re: Career as an Andoid developer. Is there any point?

2011-05-26 Thread Ali Chousein
Greg, changing requirements is not a mind-set of managers, but it's a reality of life. High-tech market is very dynamic and if you want to adhere to original specs you'll soon go out of business. Seriously, do you think that managers are happy when the original specs change, the deadlines are

[android-developers] Re: Career as an Andoid developer. Is there any point?

2011-05-25 Thread Ali Chousein
Dan, It doesn't matter how many f*g years you've spent in the industry, but it DOES matter what f*g thing(s) you've achieved. As you age you build(!) experience, even if you are just sitting behind a desk and surfing the internet anyway. Well, Android is one of those f*g things which

[android-developers] Re: What did you use to create your launcher icon for your app?

2011-05-25 Thread Ali Chousein
GIMP, it's free and very powerful. -- 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] Re: Career as an Andoid developer. Is there any point?

2011-05-25 Thread Ali Chousein
the night, some of this has been downright unprofessional, and not something I'd want on a publicly indexed list. Kris On Wed, May 25, 2011 at 3:02 AM, Ali Chousein ali.chous...@gmail.comwrote: Dan, It doesn't matter how many f*g years you've spent in the industry, but it DOES matter

[android-developers] Re: Career as an Andoid developer. Is there any point?

2011-05-25 Thread Ali Chousein
Dan, Religion says, My God is more good looking than your God. If you ask the person Why?, he/she would say Because my holy book says so. Well, you came and said Android has no legs and many people asked you what makes you say so. You kept on saying just two things: 1. My 40+ years experience in

[android-developers] Re: new to android

2011-05-25 Thread Ali Chousein
http://developer.android.com/sdk/index.html Everything is explained on this web site. Good luck and enjoy it. -- 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

[android-developers] Re: Career as an Andoid developer. Is there any point?

2011-05-25 Thread Ali Chousein
Dan, you are looking from a very classical point of you. I mean the following: 1. how much impact these 'limiting decisions' will have in the future... 2. thanks to good initial design (or sometimes just clever emulation), are able to advance their platforms while still maintaining

[android-developers] Re: comparison of Thread vs Asynctask in android?

2011-05-19 Thread Ali Chousein
Keep in mind that Asynctask is provided for finite tasks. If you need to have a thread which should run forever, don't use Asynctask, but use Thread. -Ali -- 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] Re: Retrieve the Starred Contacts

2011-05-19 Thread Ali Chousein
Prabhakar, So far I've done some programming with Android contacts. I have much sample code except the starred contacts. However it should be straightforward. Check the link below. Personally I found it possible to get everything running by following the documentation of ContactsContract. There

[android-developers] Re: A PROBLEM WITH HELLO WORLD

2011-05-19 Thread Ali Chousein
Wait for a couple of minutes for the emulator to start. It takes some time. Be patient. -- 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,

[android-developers] Re: comparison of Thread vs Asynctask in android?

2011-05-19 Thread Ali Chousein
Using Asynctask to download files is fine I think (given that you handle correctly the error cases; e.g. target server might be down etc etc). On May 19, 2:25 pm, Hitendrasinh Gohil hitendra.virtuei...@gmail.com wrote: hi, i am using thread to retrieve string data from server and asynctask to

[android-developers] Re: Twitter support

2011-05-18 Thread Ali Chousein
It's strange that this and similar questions appear over and over again in this list. Does Android support Twitter, does Android support Facebook etc etc. Guys, let's get it clear. Android has no reason to implement specifically Twitter support or Facebook support. The Android framework provides

[android-developers] Re: onBackPressed to hide Not destroy activity

2011-05-10 Thread Ali Chousein
I agree with Muhammad. Save your instance state and restore it when necessary, instead of trying to do something against the framework. -Ali -- 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] Re: Update Contacts

2011-04-30 Thread Ali Chousein
Hhhmmm, maybe you should try newUpdate(ContactsContract.Data.CONTENT_URI) instead of newUpdate(ContactsContract.Contacts.CONTENT_URI) I hope it helps :-) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] Re: How to prevent my application from being killed?

2011-04-28 Thread Ali Chousein
a) Don't do time consuming calculations in the main thread. If you do, the man thread gets blocked and your application will be killed by the framework. If you need to do time consuming calculations, use threads for that purpose. If you don't block the main thread, the framework is not going to

[android-developers] Re: Update Contacts

2011-04-28 Thread Ali Chousein
Can you post your code? -- 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

[android-developers] Re: Update Contacts

2011-04-28 Thread Ali Chousein
Hhhmmm, I'm not exactly sure what is wrong with your syntax. I have another blog which gives a full fledged example, in which newUpdate is used. I'm sure that, the example with newUpdate in that blog works. Maybe you may try to follow the syntax there. The address is:

[android-developers] Re: Update Contacts

2011-04-28 Thread Ali Chousein
Thank you Phuong, sharing information is what we do. -- 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] Re: Update Contacts

2011-04-27 Thread Ali Chousein
Please check my blog at the address http://android-contact-id-vs-raw-contact-id.blogspot.com/ the section PROGRAMMATICALLY INSERT A CONTACT INTO A DESIRED GROUP. With the piece of code I give there, the contact is displayed in your contacts list. In the past I also had similar problems to yours

[android-developers] Re: Update Contacts

2011-04-27 Thread Ali Chousein
Hi Stefan, I would advice you to use ContentProviderOperation because this has the advantage of applying many operations in batch mode. It'll help you with speed improvements. But be careful how you should use the RAW_CONTACT_ID. If you have close look to the example, it should be obvious I

[android-developers] Re: Heap size - why so small?

2011-04-23 Thread Ali Chousein
48MB is (or better should be) good enough memory for any app. What do you want to keep in memory? The world map with a rich set of POIs? On Apr 22, 10:30 pm, Fabio Yasusi Yamamoto fabi...@gmail.com wrote: Hi I'm trying to understand why the heap size of a single application is so small. I

[android-developers] Re: hi, help a newbie :)

2011-04-21 Thread Ali Chousein
Is this possible to implement Of course it's possible! It just needs work and hours and hours of researching, experimenting and learning. and if so, just give me an overall view to start this app construction Well, anything else? How about a complete source code with your name as the

[android-developers] Re: How to create ScrollView and LinearLayout Programatically

2011-04-18 Thread Ali Chousein
Mohammed, I paste a snippet from my own software. I hope it helps. If you spends half an hour reading the documentation it should be clear actually because the idea is very simple. -Ali LinearLayout m_LinLayout; ScrollView m_Scroll; ImageView m_Img; TextView m_TxtCol; m_LinLayout = new

[android-developers] Explanation of CONTACT_ID vs RAW_CONTACT_ID

2011-04-16 Thread Ali Chousein
I wrote a blog explaining a brief study I did on CONTACT_ID vs RAW_CONTACT_ID. It can be found at the following location: @Blogger http://android-contact-id-vs-raw-contact-id.blogspot.com/ @Hyves

[android-developers] How to insert and update email addresses in Android contacts

2011-04-10 Thread Ali Chousein
Started blogging on Android software development: http://email-addresses-in-android-contacts.blogspot.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

[android-developers] Re: how to connect gps in android emulator

2010-12-17 Thread Ali Chousein
. Use emulator commands to send location information to your emulator. e.g. geo fix longitude latitude You can find more information here: http://developer.android.com/guide/developing/tools/emulator.html#geo Good luck, Ali Chousein Published apps: - Geo-Filtered Assistant Pro - Geo-Filtered

[android-developers] Re: ListView disappears after orientation change

2010-12-06 Thread Ali Chousein
When you change the orientation, your ListActivity will be created from scratch. This means that onCreate, onStart and onResume will be called for the newly created ListActivity after the orientation change. Did you take care of this behavior? Ali Chousein Published apps: - Geo-Filtered

[android-developers] Re: Android 2.3 not handling orientation change properly - screen is not redrawn

2010-12-06 Thread Ali Chousein
in the debugger to see if you are also getting the extra call to onDestroy-onCreate pair. If yes, then you'll have to add some extra logic in your code to take care of this dubious extra call. Ali Chousein Published apps: - Geo-Filtered Assistant Pro - Geo-Filtered Assistant Basic (free version

[android-developers] Re: How to turn On and Off the GPS?

2010-12-06 Thread Ali Chousein
of LocationManager) When you are using the GPS you need the following permission in your manifest: uses-permission android:name=android.permission.ACCESS_FINE_LOCATION/ Ali Chousein Published apps: - Geo-Filtered Assistant Pro - Geo-Filtered Assistant Basic (free version) -- You received this message

[android-developers] Re: Sync and GPS Intents name

2010-12-03 Thread Ali Chousein
Hi, For turning on GPS satellites I use the intent below. Hope that helps you as well. Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS); Ali Chousein Published apps: - Geo-Filtered Assistant Pro - Geo-Filtered Assistant Basic (freeware version) -- You received

[android-developers] Re: Free version to Paid version

2010-12-03 Thread Ali Chousein
of your paid app. Good luck, Ali Chousein Published apps: - Geo-Filtered Assistant Pro - Geo-Filtered Assistant Basic (freeware version) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android

[android-developers] Re: App compatible with 1.5 and 2.2

2010-11-29 Thread Ali Chousein
. Ali Chousein Published apps: - Geo-Filtered Assistant Pro - Geo-Filtered Assistant Basic (free version) -- 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

[android-developers] Re: Getting UnsupportedOperationException when inserting a contact from third party appliaction!!!

2010-11-29 Thread Ali Chousein
Hi, I assume that you set the right permission in your manifest file (e.g. uses-permission android:name=android.permission.WRITE_CONTACTS /) Ali Chousein Published apps: - Geo-Filtered Assistant Pro - Geo-Filtered Assistant Basic (freeware version) -- You received this message because you

[android-developers] Re: unable to send co-ordinates from emulator control to the emulator

2010-11-27 Thread Ali Chousein
Hi Khushi, I developed an app which uses GPS and have been heavily using the command geo fix longitude latitude. I've never had issues with sending dummy location information to the emulator. Except once, when my computer was not connected to the Internet. I don't know why, but it seems that the

[android-developers] Re: google sky map

2010-11-27 Thread Ali Chousein
Check the MapView in the following link: http://developer.android.com/guide/tutorials/views/index.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

[android-developers] Re: Binary sms?

2010-11-27 Thread Ali Chousein
Check the link below. You can do all sorts of things with the emulator. http://developer.android.com/guide/developing/tools/emulator.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] Re: Is it possible to pass an intent from one device to another?

2010-10-16 Thread Ali Chousein
If the devices are in bluetooth range, you can send your data using bluetooth. Otherwise you might consider sending the data through e- mail or if you want to pay, you can use SMS as Kumar suggested. Check the documentation, I'm sure it's easy to find our how to capture the related events. --

[android-developers] Re: Unable to sign jar

2010-10-10 Thread Ali Chousein
Actually I cleaned the project, but it didn't help. It's a pity that I cannot reproduce it. Otherwise would have reported the bug. -- 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] Re: How to change the e-mail address programmatically?

2010-10-10 Thread Ali Chousein
After studying more in detail ContactMethods, I realized that I was using the wrong ID. Below is the code excerpt which does the job correctly. Hope it helps someone else as well. -Ali . . private static final int PEOPLE__ID_COLUMN_INDEX = 0; private static final int PEOPLE_NAME_COLUMN_INDEX =

[android-developers] Re: How to use getContentResolver().update in combination with getContentResolver().query?

2010-10-10 Thread Ali Chousein
This is what I was trying to do: . . private static final int PEOPLE__ID_COLUMN_INDEX = 0; private static final int PEOPLE_NAME_COLUMN_INDEX = 1; . . . String[] projectionPeople = new String[] { People._ID, People.NAME }; Cursor peopleCur = getContentResolver().query(People.CONTENT_URI,

[android-developers] Re: Unable to sign jar

2010-10-09 Thread Ali Chousein
It seems that it's a bug in Eclipse. I use 3.5. Besides the corrupted apk, my eclipse started behaving quite weird (like remembering the contents of the manifest file of a project I removed and also erased from my hard disk). Anyway, I erased the instance of eclipse from my hard drive,

[android-developers] Re: How to change the e-mail address programmatically?

2010-10-06 Thread Ali Chousein
No, unfortunately I don't see any related message in the logcat. -- 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] Re: How to change the e-mail address programmatically?

2010-10-06 Thread Ali Chousein
Hi, Yes, I have both of the permissions below in the manifest file. If the permissions are not set correctly then the application should crash anyway. uses-permission android:name=android.permission.READ_CONTACTS / uses-permission android:name=android.permission.WRITE_CONTACTS / Yes, I'm sure

[android-developers] Unable to sign jar

2010-10-06 Thread Ali Chousein
Hi, I'm surprised to see that all of a sudden I cannot sign the apk of the newer versions of an app that I have. After some bugfixes I need to upload an update and hence I need to sign the apk. However, when I execute the following command: jarsigner -verbose -keystore

[android-developers] How to change the e-mail address programmatically?

2010-10-05 Thread Ali Chousein
Hi I'm trying to change the e-mail address info of some contacts programmatically. I have the following contact: Name: John Patrick Phone: 1234567890 ID: 15 E-mail: j...@univ.edu (The type is work e-mail) I'm using the following code to change the e-mail address programmatically:

[android-developers] How to use getContentResolver().update in combination with getContentResolver().query?

2010-09-29 Thread Ali Chousein
Hello, I would like to use getContentResolver().update in combination with getContentResolver().query. For example, first I make a call to Cursor cur = getContentResolver().query(People.CONTENT_URI, null, null, null, null); and then I would like to use getContentResolver().query to change for

[android-developers] Dubious extra call to OnCreate on orientation change

2010-06-20 Thread Ali Chousein
Hi, I've been experimenting with orientation change and have seen a strange behavior (at least to my opinion) when I change the orientation from landscape to portrait. To make the explanation more concrete let's consider the following super-simple code: 1. import android.app.Activity; 2.

[android-developers] Re: Dubious extra call to OnCreate on orientation change

2010-06-20 Thread Ali Chousein
Hi, Thank you for the reply. The page gives useful information. However, it does not explain why the extra call to onCreate and onDestroy takes place when the orientation is changed from landscape to portrait. When the orientation is changed from portrait to landscape there is no extra call to

[android-developers] Re: Calling wait in AsyncTask (e.g. inside doInBackground) raises IllegalMonitorStateException

2010-06-06 Thread Ali Chousein
Guys, thank you all for your suggestions and comprehensive explanation. I think LinkedBlockingQueue sounds the most attractive way to go. -- 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] Re: Calling wait in AsyncTask (e.g. inside doInBackground) raises IllegalMonitorStateException

2010-06-06 Thread Ali Chousein
By the way, guys, below please find my code. I was trying to use wait() inside synchronization. I have the same logic working perfectly fine in the scenario when the main thread cancels an AsyncTask and waits for it to finish. Whether there will be deadlock or not, depends on the implementation

[android-developers] Calling wait in AsyncTask (e.g. inside doInBackground) raises IllegalMonitorStateException

2010-06-05 Thread Ali Chousein
Hi, I have two AsyncTasks running; let's say A1 and A2. A2 is manipulating the data produced by A1 (in fact is a typical producer-consumer scenario). It's very tempting to use wait() inside doInBackground() implementation of A2, BUT this causes an IllegalMonitorStateException. Is it really not

[android-developers] Re: Calling wait in AsyncTask (e.g. inside doInBackground) raises IllegalMonitorStateException

2010-06-05 Thread Ali Chousein
Thank you for the reply and the suggestion. Having two threads, one waiting for the other was the best solution for my problem, but apparently calling wait() in AsyncTask is not supported. Probably I'll have multiple AsyncTasks, which don't wait for each other, but which combine subsets of the

[android-developers] How to read Gmail programmatically?

2010-03-27 Thread Ali Chousein
Hi, I'm trying to query the e-mails from my Gmail account in source code. I've tried various combinations for the URI but the cursor returned is always null. Has anyone managed to retrieve emails programmatically from Gmail? Some combinations I tried for the URI are below (as I mentioned above,

[android-developers] Re: How to query to content://sms/conversations?

2010-03-23 Thread Ali Chousein
Apparently it's not possible to execute the query: Cursor cur = this.getContentResolver().query(Uri.parse(content://sms/ conversations), null, null, null, null); I tried all sms related permissions, but always got an exception. However, it's possible to execute the following instead: Cursor

[android-developers] How to query to content://sms/conversations?

2010-03-22 Thread Ali Chousein
Hi, I'm trying to query the sms conversations list. I execute the following line of code: Cursor cur = this.getContentResolver().query(Uri.parse(content://sms/ conversations), null, null, null, null); I also set the following permission in the manifest file: uses-permission

[android-developers] Documentation on SMS Content Provider?

2010-03-21 Thread Ali Chousein
Hi, Does anyone know if there is documentation explaining the SMS content provider? -Ali -- 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

[android-developers] Re: Documentation on SMS Content Provider?

2010-03-21 Thread Ali Chousein
Clear, thanks for the answer. -Ali -- 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] Re: Override default icons of BaseExpandableListAdapter

2010-03-16 Thread Ali Chousein
Hi, thank you for the message. I came up with this approach as well. Finally I was happy to see a decent way of configuring the icons of an ExpandableListView. The trick lies in having a stateful Drawable for the group indicator. When I find time I'll post a code excerpt as well, because I

[android-developers] Re: Override default icons of BaseExpandableListAdapter

2010-03-16 Thread Ali Chousein
TreKing, Maka, Thank you for your attention and messages during this discussion. I posted a very simple example showing a decent way (at least I believe that it's decent) of overriding the default icons of an ExpandableListView. I pasted the location below. Hopefully it will be useful for people

[android-developers] Configuring the icons of an ExpandableListView - A simple example

2010-03-16 Thread Ali Chousein
Hi, Recently I was trying to configure the icons of an ExpandableListView. As many people would do, I was trying to replace the default icons for the minimized and maximized states. As it appears, doing this basic thing it's not that straightforward as one would expect/guess. There are not many

[android-developers] Re: Override default icons of BaseExpandableListAdapter

2010-03-15 Thread Ali Chousein
TreKing, thank you for your messages so far. I won't give up for some more days and will try to make it work. If I find a way I'll share with the group as well, because as it seems many other people attempted doing what I try to do now and faced similar issues. -- You received this message

[android-developers] Re: Override default icons of BaseExpandableListAdapter

2010-03-15 Thread Ali Chousein
Hi Maka, Thank you for your message. Stretching is not the main problem though. As I wrote above, changing the icon based on the state of a group is the main problem. Anyway, finally I could find some time to sit down to see this problem again. I'll investigate it for some more time. Hope to come

<    1   2   3   4   5   >