[android-developers] best way

2011-06-10 Thread ABSOLUT
Hi, I'm newbie programming in java and android and I have a doubt. I need check connectivity of the phone in a widget and in one activity. How would be the best way to program it? Creating a class that do the connectivity check and use it in the widget and in the activity? Many thanks and sorry

Re: [android-developers] Java Generics question (Using AsyncTask)...

2011-06-10 Thread Nikolay Elenkov
On Thu, Jun 9, 2011 at 9:31 AM, luciofm luci...@gmail.com wrote: In this case, with getSuperclassTypeParameter() I get the parameterized types of AsyncTask, and not of my own Class AsyncRequest... (parameterized.getActualTypeArguments()[0] is a String type). That's the way

[android-developers] question about Snake game in sample code-- getting the snake tiles on to same coordinate plane as SnakeView

2011-06-10 Thread rich friedel
I don't have access to the snake game code at the moment but if I had to guess, I'd say that the (7, 3) coords are where the touchevent takes place on the body part and (90, 40) refers to where the touchevent takes place in the entire view. -- You received this message because you are

Re: [android-developers] Android 3.1 is too slow

2011-06-10 Thread Marcin Orlowski
On Jun 10, 2011 6:33 AM, Raja Nagendra Kumar nagendra.r...@tejasoft.com wrote: Hi, Android SDK simulators are dead slow even on i7 machines with 16 GB ram.. How does others manage to use it for development.. doubt anyone uses 3.x simulators. you shall get real device if you do not like

Re: [android-developers] Making a service invisible

2011-06-10 Thread Marcin Orlowski
you cant (unless, perhaps you rooted). On Jun 10, 2011 7:32 AM, kampy narasimha1...@gmail.com wrote: Hi, i am making an mobile theft tracker application which indeed checks the sim details on boot up of the device and if the details are same the service stops and if not it will start sending

[android-developers] Re: Android 3.1 is too slow

2011-06-10 Thread Thomas
You either: 1. Accept its slow and continue to use it 2. Develop on a real device You should test it on a real device before deploying it anyway. On Jun 9, 9:32 pm, Raja Nagendra Kumar nagendra.r...@tejasoft.com wrote: Hi, Android SDK simulators are dead slow even on i7 machines with 16 GB

Re: [android-developers] Can I use a real phone and emulator in eclipse?

2011-06-10 Thread Marcin Orlowski
yes. enable debugging feature in system prefs (app - development). you may also need drivers for your phone (depends on model) On Jun 10, 2011 3:57 AM, Migazan eni...@gmail.com wrote: Hi, Can I use a real phone instead of a virtual device to develop in eclipse? -- You received this message

Re: [android-developers] How to use ListAdapter with Cursor

2011-06-10 Thread Marcin Orlowski
On Jun 10, 2011 3:40 AM, Jitendra jsdand...@gmail.com wrote: hi friends how we use ListAdapter with Cursor and why,because i have done application with ListView , ArrayAdapter and Cursor and the application run successfully so you basically asks someone to explain you your own code? -- You

Re: [android-developers] Dialog with no Activity?

2011-06-10 Thread Marcin Orlowski
you can also consider using activity - it does not have to go full screen (which seems to be your major concern) On Jun 10, 2011 3:38 AM, jtomasko j...@tomasko.net wrote: On the xoom tablet (3.1), after selecting a notification of a google calendar event, a dialog box (as far as I can tell)

[android-developers] Re: Making a service invisible

