Re: [android-developers] Re: Android beginner

2011-02-02 Thread Robin Talwar
the same kind of error is the one which i get when i downgrade my app from 2.2 to 2.1 and i am not using any specific library. I have done all the changes like in manifest file and project properties then cleaned the project and still it gives the error. I dont knw much how to debug but all i can

[android-developers] Post on Facebook wall post for beginner

2011-02-02 Thread Abhishek Talwar
I am new to the world of sharing stuff on facebook. My target for today is to make a simple application which has a Post to FB button . When the user clicks on it then a hard coded String from java file is displayed on the user's profile ; after logint to the facebook account and creating a

[android-developers] Re: viewgroup and view

2011-02-02 Thread blackbelt
yes they are. -- 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

[android-developers] APIs for stereoscopic camera support in Android 3.0?

2011-02-02 Thread blindfold
Apparently, some Honeycomb (Android 3.0) tablets like the T-Mobile G- Slate are coming out with dual rear-facing cameras for stereoscopic video recording http://www.androidpolice.com/2011/02/01/t-mobile-releases-details-and-images-of-the-lg-g-slate-honeycomb-tablet/ I'd like to do some depth

Re: [android-developers] Diacritics/international characters in AutoCompleteTextView

2011-02-02 Thread Kostya Vasilyev
You could implement your own filter, by overriding getFilter() in your adapter, and implementing a Filter that does what you want. http://developer.android.com/reference/android/widget/Filterable.html#getFilter() (various adapter classes implement Filterable)

[android-developers] Disable dictionary on softkeyboard ?

2011-02-02 Thread mac-systems
Hello, my target version is still 1.6, how can i prevent the dictionary to appear ? I want that the user simply enters text as he types it. Since SDK Target Version 5 theres the Option android:inputType=textNoSuggestions EditText android:id=@+id/codeTextfield

Re: [android-developers] Re: How to sort HashMap?

2011-02-02 Thread Kostya Vasilyev
It should *really* be: ArrayListyourItemClassNameHere list = new ArrayListyourItemClassNameHere(); This is type safe, as the array above knows that it keeps a list of yourItemClassName - whereas plain ArrayList only knows that it keeps a list of Object's. The angle brackets above is a

Re: [android-developers] WiFi Error/Unable to connect in AVD

2011-02-02 Thread Kostya Vasilyev
Kim, I have a *very* WiFi specific application, and never knew you could get *any* support for WiFi in the emulator! FWIW, I implemented my own emulation code, so I could use the emulator to test the UI on various screen sizes:

Re: [android-developers] Re: Samsung Fascinate AVD definition

2011-02-02 Thread Kostya Vasilyev
02.02.2011 10:34, Anindo Ghosh пишет: Kostya, I've read other posts by you and your blog, you are probably one of the most helpful people in the Android community I've found so far. Thank you for being there! Thanks. A perfect contrast to TreKing, who has been rather aptly described by

Re: [android-developers] Re: Nested layouts in separate XML

2011-02-02 Thread MerlinBG
Well, thanks for the link, this seems to work fine. However - about the reopening the 2 years old thread - searching only provided obsolete results, most referring to the technique Selmi gave a link above. I am glad this changed meanwhile, however it is hard to find, no reference in the Dev

[android-developers] Re: How to develop new android apps considering that the app will also be developed for other phones

2011-02-02 Thread Hogus
There are plenty of platform out there that attempt this. Having tried many, and even having been involved in building frameworks to cover multiple devices I don't recommend any of them unless you are doing really trivial applications or you are in a position to negotiate enterprise level support

[android-developers] Get RSSI of surrounding wireless networks

2011-02-02 Thread Schoel
Hi, Is it possible to get the RSSI of surrounding wireless networks without doing a full scan? I need periodic updates about surrounding networks perhaps every 5 seconds. Can't do a scan that often. Using aidl would work if the info is available anywhere. /Schoel -- You received this message

Re: [android-developers] Get RSSI of surrounding wireless networks

2011-02-02 Thread Kostya Vasilyev
The results of a most recent scan are available by calling getScanResults, even if your application didn't start a scan, that's probably the best you can do without initiating a scan. However, if there is an active connection, then AFAIK, Android doesn't initiate scans on its own. If there is

[android-developers] Can't properly stop a thread