2011-06-10 Thread kampy
that means i have to have the super user permissions . and i have another probelm i am unable to stop this service from other activity this is code i wrote . this is not stopping the service private void StopTheftServiceRunning() { ActivityManager manager = (ActivityManager)

[android-developers] Re: How to get internal storage path for music

2011-06-10 Thread Goutham P N
I'm using Environment api but it is pointing to the sdcard only. but the tablet that am using is having different folders in its internal memory also. So is there any way to get access to that folders. On Jun 8, 12:24 am, RichardC richard.crit...@googlemail.com wrote: Try:

[android-developers] Building Android programs on the command line

2011-06-10 Thread Mark S.
A guideline that shows how to build Android programs using a command line environment only has been created: http://geosoft.no/development/android.html Comments and suggestions are appreciated. Thanks. Mark -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] Building Android programs on the command line

2011-06-10 Thread Kristopher Micinski
Might talk about how ant fits into this? Kris On Fri, Jun 10, 2011 at 3:03 AM, Mark S. jacob.dre...@geosoft.no wrote: A guideline that shows how to build Android programs using a command line environment only has been created: http://geosoft.no/development/android.html Comments and

[android-developers] Re: Can I use a real phone and emulator in eclipse?

2011-06-10 Thread ThaMe90
Don't forget to check the Unkown sources checkbox to be able to install the application from Eclipse. On 10 jun, 08:37, Marcin Orlowski webnet.andr...@gmail.com wrote: yes. enable debugging feature in system prefs (app - development). you may also need drivers for your phone (depends on model)

Re: [android-developers] Re: Can I use a real phone and emulator in eclipse?

2011-06-10 Thread Nikolay Elenkov
On Fri, Jun 10, 2011 at 4:16 PM, ThaMe90 theprophes...@gmail.com wrote: Don't forget to check the Unkown sources checkbox to be able to install the application from Eclipse. That is actually not needed. Eclipse installs apps via adb, which doesn't depend on that setting. -- You received this

[android-developers] Re: NFC: NDEF messages

2011-06-10 Thread andrew
I think with Google Tags app it only readd one Ndef message (one smart poster with url) - tbc Also many tags are small and it might be tough to get two messages on them... If you host the apk or have a url on your server that has a link or redirects to the apk in the market, then if you form the

Re: [android-developers] Re: New added folder to app

2011-06-10 Thread Miguel Morales
Not sure what you mean, what exactly is complicated? It might help if you explained what you're trying to do more clearly. I *think* there is a way of accessing folders and files that are bundled with your apk. However, I think there are some restrictions as to what you can do with them. Look

Re: [android-developers] Re: SQLite complex query and handling results

2011-06-10 Thread Emanuele Ricci
Maybe you don't understand. I'll make an example TABLE POSTS: POST_ID | POST_TITLE 1 | My first post 2 | My second post! Yay! TABLE CATEGORIES CAT_ID | CATEGORY_TITLE 1 | General 2 | Blog 3 | Sport 4 | Comic TABLE POSTS_CATEGORIES POST_ID | CATEGORY_ID 1 | 1 1 | 2 1 | 3 2 | 2 2 |

Svar: Re: [android-developers] Building Android programs on the command line

2011-06-10 Thread Mark S.
The intention of the guideline http://geosoft.no/development/android.htmlis not primarily to be able to bypass Eclipse, but rather provide information and knowledge about the building process itself: which stages are involved, which tools are being used etc. This should be vital information for

[android-developers] passing bitmap via Intent is broken in 2.3?

2011-06-10 Thread Tony
Hi guys, I am passing small bitmaps (about 30k each) from time to time, from a service to a widget (AppWidgetProvider) via Intent, using this code from service : Intent intent = new Intent(intentAction); intent.putExtra(BITMAP_EXTRA, image); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

Re: Svar: Re: [android-developers] Building Android programs on the command line

2011-06-10 Thread Kristopher Micinski
On Fri, Jun 10, 2011 at 3:37 AM, Mark S. jacob.dre...@geosoft.no wrote: The intention of the guidelinehttp://geosoft.no/development/android.htmlis not primarily to be able to bypass Eclipse, but rather provide information and knowledge about the building process itself: which stages are

Re: [android-developers] passing bitmap via Intent is broken in 2.3?

2011-06-10 Thread Nikolay Elenkov
On Fri, Jun 10, 2011 at 4:45 PM, Tony t...@smartmobilesolutions.com wrote: Hi guys, I am passing small bitmaps (about 30k each) from time to time, from a service to a widget (AppWidgetProvider) via Intent, using 06-10 02:34:59.791: ERROR/JavaBinder(96): !!! FAILED BINDER TRANSACTION !!!

[android-developers] Re: How to get manifest values?

2011-06-10 Thread Jens
AFAIK the GET_INTENT_FILTERS flag in PackageManager has never been implemented (even though it's been declared since version 1 of the API). If it's your own manifest file you want to access Dougs advice is spot on - if you want to inspect the intent-filters of other applications your SOL. On 9

[android-developers] Re: Encoding image into Base64

2011-06-10 Thread Jens
That depends wholly on your backend - although a backend that requires you to use Base64 encoding seems a tad bit pointless. Are you sure you're not supposed to post the image directly (using a FileEntity or InputStreamEntity for instance) - with the correct Content-Type set of course? On 9

Re: [android-developers] Re: SQLite complex query and handling results

2011-06-10 Thread Pepijn Van Eeckhoudt
You could use the group_concat aggregation function to concatenate the category titles. That way you'll only have a single row per post. Another alternative is to simply not use CursorAdapter but write your own work-alike instead, possibly starting from the CursorAdapter source code. Pepijn

Re: [android-developers] encrypt internet connection (GPRS) in Android?

2011-06-10 Thread Kostya Vasilyev
Use SSL - as in, HTTPS - for your facebook interaction. 2011/6/9 raman singa singa.ra...@gmail.com I'm going to develop an android application that get some private details of the of the users from facebook through GPRS. I need to encrypt that connection. I need to know how to do this from

Re: [android-developers] passing bitmap via Intent is broken in 2.3?

2011-06-10 Thread Kostya Vasilyev
The logcat says that the receiver timed out - took more than 1000 ms. Perhaps for some reason your receiver crashes or takes too long on 2.3.4, after getting the bitmap? Is there anything else in the logcat, like onReceive crashing? If not, you could put a try / catch block around your onReceive

Re: [android-developers] Re: SQLite complex query and handling results

2011-06-10 Thread Emanuele Ricci
This is what I get: http://blobs.ge.tt/8tYJKz4/concat.png?sig=-TB4nxfSNqs5AchU5rFsughxje1g4iFms8w Only a row :/ Am I wrong? Anyway I think that this solution doesn't fit the real scenario. I semplified a bit my query. In the real usage I want to select: SELECT posts.post_id, posts.post_title,

Re: [android-developers] Re: SQLite complex query and handling results

2011-06-10 Thread Daniel Drozdzewski
You should be using INNER JOIN rather than OUTER one. Daniel On Fri, Jun 10, 2011 at 8:24 AM, Emanuele Ricci ste...@gmail.com wrote: Maybe you don't understand. I'll make an example TABLE POSTS: POST_ID | POST_TITLE 1   | My first post 2   | My second post! Yay! TABLE CATEGORIES

Re: [android-developers] Re: Alternatives to SQLite for static data

2011-06-10 Thread Daniel Drozdzewski
On Thu, Jun 9, 2011 at 9:50 PM, nadam a...@anyro.se wrote: Thanks. It's no saving and no search. Just query and display. The items will be displayed as a ListView and the user can chose two different ways to sort the list and filter the list based on specific predefined values. To be more

Re: [android-developers] Re: SQLite complex query and handling results

2011-06-10 Thread Emanuele Ricci
Ok I solved it: SELECT posts.post_id, posts.post_title, GROUP_CONCAT(categories.category_name) AS categories_name, GROUP_CONCAT(categories.category_id) AS categories_id, GROUP_CONCAT(tags.tag_id) AS tags_id, GROUP_CONCAT(tags.tag_name) AS tags_name FROM posts LEFT OUTER JOIN posts_categories ON

[android-developers] crash when click fullscreen button in my browser base webkit

2011-06-10 Thread Light Wang
My browser is based in webkit, which is distributed about in Nov, 2010。 I copy most of the plugin code from webkit in android2.3 source code. Now, my browser can play flash normally. The question is, that it crash when click flash's fullscreen button. All of the plugin codes may be unchanged,

[android-developers] NFC tag polling loop's interval (Nexus S + 2.3.4)

2011-06-10 Thread asl dev
Hey forum Does anyone know the NFC tag polling loop's interval? I checked the related source ( external/libnfc-nxp/ ) , and though in phNfcConfig.h, we have /** Presence check interval in milliseconds */ #ifndef PRESENCE_CHECK_INTERVAL #define PRESENCE_CHECK_INTERVAL 500U #endif defined, I

[android-developers] Re: All Renderscript samples fail to run on actual device (Samsung Galaxy Tab 10.1 'google io edition')

2011-06-10 Thread OldYork
Thanks for this workaround. I also had these Renderscript samples running on Moto Xoom (Android 3.0.1, Tegra 2). However I observed a strangely high CPU utility percentage(~74%) when running Balls. Based on my understanding, Balls should put most workload on GPU of Tegra by using RenderScriptGL.

[android-developers] How to access serversocket in emulator?

2011-06-10 Thread из за Угла
I created ServerSocket successfully, however I can't figure out how to access it. If I provide explicit binding to address given me at interfaces enumeration, it reports exception nonexistenhost, but if I ommit binding, socket got created successfully, but I couldn't figure out IP to access. Any

Re: [android-developers] problem with ontouch of surfaceview

2011-06-10 Thread 崔凯
all views?why not only surface view? 在 2011-6-9 中午12:29,grace grace.a...@wipro.com写道: Hi, I have my layout like this FrameLayout SurfaveView VideoView/VideoView /SurfaceView LinearLayout ImageView/ImageView ImageView/ImageView /LinearLayout /FrameLayout I have registered onTouch

[android-developers] [HELP] File Dialog

2011-06-10 Thread KENT
Hello there, I want to create a Button that will show File Dialog on onClick event and let user to choose a .txt file, after he choose a file, its file path will be set to a textview via setText I think. But I dont know how to start from. Please help --- Regards, Hoang Nguyen -- You received

[android-developers] regarding code convert

2011-06-10 Thread νιנαソkum
Hi, Anybody know how to convert blackberry code to android code? -- Nobody can go back and start a new beginning, but anyone can start today and make a new ending - Thanks, Regards, νιנαソαkum@r M BloG:http://iamvijayakumar.blogspot.com/ Mob.No:08792527827(Bglr) Mob.No:09751076707(TN)

Re: [android-developers] How to Create Image List Please help me

2011-06-10 Thread zheng wu
you can find some examples from APIDemos about Listview or you can google Listview ,there are many examples. 2011/6/9 saikrishna yogasaikris...@gmail.com Hello every one I am new to android platform and more over I am student with no much hands on experience with android. I am aware of the

[android-developers] encrypt GPRS in Android?

2011-06-10 Thread raman singa
I'm going to develop an android application that get some private details of the of the users from facebook through GPRS. I need to encrypt that connection. I need to know how to do this from the beginning. I found this

[android-developers] How can I align the height of two EditText views when I do not know the amount of text ahead of time for both views?

2011-06-10 Thread mandel.l...@yahoo.com
I have two EditText views whose height I wish to align. The problem is that I cannot predict which view will have more text and hence using android:layout_alignTop and android:layout_alignBottom will not work. The layout I am experimenting with is below. I have already tried

Re: [android-developers] Re: Adding animation to LinearLayout

2011-06-10 Thread νιנαソkum
Hi, LinearLayout layout = (LinearLayout) findViewById*(R.layout.menu); (R.id.) * you have to declare layout id only na On Fri, Jun 10, 2011 at 10:44 AM, Mansoor mansoor@wipro.com wrote: hi, In your onCreate method u doing something wrong LinearLayout layout = (LinearLayout)

[android-developers] Re: Market total # of downloads stuck?

2011-06-10 Thread patw
I contacted the Android Market Team. They responded pretty quickly. They said they are aware of reports of this problem from some developers and are striving to resolve the problem as soon as possible. On Jun 9, 10:26 am, Stephen Damm shinhalsa...@gmail.com wrote: On 6/9/2011 10:48 AM, Mike

[android-developers] encrypt internet connection (GPRS) in Android?

2011-06-10 Thread raman singa
I'm going to develop an android application that get some private details of the of the users from facebook through GPRS. I need to encrypt that connection. I need to know how to do this from the beginning. I found

Re: [android-developers] Re: SQLite complex query and handling results

2011-06-10 Thread Daniel Drozdzewski
Emanuele, swap OUTER JOIN for INNER JOIN and you will not need to GROUP it. Daniel On Fri, Jun 10, 2011 at 9:24 AM, Emanuele Ricci ste...@gmail.com wrote: Ok I solved it: SELECT posts.post_id, posts.post_title, GROUP_CONCAT(categories.category_name) AS categories_name,

[android-developers] BackupAgent

2011-06-10 Thread b_t
Hi, I'm trying to implement BackupAgent functionality but I have no luck. It works well in emulator 2.2 but doesn't in emulator 2.3, 2.3.3 or in my device with 2.3.3. In 2.3.x it just displays when I run bmgr backup run in adb shell: 06-10 10:25:39.263: DEBUG/AndroidRuntime(14616): Calling

R: Re: [android-developers] Re: SQLite complex query and handling results

2011-06-10 Thread Emanuele Ricci
SELECT posts.post_id, posts.post_title, GROUP_CONCAT(categories.category_name) AS categories_name, GROUP_CONCAT(categories.category_id) AS categories_id, GROUP_CONCAT(tags.tag_id) AS tags_id, GROUP_CONCAT(tags.tag_name) AS tags_name FROM posts INNER JOIN posts_categories ON

[android-developers] Gmail attachment and custom extension

2011-06-10 Thread NitroG42
I work currently on an Android application that read file with a custom extension. One of the mandatory features, is that the app must be proposed by gmail when the user receive a mail with the attachment .ourextension. I did some research, and found that gmail client on Android doesn't rely on

[android-developers] Re: BackupAgent

2011-06-10 Thread b_t
If I wipe user data when I start emulator then backup works. There is a setting or something that can disable backup process? What should I do to work it on my phone too? On Jun 10, 10:35 am, b_t bartata...@gmail.com wrote: Hi, I'm trying to implement BackupAgent functionality but I have no

[android-developers] Re: webservice php

2011-06-10 Thread tamer hatoum
Miguel this is open source and all have the right to learn it , and you also have some respect to overseas programmers coz most of the american companies having branches in lebanon , india ,etc for there development work ... thank you guys for your help ... End of Post... On Jun 10, 1:49 am,

[android-developers] LookUp

2011-06-10 Thread MOHIT SHARMA
Hi , Can anybody tell , how create a lookup , example or tutorial will be helpful .[image: screenshot1.PNG] -- 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

Re: [android-developers] Re: SQLite complex query and handling results

2011-06-10 Thread Nikolay Elenkov
On Fri, Jun 10, 2011 at 5:24 PM, Emanuele Ricci ste...@gmail.com wrote: Ok I solved it: SELECT posts.post_id, posts.post_title, GROUP_CONCAT(categories.category_name) AS categories_name, GROUP_CONCAT(categories.category_id) AS categories_id, GROUP_CONCAT(tags.tag_id) AS tags_id,

[android-developers] can i start an activity from a broadcast?

2011-06-10 Thread souissi haythem
Hi, Please i wanna start my activity, when i my broadcast is received. I found this in android.com: Note that, although the Intent class is used for sending and receiving these broadcasts, the Intent broadcast mechanism here is completely separate from Intents that are used to start Activities

Re: [android-developers] Re: SQLite complex query and handling results

2011-06-10 Thread Emanuele Ricci
Why Google in IOSched is not using it? On Fri, Jun 10, 2011 at 11:27 AM, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Fri, Jun 10, 2011 at 5:24 PM, Emanuele Ricci ste...@gmail.com wrote: Ok I solved it: SELECT posts.post_id, posts.post_title,

[android-developers] Re: can i start an activity from a broadcast?

2011-06-10 Thread ThaMe90
It basically means that though both starting an Activity and a BroadcastReceiver respond to Intents, neither can react to each other's specific Intents. An Activity will only respond to the Intent that is sent with a call to Context.startActivity(), while a BroadcastReceiver listens to system wide

Re: [android-developers] Re: SQLite complex query and handling results

2011-06-10 Thread Nikolay Elenkov
On Fri, Jun 10, 2011 at 6:30 PM, Emanuele Ricci ste...@gmail.com wrote: Why Google in IOSched is not using it? Why should they? It's a third-party tool, and maybe they decided it's not worth the trouble. -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Re: SQLite complex query and handling results

2011-06-10 Thread Emanuele Ricci
I was talking about ORM in general. IOSched is not a so little application so maybe creating an ORM tool to integrate in Android was not a so bad idea :) On Fri, Jun 10, 2011 at 11:47 AM, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Fri, Jun 10, 2011 at 6:30 PM, Emanuele Ricci

[android-developers] SQL and preference

2011-06-10 Thread Andrei
Hi all. Help me find the right path. I have a database in it one table, the table has a column of city and address when opening the database shows all of the city. I want to create a preference, where you can select a city and display a list of addresses only the selected city. I have to write 3

[android-developers] How to implement zoom and pan controllers [ ArcGIS -API for Android ]

2011-06-10 Thread Narendra Padala
Hi ..Every one, I am new to this world, i created a sample program with help of ArcGIS -API for Android , now i want to add pan and zoom controllers. can any one can help me, or give me some reference sites based on that i can learn. I did example based on this url :

Re: [android-developers] Re: BackupAgent

2011-06-10 Thread Kostya Vasilyev
I remember there being some kind of user setting when configuring a new phone. Can't say exactly what it is, might be the second from the top under Accounts and Sync in Settings. -- Kostya Vasilyev 10.06.2011 13:01 пользователь b_t bartata...@gmail.com написал: If I wipe user data when I

[android-developers] Re: Android 3.1 is too slow

2011-06-10 Thread String
On Friday, June 10, 2011 5:32:50 AM UTC+1, Raja Nagendra Kumar wrote: How does others manage to use it for development.. Nobody does. The 3.x emulator is worse than useless; it's not possible to develop for Honeycomb without a real device. [*Worse* than useless? Definitely. If it simply

[android-developers] android wheelpicker

2011-06-10 Thread νιנαソkum
android wheel picker example http://iamvijayakumar.blogspot.com/2011/06/android-wheel-picker-example.html -- Nobody can go back and start a new beginning, but anyone can start today and make a new ending - Thanks, Regards, νιנαソαkum@r M BloG:http://iamvijayakumar.blogspot.com/

Re: Svar: Re: [android-developers] Building Android programs on the command line

2011-06-10 Thread Rajender
Hello, The link is good and very useful to understand the apk creation process . Suggestion: add the usage of ant tool in building apk it will be helpful Regards, Rajender On Jun 10, 12:46 pm, Kristopher Micinski krismicin...@gmail.com wrote: On Fri, Jun 10, 2011 at 3:37 AM, Mark S.

[android-developers] Re: NFC: NDEF messages

2011-06-10 Thread Dominik
I think with Google Tags app it only readd one Ndef message (one smart poster with url) - tbc Even if it reads only one Ndef message, I could add several Ndef records into this message, but if more than one record is contained in the message, then the Tags-app does not recognize it. My question

[android-developers] Re: NFC Secure Element

2011-06-10 Thread Marcus
Hello, I'm in university and i'm working on NFC in Nexus S for three weeks. At time, I'm able to put my devices into emulation mode. I'm getting ATR and UID throuth my OMNIKEY CardMan 5321 : - ATR: 3B 8A 80 01 00 31 C1 73 C8 40 00 00 90 00 90 - The ID of the emulated card is constant even

[android-developers] Press button makes a spinner gone in another screen

2011-06-10 Thread JackD
Hi everyone, I'm trying to make an button activity that when it's pressed a spinner will be gone in another screen I have a screen 1 (with the button) and screen 2 (with 2 spinner and several textviews). The main goal is just showing 1 spinner of the 2 in the end. I know the standard code for

[android-developers] Android Layoutinflator for embedding WebView objects created on the fly

2011-06-10 Thread redVirus
Hello, My requirement is to create an activity that holds WebView. I want my activity to load WebView by creating WebView objects as per the requirements i.e. for every new web pageI want to reuse my activity. For this I have a layout for my activity. And I create new WebView for each request.

[android-developers] Re: Aw: How to set send to via sms intend

2011-06-10 Thread Amol
Hi, Thanks for the answer. This worked for me. Regards, Amol Ghotankar -- 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] need help in ListActivity

2011-06-10 Thread tekinoypi
I copied and paste the ListViewDemo codes from the book Beginning Android 2, page 61. There are no errors in Eclipse, BUT when it is executed in Android 2.1 Android 2.2 emulators the application displays a pop-up for a problem or crashes instantly. I am a beginner in Android Development, any

Re: [android-developers] need help in ListActivity

2011-06-10 Thread νιנαソkum
Hi Man, Create new workspace ..copy paste the code then run and check it. On Fri, Jun 10, 2011 at 3:57 PM, tekinoypi akoto1...@gmail.com wrote: I copied and paste the ListViewDemo codes from the book Beginning Android 2, page 61. There are no errors in Eclipse, BUT when it is executed in

[android-developers] Re: Android 3.1 is too slow

2011-06-10 Thread ThaMe90
I only use the emulator to test screen configurations on different devices... Specs are available on the internet, so you can change your Emulator easily enough to use those specs. For real testing, like say if the application actually works and performance testing, I use a real device. On 10

Re: [android-developers] SQL and preference

2011-06-10 Thread Kostya Vasilyev
Yes, one query to get the categories (cities), then, once a city is selected, another query to get the addresses. Or you could preload the entire data set and do your own filtering in memory - depending on how large the data set is. Take a look at ListPreference source code - if you wanted the