2011-02-02 Thread Serdel
In my application I am connecting to a server and downloading some things. Not much but the connection it self takes a while. Off course this is done in a thread (class that implements runnable). If some error occurs, the thread sends a message to the UI using a Handler and the UI displays an

Re: [android-developers] Can't properly stop a thread

2011-02-02 Thread Kostya Vasilyev
Adam, interrupt() doesn't necessarily stop a thread right then and there. It sets an internal flag, which can be checked with isInterrupted(). If your thread happens to call wait() or sleep(), then this flag will be turned into an InterruptedException. Also this flag is reset after

Re: [android-developers] Can't properly stop a thread

2011-02-02 Thread Robin Talwar
Hey Kostya can async task be the reason i can not properly play my application in 2.1 while it works fine in 2.2?? On Wed, Feb 2, 2011 at 4:54 PM, Kostya Vasilyev kmans...@gmail.com wrote: Adam, interrupt() doesn't necessarily stop a thread right then and there. It sets an internal flag,

[android-developers] Re: Schedule notification instead of permanently check

2011-02-02 Thread Danny S.
Today I read this on googles documentation: Broadcast Receivers listening for boot completed The system delivers the ACTION_BOOT_COMPLETED broadcast before the external storage is mounted to the device. If your application is installed on the external storage, it can never receive this broadcast.

Re: [android-developers] Can't properly stop a thread

2011-02-02 Thread Kostya Vasilyev
02.02.2011 14:27, Robin Talwar пишет: Hey Kostya can async task be the reason i can not properly play my application in 2.1 while it works fine in 2.2?? More on the bug in AsyncTask.cancel: http://groups.google.com/group/android-developers/browse_thread/thread/07ea01892ee7a5f4 Fixed

Re: [android-developers] Re: Schedule notification instead of permanently check

2011-02-02 Thread Kostya Vasilyev
Danny, According to this: http://developer.android.com/reference/android/content/Intent.html#ACTION_EXTERNAL_APPLICATIONS_AVAILABLE The extra data EXTRA_CHANGED_PACKAGE_LIST contains a list of packages whose availability changed. The extra data EXTRA_CHANGED_UID_LIST contains a list of uids

[android-developers] Default local charset/encoding?

2011-02-02 Thread mort
Is there a way to get the default local charset/encoding for a device? I.e., I'd like to get e.g. ISO-8859-1, windows-1251, ISO-2022-CN, or whatever is common in the device's default locale (and supported by the device), not UTF-8 like Charset.defaultCharset() or System.getProperty(file.encoding)

[android-developers] Re: Schedule notification instead of permanently check

2011-02-02 Thread Danny S.
Hey Kostaya, wow, thanks. It seems I'll be forced don't support external storage. There is really a conflict between the statements... I don't know such missunderstandings by Google ^^ Thanks a lot for this Kostaya! You helped me so many times with solutions and important information ;-) -Danny

Re: [android-developers] Re: Force Close Question

2011-02-02 Thread Mark Murphy
If the process is being killed, the Application is gone too. On Tue, Feb 1, 2011 at 9:38 PM, bruce palant...@gmail.com wrote: If your process is killed, all the activities are killed so its not like the globals are released and you still have activities running causing a force close.  Sounds

[android-developers] Re: How to sort HashMap?

2011-02-02 Thread DanH
You didn't provide the compare method required for a Sortable object. On Feb 1, 11:43 pm, Mystique joven.ch...@gmail.com wrote: Ok, I did this but runtime error, did I do wrong? --- public class Sortable {     private String name;     private String age;     public Sortable(){     }    

[android-developers] Requirement of a SIP Client for Android

2011-02-02 Thread Stephen Antony
I am looking for an experienced Mobile application developer who can develop or provide a Mobile SIP Client for the BlackBerry and Android Platforms with the below features • Making and receiving SIP calls ... • Contacts (Integrated address book with “search” option) • Loudspeaker • Balance

[android-developers] Re: How to sort HashMap?