Re: [android-developers] onHomePressed?

2011-06-10 Thread Kostya Vasilyev
There isn't. The home button is special, you can't intercept it. 2011/6/10 bob b...@coolgroups.com I know there is the onBackPressed function to detect back button presses. Is there anything similar with the Home button? -- You received this message because you are subscribed to the

Re: [android-developers] Re: BackupAgent

2011-06-10 Thread Kostya Vasilyev
Ok, here is some info: http://developer.android.com/guide/topics/data/backup.html#Testing Ensure that backup is enabled - If using the emulator, you can enable backup with the following command from your SDKtools/ path: adb shell bmgr enable true - If using a device, open the

Re: [android-developers] LookUp

2011-06-10 Thread Pepijn Van Eeckhoudt
Have a look at the 'Search' documentation (http://developer.android.com/guide/topics/search/index.html). Not exactly what you're trying to do, but it's close enough that it should give you some inspiration. Pepijn On 10/06/2011 11:21, MOHIT SHARMA wrote: Hi , Can anybody tell , how create a

Re: [android-developers] LookUp

2011-06-10 Thread Kostya Vasilyev
That appears to be an AutoCompleteTextView: http://developer.android.com/reference/android/widget/AutoCompleteTextView.html -- Kostya 2011/6/10 Pepijn Van Eeckhoudt pep...@vaneeckhoudt.net Have a look at the 'Search' documentation (

Re: [android-developers] Good phone for development - and getNeighboringCellInfo()

2011-06-10 Thread Fred Niggle
To answer your question about using a phone for develoment, I use a ZTE Racer - cheap but fully up to the job. However when it comes to findout out why a program crashed the emulator with logcat output is for superior from proving information about the state of variables, etc, than any real

[android-developers] Re: SQL and preference

2011-06-10 Thread Andrei
Спасибо Костя! On 10 июн, 15:08, Kostya Vasilyev kmans...@gmail.com wrote: Yes, one query to get the categories (cities), then, once a city is selected, another query to get the addresses. Or you could preload the entire data set and do your own filtering in memory - depending on how large

[android-developers] Animation

2011-06-10 Thread Neha
Hii all, I tried a lot to animate an image without clicking on the image.but i didn't get the result. send me your suggestions. below i mentioned my code * project.java* final ImageView imageView = (ImageView) findViewById(R.id.blankImageView); final

[android-developers] Custom Progress bar with white background not showing in 3.0 Tablet

2011-06-10 Thread Vinay Julme
Hi Guys, I have created a custom progress dialog which has a white background and contains the circular progress bar which is androids default. It shows perfectly fine on 2.3 emulator with black circular background and a white dot with a tail But when initiated on tablet emulator there is no

[android-developers] toasts in new thread

2011-06-10 Thread bob
How do you make it so a thread you create can do toasts? I keep getting this: 06-10 07:04:19.691: ERROR/AndroidRuntime(2809): java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() -- You received this message because you are subscribed to the

Re: [android-developers] toasts in new thread

2011-06-10 Thread Kumar Bibek
Toasts can only be created on a UI thread, else a thread which uses Looper.prepare() ; *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Fri, Jun 10, 2011 at 5:37 PM, bob b...@coolgroups.com wrote: How do you make it so a thread you create can do

[android-developers] Frame Animation

2011-06-10 Thread Look
Hi, I'm trying to implement Animation in my projectbut i have no luck Below i will mention the code which i used. res/drawable/anim animation-list xmlns:android=http://schemas.android.com/apk/res/android; android:oneshot=false item android:drawable=@drawable/load0

[android-developers] Re: BackupAgent

2011-06-10 Thread b_t
Thank you for your response. All of these options are enabled in my phone but backup still doesn't work. Maybe the problem is about my ROM, I don't know On Jun 10, 1:14 pm, Kostya Vasilyev kmans...@gmail.com wrote: Ok, here is some info:

[android-developers] Is there any way to disable landscape mode for widget?

2011-06-10 Thread Alexey Onuchin
Hi to all, I'm developing a simple widget for which I want to leave only portrait mode. So is there any way to block lanscape mode like we can do it for Activities? Thanks in advance, Alexey -- You received this message because you are subscribed to the Google Groups Android Developers

Re: [android-developers] NFC: NDEF messages

2011-06-10 Thread Mark Murphy
On Thu, Jun 9, 2011 at 8:53 PM, Dominik dominik.gru...@fhnw.ch wrote: Question: How do i have to pack this information on the tag? Two NdefRecords in the same NdefMessage or (if that is possible) two NdefMessages? AFAIK, neither. As andrew said, Google will only launch one startActivity()

Re: [android-developers] Is there any way to disable landscape mode for widget?

2011-06-10 Thread Mark Murphy
On Fri, Jun 10, 2011 at 8:18 AM, Alexey Onuchin av.onuc...@gmail.com wrote: I'm developing a simple widget for which I want to leave only portrait mode. So is there any way to block lanscape mode like we can do it for Activities? No, sorry. -- Mark Murphy (a Commons Guy)

Re: [android-developers] Re: When does the platform hold wakelocks?

2011-06-10 Thread Mark Murphy
On Fri, Jun 10, 2011 at 1:32 AM, Heikki heikki.vuolteen...@gmail.com wrote: Everything else sounds pretty clear, but the incoming network data wakeup is still a bit fuzzy. Consider for example doing a synchronous HTTP request with HttpClient or some other library. Probably you would have to

Re: [android-developers] Re: How can I know when the home button has been pressed?

2011-06-10 Thread TreKing
On Wed, Jun 8, 2011 at 2:01 AM, Andy Fung tsf...@gmail.com wrote: if(keyCode == KeyEvent.KEYCODE_HOME) http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_HOME This key is handled by the framework and is never delivered to applications. Please read the documentation,

Re: [android-developers] Detecting Button Clicks

2011-06-10 Thread Mark Murphy
Use setOnClickListener() or android:onClick. On Thu, Jun 9, 2011 at 1:18 PM, c0dege3k c0deg...@gmail.com wrote: I'm writing a simple tic-tac-toe game, with regular buttons making up the grid. What I want to happen is for when one button is clicked, for the turn boolean to switch. There doesn't

Re: [android-developers] Simulate UI Actions on device

2011-06-10 Thread Mark Murphy
On Thu, Jun 9, 2011 at 3:41 AM, gorav techi...@gmail.com wrote: I want to simulate keyboard events, touch events on screen. And, I don;t want to have dependency on Android SDK. i.e. I want to deploy apk file on device, which can fire some events. Fortunately, this is impossible, as it would be

[android-developers] Re: Is there any way to disable landscape mode for widget?

2011-06-10 Thread Alexey Onuchin
Hmm, Ok. Then I will provide additional layouts :) Thanks. On 10 июн, 16:24, Mark Murphy mmur...@commonsware.com wrote: On Fri, Jun 10, 2011 at 8:18 AM, Alexey Onuchin av.onuc...@gmail.com wrote: I'm developing a simple widget for which I want to leave only portrait mode. So is there any way

Re: [android-developers] Saving as Bitmap .BMP in android

2011-06-10 Thread Mark Murphy
Android has no real support for BMP files. You are welcome to try to find some third-party code that can assist you in encoding in that format. It will need to be C/C++ code that you integrate with JNI and the NDK, as any Java implementation will be slower than the native routines used in Android

Re: [android-developers] codec list

2011-06-10 Thread Mark Murphy
On Wed, Jun 8, 2011 at 11:54 PM, mimi tung mimisun.t...@gmail.com wrote: I will study the andorid API and try to write a app will query the system capability in android. first step, Want to query Video/audio codec  first, but can't find the API. Would you know what API will  list the Codec

[android-developers] Re: Like Quartz

2011-06-10 Thread Emanuel Moecklin
You could always try to adapt Quartz to Android. From my experience with other open source software (like Neuroph or Sudoku Explainer) they normally need some tweaks to make them work on Android (mainly due to memory/stack and/or performance issues) but in the end it will work. On the other hand

Re: [android-developers] New to Android

2011-06-10 Thread TreKing
On Wed, Jun 8, 2011 at 2:20 AM, goAndroid sovu...@gmail.com wrote: I encounter a crash java.lang.NullPointerException whenever I run my app. please help: Please give your posts a title indicative of its content. Please read the documentation section on debugging your app. Please debug your