2011-02-02 Thread DanH
An alternative is to put your HashMaps into a regular HashMap[] array and then use Arrays.sort. Create an external Comparator class that is roughly: class MyComparator implements Comparator { public int compare(HashMap o1, HashMap o2) { Integer key1 = (Integer) o1.get(age); Integer key2 =

[android-developers] Account name with spaces throws Exception on Android 2.2

2011-02-02 Thread marten
Hello, there seems to be some changes from Android 2.1 to Android 2.2 which throws an Exception when contact account names have spaces. I use the following code: mEntityUri = ContactsContract.Groups.CONTENT_URI.buildUpon() .appendQueryParameter(ContactsContract.Groups.ACCOUNT_NAME,

[android-developers] Re: How to sort HashMap?

2011-02-02 Thread DanH
Oops -- since the key values are Integer objects, should be something like: return key1.compareTo(key2); On Feb 2, 6:21 am, DanH danhi...@ieee.org wrote: An alternative is to put your HashMaps into a regular HashMap[] array and then use Arrays.sort.  Create an external Comparator class that is

[android-developers] Re: Can't properly stop a thread

2011-02-02 Thread Serdel
Thank you Kostya. As you have nicely noticed my network code doesn't 'see' any flag so that's not an option for me. Setting the handler to null actually came to my mind but it seem a little bit 'dirty'. What worries me is that if I exit my application, the thread is still working, trying to

[android-developers] Re: Schedule notification instead of permanently check

2011-02-02 Thread Danny S.
Hi, for information: I changed the android:installingLocation in the AndroidManifest.xml to internalOnly and now the broadcast received successfully. Installing the app on external storage was the reason like expected after I read the docs. -Danny S. On Feb 2, 1:06 pm, Danny S.

Re: [android-developers] separate thread for browser,webkit.

2011-02-02 Thread YoGenDr@ $iNgH
It seems that no one is interested in webkit browser. On Tue, Feb 1, 2011 at 9:01 AM, yogi yogi.ru...@gmail.com wrote: Hi all, Since webkit is a huge libary so i suggest to open a separate thread for discussion on webkit,browser stuff specific to android platform. And i also request to join

[android-developers] Re: motion effect in Rubber Band

2011-02-02 Thread Nik Bhattacharya
Note that 2.3 is going to allow this in a generic manner. Look at the release notes about overscrolling Support for overscroll New support for overscroll in Views and Widgets. In Views, applications can enable/disable overscroll for a given view, set the overscoll mode, control the overscroll

[android-developers] Re: to GUI gurus:a question about dialog window and activity

2011-02-02 Thread alligator
There are at least 2 ways to display a dialog in an activity. One is to call showDialog, which is managed by the class Activiy. In this case, to understand the dialog is restored by onSaveInstanceState / onRestoreInstanceState. I believed u are talking about this scenrio. The other is to

[android-developers] Need quick help about superboot

2011-02-02 Thread Raju
Hi Am using Nexus one (build FRG83D ) , while i was trying to superboot my nexus one, i downloaded a package and run the command fastboot-windows.exe flash boot nexusone.superboot.1.1.img After that ... there is no wifi signal, did not recognize sd, very glitchy, unstable and maybe worst of

Re: [android-developers] Re: to GUI gurus:a question about dialog window and activity

2011-02-02 Thread Kostya Vasilyev
showDialog and AlertDialog.Builder are orthogonal (independent). You can create a managed dialog with Builder (by using it inside onCreateDialog) or an unmanaged dialog using new Dialog(), etc. Now with this being said, your code below creates an unmanaged dialog, and if you want it to persist

[android-developers] Media Controller in VideoView should never disappear

2011-02-02 Thread Abhishek Talwar
Guys at present the MediaController for video view is visible only for 3 seconds. I want the controller to be there permanently till the song finishes i know there is something like mc.show(0) but i dont know how and where to use this code -- You received this message because you are subscribed

Re: [android-developers] Re: Can't properly stop a thread

2011-02-02 Thread Kostya Vasilyev
Adam, Thread not stopping right away is normal, since a thread is there so it can do its own thing. Just make sure that your thread function checks the handler or a boolean flag or whatever as often as it can, and stops after it's been set - this includes before connecting. You can also

[android-developers] Re: Can't properly stop a thread

2011-02-02 Thread Serdel
If think I'll need to go with the flagging approach. Seem the more 'elegant' way to do this. Thanks for your help Kostya (As usual :) On 2 Lut, 14:56, Kostya Vasilyev kmans...@gmail.com wrote: Adam, Thread not stopping right away is normal, since a thread is there so it can do its own thing.

[android-developers] disabled EditText display glitch (Android 2.2)?

2011-02-02 Thread Vertifi
Hello, Disabled EditText fields (android:enabled=false) have a horizontal line being drawn through them. Created simple test app using standard Eclipse wizard, added EditText for main.xml layout as follows: ?xml version=1.0 encoding=utf-8? LinearLayout

[android-developers] DroidX adding or editing contact problem

2011-02-02 Thread dmtrl...@gmail.com
Hi all, I have a question about adding or editing contact on DroidX. This is my code for starting standard Add Contact activity Intent intent = new Intent(Intent.ACTION_INSERT_OR_EDIT); intent.setType(ContactsContract.Contacts.CONTENT_ITEM_TYPE);

[android-developers] Re: Disable dictionary on softkeyboard ?

2011-02-02 Thread SImplyG2010
Put the input type as email I think that gets rid of the dictionary. On Feb 2, 8:38 am, mac-systems jens.h...@gmx.de wrote: Hello, my target version is still 1.6, how can i prevent the dictionary to appear ? I want that the user simply enters text as he types it. Since SDK Target Version 5

[android-developers] Bluetooth activation Alert dialog multiplication after screen rotation

2011-02-02 Thread Zeljko Devcic
I have encountered strange issue. From Activity I request Bluetooth activation and 120s discoverability via intent: Intent activateBTIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE); startActivityForResult(activateBTIntent, BT_ACTIVATE_INTENT); I use it no matter if the

[android-developers] please stop sending me email

2011-02-02 Thread Liran Barsisa
hello, please stop sending me email. i've chosen to unsubscribe, i've also chosen to disable emailing to me, yet every day i keep getting letters from the forum . thank you for your time. -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: How to sort HashMap?

2011-02-02 Thread Mystique
Hi DanH, Although I'm a bit lost as Java is a very new language to me, I will try to figure what you mean. SimpleAdapter adapterShop = new SimpleAdapter(this, ppp, R.layout.sort_by_name, new String[] {name,age}, new int[] {R.id.name,R.id.age ); I have this error - The constructor

Re: [android-developers] Re: How to sort HashMap?

2011-02-02 Thread TreKing
On Wed, Feb 2, 2011 at 9:12 AM, Mystique joven.ch...@gmail.com wrote: I have this error - The constructor SimpleAdapter(Directory, ArrayListSortable, int, String[], int[]) is undefined Not very sure about it. The best advice I can give you at this point: stop. Just stop. Put your Android

[android-developers] Re: How to sort HashMap?

2011-02-02 Thread Mystique
Yes sir. On Feb 2, 11:41 pm, TreKing treking...@gmail.com wrote: On Wed, Feb 2, 2011 at 9:12 AM, Mystique joven.ch...@gmail.com wrote: I have this error - The constructor SimpleAdapter(Directory, ArrayListSortable, int, String[], int[]) is undefined Not very sure about it. The best

Re: [android-developers] Re: Samsung Fascinate AVD definition

2011-02-02 Thread TreKing
On Wed, Feb 2, 2011 at 1:34 AM, Anindo Ghosh anindo.gh...@gmail.com wrote: This thread amused me... Kostya, I've read other posts by you and your blog, you are probably one of the most helpful people in the Android community I've found so far. Thank you for being there! A perfect contrast

[android-developers] Re: MMS/SMS Module Design Document

2011-02-02 Thread chetan
Thanks ... On Jan 24, 9:46 pm, TreKing treking...@gmail.com wrote: On Mon, Jan 24, 2011 at 2:05 AM, chetan chetanchauha...@gmail.com wrote: I wand to understand the MMS/SMS module,  is there any design document available for MMS/SMS module. It's doubtful there's any design document for

[android-developers] Re: Android beginner

2011-02-02 Thread JAlexoid (Aleksandr Panzin)
NullPointerException is so common and so general that you can't know anything from I got a NullPointerException. One this I can tell you, you're new to Java programming(or a lousy programmer) if you don't know what it means. On 2 фев, 10:13, Robin Talwar r.o.b.i.n.abhis...@gmail.com wrote: the

[android-developers] Re: Strange orange background color when custom 9 patch button is pressed...

2011-02-02 Thread Jarrette
FINALLY figured it out. Here is the solution: TextView does NOT support pressed state correctly. I changed the view to a Button and it worked perfectly! so menuitem.xml changed to Button xmlns:android=http://schemas.android.com/apk/res/android;

[android-developers] Re: Strange orange background color when custom 9 patch button is pressed...

2011-02-02 Thread JAlexoid (Aleksandr Panzin)
Try using your scroller(the optical thing or the ball at the bottom of your phone) and select items in the list. If when selecting using a scroller adds the orange background, then it's simple becuase it's default behaviour of Array adapter's item wrapper. You have to create your own ListAdapter

[android-developers] Re: How to create an app as a service and make it invisible to the user?

2011-02-02 Thread JAlexoid (Aleksandr Panzin)
There's always rooting and building custom ROMs On 2 фев, 03:46, Mark Murphy mmur...@commonsware.com wrote: On Tue, Feb 1, 2011 at 8:39 PM, Christian Chabtini cchapt...@gmail.com wrote: I would like to be able to create a service that runs in the background. The user should not be able to

Re: [android-developers] Re: Nested layouts in separate XML

2011-02-02 Thread TreKing
On Wed, Feb 2, 2011 at 3:19 AM, MerlinBG merli...@gbg.bg wrote: however it is hard to find, no reference in the Dev Guide either. Not sure what you mean there's no reference. Besides sample I linked you to, this is clearly documented in the layouts section:

Re: [android-developers] please stop sending me email

2011-02-02 Thread TreKing
On Wed, Feb 2, 2011 at 8:44 AM, Liran Barsisa li...@thecto.co.il wrote: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at

[android-developers] Dynamic array ListView problem

2011-02-02 Thread sisko
Hi guys, I am experimenting with locations and listviews. I am getting location results back and I am trying to create a listview of my locations results using the following code: ListView locationList = (ListView)findViewById(R.id.ListView01); String[]

Re: [android-developers] Dynamic array ListView problem

2011-02-02 Thread TreKing
On Wed, Feb 2, 2011 at 10:54 AM, sisko adeod...@gmail.com wrote: my application crashes. When your application crashes, it's up to you to debug it and figure out why. If you need help we need more information than it crashes. Use your debugger and logcat to get more information and post it if

Re: [android-developers] Post on Facebook wall post for beginner

2011-02-02 Thread TreKing
On Wed, Feb 2, 2011 at 2:16 AM, Abhishek Talwar r.o.b.i.n.abhis...@gmail.com wrote: When the user clicks on it then a hard coded String from java file is displayed on the user's profile ; after logint to the facebook account and creating a session. You're in the wrong place. This group is

Re: [android-developers] viewgroup and view

2011-02-02 Thread TreKing
On Tue, Feb 1, 2011 at 7:41 AM, blackbelt emanuel...@gmail.com wrote: My question is.. if I want to know wich view has been touched what i need to do? Could please provide me some information or example? OnTouchListener takes the view that was touched as the first parameter.

[android-developers] Re: InputMethodManager and it's active View

2011-02-02 Thread Jeremiah Sellars
I spent some time researching InputMethodManager.java and besides having a ton of threading code I couldn't follow, the best I could gather was that whatever view currently has focus SHOULD be able to invoke showSoftInput as it the InputMethod's active view. After much further testing... the only

[android-developers] Re: data upload java script

2011-02-02 Thread Joe McCann
JavaScript does not handle uploading; you'll need to have some code written on the server to handle a POST request with the data you are posting. Inside a WebView, you can use the XHR object to make your call to your server asynchronously, but JavaScript itself can't actually do the uploading of

[android-developers] Can an application control the open / closed state of the status bar panel?

2011-02-02 Thread Ken Cross
I have an application which exhibits two different behaviors, possible related to Android 2.2 vs. Android 2.1 update 1. The application uses the proximity sensor to determine when the phone is near the ear. If a near condition is detected, I get the applications window and set the LayoutParams to

[android-developers] Re: How to create an app as a service and make it invisible to the user?

2011-02-02 Thread Christian Chabtini
Hi, can you please give more details or some links about rooting and building custom ROMs ? what is that mean? thank you Mark and Aleksandr for your feed... your help is much appreciated On Feb 2, 8:47 am, JAlexoid (Aleksandr Panzin) jalex...@gmail.com wrote: There's always rooting and building

[android-developers] Re: Force Close Question

2011-02-02 Thread Scott Deutsch
Wished Android made a class that it does not touch until the app is totally dead...so when you tap back on the app, it will start back from the beginning. Oh well. I will just redesign to be better then. Thanks group. On Feb 2, 4:09 am, Mark Murphy mmur...@commonsware.com wrote: If the process

[android-developers] Re: Can i use a BroadcastReceiver or Service to retrieve an Incoming call

2011-02-02 Thread Christian Chabtini
so how come mobistealth, androidspy and mobile spy and similar apps that works on all android cell phones along with a big list of other phones.. how and why were they able to access and record phone calls ? On Feb 1, 5:47 pm, Mark Murphy mmur...@commonsware.com wrote: On Tue, Feb 1, 2011 at

[android-developers] can multiple activiites share an ActionBar?

2011-02-02 Thread Satya Komatineni
Hello there. I am looking at the ActionBar classes in 3.0. Each activity can control its ActionBar. Activity { . ActionBar bar = getActionBar(); bar.addTab(..1..) bar.addTab(..1..) . } Does every activity in an application setup an ActionBar independently?

[android-developers] Back Button ?what it really does?

2011-02-02 Thread kiros88
Hi i was wondering what the back button really does okay so its kinda confusing but here is the problem? i have 2 tabs and another page of intent so my app acts like a music palyer basically that once u click on the song it brings u to another page. but on the first tab i have a seekbar thats

[android-developers] Re: Back Button ?what it really does?

2011-02-02 Thread kiros88
O yea just so if anyone wasnt sure i do have the format setup right like with setprogression and stuff in the code because like i said when i go to 2nd tab and back to 1st it looks good but im just trying to get the intent backbutton.1st tab to look right On Feb 2, 11:40 am, kiros88

[android-developers] Re: WiFi Error/Unable to connect in AVD

2011-02-02 Thread Kim
Thanks, Kostya. Your code got me looking in the right direction. I went back to an earlier release that had been working and found two things, both of which I had to change to get it to work: 1) In my startup code I changed while(!wifi.isWifiEnabled()) wifi.setWifiEnabled(true); to what I had

[android-developers] Multiple SPP / RFCOMM Connections Cause Phone To Lock Up

2011-02-02 Thread James
I have an app that uses bluetooth SPP (RFCOMM) to communicate with a piece of hardware. The app and the bluetooth connection work great. The problem is when another app is started that also uses SPP and then one of the apps is stopped. Once either of the apps is stopped, either by quitting the app

[android-developers] Video View // Media Controller ?? Show(0) = Null Pointer Exception = Frustrated

2011-02-02 Thread Abhishek Talwar
Guys i am playing an video with a video view . So far it is cool and video plays nice but the media Controller which comes at the bottom of the screen appears only on touch and i want that it should be there permanently. I googled and i thot the following code should be fine :- Uri path =

Re: [android-developers] Re: WiFi Error/Unable to connect in AVD

2011-02-02 Thread Kostya Vasilyev
02.02.2011 23:23, Kim пишет: Thanks, Kostya. Your code got me looking in the right direction. I went back to an earlier release that had been working and found two things, both of which I had to change to get it to work: 1) In my startup code I changed while(!wifi.isWifiEnabled())