[android-developers] Will Android ever natively support Arabic language?

2011-06-10 Thread omar
Hello, Each day I read a new thread in Arabic forums about someone frustrated that Android doesnt support Arabic, and what made things worse is that in this page: http://d.android.com/sdk/android-2.3.html , Arabic is mentioned as its supported in Gingerbread, and I was lucky enough to not rush

Re: [android-developers] Simulate UI Actions on device

2011-06-10 Thread Pepijn Van Eeckhoudt
If you're trying to test your own application code you can do this via the Instrumentation API. Pepijn On 10/06/2011 14:34, Mark Murphy wrote: On Thu, Jun 9, 2011 at 3:41 AM, goravtechi...@gmail.com wrote: I want to simulate keyboard events, touch events on screen. And, I don;t want to have

Re: [android-developers] Re: Like Quartz

2011-06-10 Thread Nikolay Elenkov
On Fri, Jun 10, 2011 at 9:57 PM, Emanuel Moecklin 1gravity...@gmail.com wrote: You could always try to adapt Quartz to Android. From my experience with other open source software (like Neuroph or Sudoku Explainer) they normally need some tweaks to make them work on Android (mainly due to

[android-developers] upload camera image through SOAP web service

2011-06-10 Thread nageswara rao rajana
Hi folks, subject: urgent required I captured image using camera, so i want to save that image in database using SOAP web service. So please anyone help me in this. with regards, Nagu. -- You received this message because you are subscribed to the Google Groups

  1   2   >