Re: [android-developers] Video View // Media Controller ?? Show(0) = Null Pointer Exception = Frustrated

2011-02-02 Thread Robin Talwar
Do i need to make a custom Media Controller?? Is there any Framelayout related in this stuff anywhere in layout file? On Thu, Feb 3, 2011 at 2:26 AM, Abhishek Talwar r.o.b.i.n.abhis...@gmail.com wrote: Guys i am playing an video with a video view . So far it is cool and video plays nice but

[android-developers] MediaRecorder to socket -?

2011-02-02 Thread Victor lyamtsev
setOutputFile method for MediaRecorder takes either file path or FileDescriptor as argument, e.g. seems it only allows to record file locally... Is there any trick to write recorded stream into the socket? Regards, -V -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] Back Button ?what it really does?

2011-02-02 Thread Dianne Hackborn
What it does is simple: if nothing in the view hierarchy consumes it, the activity in response to receiving it just calls finish() on itself. On Wed, Feb 2, 2011 at 11:40 AM, kiros88 ghui...@gmail.com wrote: Hi i was wondering what the back button really does okay so its kinda confusing but

Re: [android-developers] can multiple activiites share an ActionBar?

2011-02-02 Thread Dianne Hackborn
No, use fragments. On Wed, Feb 2, 2011 at 11:05 AM, Satya Komatineni satya.komatin...@gmail.com wrote: Hello there. I am looking at the ActionBar classes in 3.0. Each activity can control its ActionBar. Activity { . ActionBar bar = getActionBar(); bar.addTab(..1..)

[android-developers] ArrayList vs ArrayAdapter

2011-02-02 Thread Richard Sámela
HI, I have a problem with implementation. I use a ArrayListMyRecord as class MyRecord is: public class MyRecord { Date date; double spotreba; int pocet_km; double cena; String desc; MyRecord(Date date, double objem, int pocet_km, double liter,

[android-developers] Re: Back Button ?what it really does?

2011-02-02 Thread kiros88
But so when it goes back to teh original y doesnt it call onCreate()? it almost looks like its taking an activity from cache? On Feb 2, 1:34 pm, Dianne Hackborn hack...@android.com wrote: What it does is simple: if nothing in the view hierarchy consumes it, the activity in response to receiving

[android-developers] Re: Whats the key difference between Monkey Runner and Monkey tool?

2011-02-02 Thread A. Elk
You can send keystrokes and touch events with the MonkeyRunner API. It's available in AOSP and Android 2.3, and documented in Android 2.3. On Feb 1, 9:51 pm, Bharathi raja bharathiraja.andr...@gmail.com wrote: Hi, Can you please tell me it required any module\lib files to write python script

Re: [android-developers] Re: Back Button ?what it really does?

2011-02-02 Thread Mark Murphy
On Wed, Feb 2, 2011 at 4:40 PM, kiros88 ghui...@gmail.com wrote: But so when it goes back to teh original y doesnt it call onCreate()? Usually not. it almost looks like its taking an activity from cache? Not exactly, but close. http://developer.android.com/guide/topics/fundamentals.html --

Re: [android-developers] ArrayList vs ArrayAdapter

2011-02-02 Thread Mark Murphy
You will need to extend ArrayAdapterMyRecord with your own custom rendering logic in getView(), then create an instance of your custom adapter, associate it with your ArrayListMyRecord, and attach the adapter to your ListView. Here is a free excerpt from one of my books that walks through some of

[android-developers] Rotating a camera view manualy?

2011-02-02 Thread ThomasWrobel
Is it possible to rotate the view coming in from the camera, so its, say, upside down? I thought this would be a mater of rotating the surface view its on, but nothing seems to work. I tried the advice in this thread for rotating videos;

[android-developers] In-app billing - ITEM_ID limitations

2011-02-02 Thread tomgibara
I've just finished reading the preliminary documentation for in-app billing. If I've understood correctly, as part of the billing request you can supply: * ITEM_ID which is limited to a small number of pre-registered product ids * DEVELOPER_PAYLOAD unconstrained - but with caveats? and these

[android-developers] Updated my apps's promotional graphic, but Android Market website not showing it yet

2011-02-02 Thread niko20
I updated the large promotional graphic, my app's high resolution icon and promotional icon today once I saw how the website displayed. The high resolution icon shows up in searches for my app, but it's not showing yet on the apps' webpage. Also, the new large promotional graphic doesn't show on

[android-developers] Re: Updated my apps's promotional graphic, but Android Market website not showing it yet

2011-02-02 Thread Maps.Huge.Info (Maps API Guru)
It's a brand new thing so the answer is simple: Be patient. -John Coryat -- 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] How to lookup DATA._ID for a phone number

2011-02-02 Thread andfan22
Given a phone number, how can I look up the _id of the DATA row for that phone number? I was assuming that the following query would do it: Uri lookupUri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, Uri.encode(phoneNumber)); Cursor c = resolver.query(lookupUri, new String[] {

Re: [android-developers] Question about bug reports

2011-02-02 Thread H
Just to clarify, there is no automatic report getting sent - the user has to send a report. Not quite so with the acra implementation. With one line of code you can send a silent report of any exception - uncaught, caught or simply any piece of text. As long as you mention it nicely in your

Re: [android-developers] Re: Emulator loses network connection issue

2011-02-02 Thread H
Does the emulated system think that it has no longer connectivity? I.e. no more 3G icon in the status bar, and the browser complains with a dialog if you try to use it. 3G icon is still there in the emulator. Any apps trying to perform web activity get host not found error messages. If not,

[android-developers] Re: SmaliHook.java found on my hacked application.

2011-02-02 Thread H
I check the signature in my app. But I use reflection to do all calls to get the answer and I dynamically generate up the strings to pass into the reflection in various places throughout the app and in different orders. And even then I use reflection to further convert the signature to a hash

[android-developers] Is it February yet?

2011-02-02 Thread Achie
Please update the Platform versions or can someone tell when Google updates them. http://developer.android.com/resources/dashboard/platform-versions.html Is it on the first of every month or at some random time. Thank you, Achie. -- You received this message because you are subscribed to the

Re: [android-developers] Re: Can i use a BroadcastReceiver or Service to retrieve an Incoming call

2011-02-02 Thread Gergely Juhász
http://www.androidspy.com/android-spy-features http://www.mobile-spy.com/spy_features.html There are no such features like audio recording in these apps as I see. On 2 February 2011 19:58, Christian Chabtini cchapt...@gmail.com wrote: so how come mobistealth, androidspy and mobile spy and

[android-developers] How to tell in code the orientation

2011-02-02 Thread kiros88
Hi so im going to make a layout for both horizontal and vertical layout but im trying to figure out right now is how u make the system know when i guess u create it? is there a way to check programmically? -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Is it February yet?

2011-02-02 Thread Mark Murphy
They are updated intermittently. Usually, there is a tweet about it when it occurs. On Wed, Feb 2, 2011 at 6:41 PM, Achie krishna.acha...@gmail.com wrote: Please update the Platform versions or can someone tell when Google updates them.

Re: [android-developers] How to tell in code the orientation

2011-02-02 Thread Mark Murphy
If you load a layout resource via setContentView() or a LayoutInflator, Android will choose the right resource automatically based on orientation. If you are generating your UI directly in Java code, either switch to using layout resources, or use the orientation field on the Configuration object

Re: [android-developers] Question about bug reports

2011-02-02 Thread TreKing
On Wed, Feb 2, 2011 at 5:19 PM, H m...@howardb.com wrote: Just to clarify, there is no automatic report getting sent - the user has to send a report. Not quite so with the acra implementation. With one line of code you can send a silent report of any exception - uncaught, caught or simply

[android-developers] TabHost Tabs

2011-02-02 Thread Scott Deutsch
Hello Group, How could i find out if the user clicked on the current selected tab? If it was a different tab I could use the setOnTabChangedListener, but how do you get the current tab clicked on. I want it so if that re-click the current tab it will refresh that activity. Thanks group. --

[android-developers] Re: How to get screen density in pixels-per-inch or equivalent

2011-02-02 Thread Richard Schilling
That's very interesting Dianne, and thanks for taking the time to weigh in. What you are saying makes sense too because the physical size of the screens on Android devices differ. At the very least I expect that each device does the calculations properly when displaying widgets. Or, is that

[android-developers] In app billing...

2011-02-02 Thread sblantipodi
Hi, I just received a mail from google that informs me that In-App Billing will be available soon. Can you explain me please what is the in app billing and what is used for? We can create buy now button now without any additional apis that redirect customers to the market, why use in app billing

[android-developers] Dynamic way to search File directory path

2011-02-02 Thread kiros88
Hi i was wondering if there was a way to find files dynamically through the sd card but like without using strings that i know like right now im doing File home = new File(/sdcard/); to just get taht directory is there a way to do one thats like dynamic to search through all folders in sd for

Re: [android-developers] Dynamic way to search File directory path

2011-02-02 Thread Mark Murphy
On Wed, Feb 2, 2011 at 8:23 PM, kiros88 ghui...@gmail.com wrote: Hi i was wondering if there was a way to find files dynamically through the sd card but like without using strings that i know like right now im doing File home = new File(/sdcard/); Use

[android-developers] Re: In app billing...

2011-02-02 Thread String
Have you read the docs at http://developer.android.com/guide/market/billing/index.html? IANAG, but my understanding from what I've read is that the new architecture allows your customers to purchase additional stuff *within an app*. Previously, redirecting customers to the Market only let them

Re: [android-developers] In app billing...

2011-02-02 Thread Damien Cooke
Mainly for apps where buying extra services makes sense. Like a magazine application that allows you to buy and download magazine subscriptions or editions within the app. Damien sent from my HTC Desire On 03/02/2011 11:39 AM, sblantipodi perini.dav...@dpsoftware.org wrote: Hi, I just received

  1   2   >