Re: [android-developers] hi friends

2013-01-04 Thread sree android
Here It contain lot of code,please explain me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers] hi friends

2013-01-04 Thread skink
sree android wrote: Here It contain lot of code,please explain me. do you mean SimpleDateFormat? pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To

Re: [android-developers] hi friends

2013-01-04 Thread sree android
thank you i got it.Using SimpleDateFormat class. thank you bro. -- 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] android:Theme.Holo.Light.Dialog.NoActionBar

2013-01-04 Thread djhacktor
this theme gives me some extra free space when i use this ?xml version=1.0 encoding=utf-8? NumberPicker xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/numberPicker android:layout_width=wrap_content android:layout_height=wrap_content / as VIEW for

[android-developers] Referencing views through instance fields and garbage collection

2013-01-04 Thread Dmitriy F
Correct me if I'm wrong - onStop state destroys view hierarchy of activity/fragment. Consequently, views that are referenced through the object fields will be retained because of hard references, for example if I have such a class: public class ArticleFragment extends Fragment { WebView

[android-developers] Gettings assets file based on MCC MNC

2013-01-04 Thread Namit Virmani
Is there a way in android to read the File from Asset folder on run time, based on MCC MNC? Thanks, Namit Virmani -- 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]

2013-01-04 Thread 昱彰盧
V -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit

[android-developers] Best open source ImageView pinch zoom project

2013-01-04 Thread Tobias
There is a bunch of open source projects offering pinch zooming in an ImageView. Here is a few of them: - TouchImageView by MikeOrtiz (https://github.com/MikeOrtiz/TouchImageView) - ImageViewZoom by sephirot74 (https://github.com/sephiroth74/ImageViewZoom) - PhotoView by

Re: [android-developers] Re: Http Response inside a service in Android

2013-01-04 Thread a
Please refer to the link: http://stackoverflow.com/questions/14135121/http-response-inside-a-service-in-android In short, I want my service to pause for sometime inside the POST handler, till my Intent (with handler) completes the execution. On Friday, January 4, 2013 1:40:01 AM UTC+2, Lew

Re: [android-developers] Referencing views through instance fields and garbage collection

2013-01-04 Thread Mark Murphy
On Fri, Jan 4, 2013 at 5:16 AM, Dmitriy F midnight@gmail.com wrote: Correct me if I'm wrong - onStop state destroys view hierarchy of activity/fragment. First, nothing of this nature happens to the view hierarchy in onStop(), or onDestroy() for that matter. You can tell this by looking at

Re: [android-developers] Best open source ImageView pinch zoom project

2013-01-04 Thread Mark Murphy
I can tell you that the first one meets your criteria, though it is not packaged as an Android library project. However, since it is a single Java class with no other dependencies, you can just drop that class into your project hierarchy if you wish. I have not tried the other three, though the

[android-developers] Re: Demo Code For Clock with Auto-Location?

2013-01-04 Thread Jake Colman
Terrific! No email yet but I can wait. JM == Josphat Muchiri jmuchir...@gmail.com writes: JM Ok i can send u JM On Jan 3, 2013 7:29 PM, Jake Colman col...@ppllc.com wrote: Does anyone know where I can find demo code for a clock widget that shows the current location? I

[android-developers] hi friends

2013-01-04 Thread sree android
How can i fix SocketTimeoutException: Connection timed out give me any suggession. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send

[android-developers] Re: hi friends

2013-01-04 Thread bob
Try connecting to a socket where there is a server listening. On Friday, January 4, 2013 7:49:38 AM UTC-6, sree wrote: How can i fix SocketTimeoutException: Connection timed out give me any suggession. -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: Best open source ImageView pinch zoom project

2013-01-04 Thread b0b
- ImageViewZoom by sephirot74 ( https://github.com/sephiroth74/ImageViewZoom) I'm using this one and it works great. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Best open source ImageView pinch zoom project

2013-01-04 Thread Tobias
I already went for the third one PhotoView and it seems to work well. Supports pinch zoom, panning inside a ViewPager. Still not sure if it's the best one but it seems to work well but hopefully this discussion will grow to a conclusion. On Friday, January 4, 2013 2:09:21 PM UTC+1, Mark Murphy

[android-developers] Re: Demo Code For Clock with Auto-Location?

2013-01-04 Thread bob
In Android, *widget* has two meanings. Are you talking about a home-screen widget? Or a subclass of View? On Thursday, January 3, 2013 10:26:02 AM UTC-6, Jake Colman wrote: Does anyone know where I can find demo code for a clock widget that shows the current location? I have found

[android-developers] Re: Best open source ImageView pinch zoom project

2013-01-04 Thread Tobias
Does it support everything I mentioned? - pinch zoom - panning - and doing this inside a ViewPager On Friday, January 4, 2013 3:36:55 PM UTC+1, b0b wrote: - ImageViewZoom by sephirot74 ( https://github.com/sephiroth74/ImageViewZoom) I'm using this one and it works great.

[android-developers] Re: eclipse run configuration to launch various activities with extras (or android app run arguments)

2013-01-04 Thread Mihai Badea
(excuse me) bump! On Saturday, December 8, 2012 12:11:28 PM UTC, Mihai Badea wrote: Dear friends, I would like to create a launch configuration, to run any activity with arguments, for quick manually interactive testing. I have one Android Application with many activities. Some of them

[android-developers] Re: Demo Code For Clock with Auto-Location?

2013-01-04 Thread Jake Colman
Homescreen widget. I want to see what approach a typical clock widget uses for auto-updating the location and for managing system resources. I have developed a widget that does some similar things and I want compare the approach that I used with how someone else did it. b == bob

[android-developers] Re: getting exception while connecting to server via bluetooth

2013-01-04 Thread bob
Well, is your server listening on port one? Port is to be between 1 and 30, and it may not be one if you specified BT_PORT_ANY or a number other than 1 in your server. This line says it is trying to connect on port one: btSocket = (BluetoothSocket) m.invoke(device,Integer.valueOf(1)); On

[android-developers] hi friends

2013-01-04 Thread surya pavan
can you tell me the how to write a code for photoframes and tell me the best tutorial for that .. -- 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

[android-developers] Re: getting exception while connecting to server via bluetooth

2013-01-04 Thread bob
Also, be sure you are paired with the server or use createInsecureRfcommSocket instead of createRfcommSocket. On Wednesday, January 2, 2013 11:02:06 PM UTC-6, Ananda Krishna wrote: hi i have used the reflection method only ..but now i am getting connection variable as false..Kindly tell

[android-developers] Re: hi friends

2013-01-04 Thread Nobu Games
In addition to what bob says: SocketTimeoutException is an IOException. There's a whole bunch of stuff that can go wrong when it comes to IO. The Internet connection could be down, the server you want to contact could be down, the response from the server could be faulty, etc. etc. Your code

[android-developers] Re: Referencing views through instance fields and garbage collection

2013-01-04 Thread Dmitriy F
Hi Mark! So, you basically say there's nothing wrong with storing those references - great ! Thanks for the clarification. пятница, 4 января 2013 г., 14:16:10 UTC+4 пользователь Dmitriy F написал: Correct me if I'm wrong - onStop state destroys view hierarchy of activity/fragment.

[android-developers] Re: setting app theme at runtime

2013-01-04 Thread dashman
Thanks. I see how this can be done. Now from the main app, I open a preferences screen that allows the user to select a theme. But I don't want to restart the app right there - user might want to do other things. From the main app, how can I detect that the Preferences screen was closed.

[android-developers] Re: hi friends

2013-01-04 Thread Lew
sree wrote: i [sic] am reading date value from webservices (DD/MM/) and set these date to textview.After Displaying the values is show like DD/MM/.Here i can store reading date value in one array and these array is bind to textview. But i want to display DD/MM only how. plz

[android-developers] Re: setting app theme at runtime

2013-01-04 Thread bob
Maybe override onBackPressed for the Preferences activity? On Friday, January 4, 2013 1:34:11 PM UTC-6, dashman wrote: Thanks. I see how this can be done. Now from the main app, I open a preferences screen that allows the user to select a theme. But I don't want to restart the app

[android-developers] Re: setting app theme at runtime

2013-01-04 Thread dashman
yes i thought of overriding onStop(). but how to i notify the main activity that the preferences was closed. On Friday, January 4, 2013 2:53:18 PM UTC-5, bob wrote: Maybe override onBackPressed for the Preferences activity? On Friday, January 4, 2013 1:34:11 PM UTC-6, dashman wrote:

[android-developers] Re-installation failed due to different application signatures.

2013-01-04 Thread John Merlino
I'm trying to test the application on an android phone. In Eclipse when I launch the app to the phone, I get this message: Re-installation failed due to different application signatures. You must perform a full uninstall of the application. WARNING: This will remove the application data! Please

Re: [android-developers] Re-installation failed due to different application signatures.

2013-01-04 Thread Mark Murphy
Usually, when you ship a production app (e.g., Play Store), you are using a production signing key. Usually, when you are running the app from Eclipse, you are using your debug signing key. And, usually, these are not the same key. If you simply remove the production app from the device (since

[android-developers] Re: Re-installation failed due to different application signatures.

2013-01-04 Thread bob
Execute '*adb uninstall com.otl.AndroidRemoteApp1*' in a shell. On Friday, January 4, 2013 2:13:59 PM UTC-6, John Merlino wrote: I'm trying to test the application on an android phone. In Eclipse when I launch the app to the phone, I get this message: Re-installation failed due to

[android-developers] Re: setting app theme at runtime

2013-01-04 Thread dashman
seems like starting the preferences activity with startActivityForResult() should work. -- 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] defining an array in arrays.xml

2013-01-04 Thread dashman
I'm defining an array that references a name in styles.xml styles.xml style name=AppBaseThemeLight parent=android:style/Theme.Holo.Light arrays.xml integer-array name=ThemesValues item@id/AppBaseThemeLight/item /integer-array What am I trying to do? I'd like item to hold

[android-developers] Google Map Example Crashes?

2013-01-04 Thread Dan Uff
Hi all, I am very new to Android and Google Maps. I am trying to learn how to put a map in my app by using the below example: https://developers.google.com/maps/documentation/android/start#specify_settings_in_the_application_manifest When I run the example, I get the dreaded The file has

Re: [android-developers] Google Map Example Crashes?

2013-01-04 Thread Mark Murphy
Use LogCat to examine the Java stack trace associated with your crash. On Fri, Jan 4, 2013 at 4:27 PM, Dan Uff danny@gmail.com wrote: Hi all, I am very new to Android and Google Maps. I am trying to learn how to put a map in my app by using the below example:

[android-developers] using IP address 10.0.2.2 for android simulator works, but how do I point to localhost when testing on android device?

2013-01-04 Thread John Merlino
I have ruby on rails web server that my android application talks to. When I connect to 10.0.2.2 on android simulator, it successfully makes contact to web server. However, it does not when I test it on the actual android device using a usb connection and using eclipse. I am forced to use the real

[android-developers] Defining a ListPreference

2013-01-04 Thread dashman
I've got a ListPreference ListPreference android:key=themes_pref android:entries=@array/Themes android:entryValues=@array/ThemesValues / The entryValues points to an array, defined as: string-array name=ThemesValues item@style/AppBaseThemeLight/item

[android-developers] Re: Google Map Example Crashes?

2013-01-04 Thread bob
Make sure you have the right permissions. I bet you need INTERNET permission. On Friday, January 4, 2013 3:27:31 PM UTC-6, Dan Uff wrote: Hi all, I am very new to Android and Google Maps. I am trying to learn how to put a map in my app by using the below example:

[android-developers] Re: using IP address 10.0.2.2 for android simulator works, but how do I point to localhost when testing on android device?

2013-01-04 Thread bob
Maybe use an Ethernet cable to connect your web server to your Wifi router? You need to put the web server on the Wifi LAN. On Friday, January 4, 2013 3:58:53 PM UTC-6, John Merlino wrote: I have ruby on rails web server that my android application talks to. When I connect to 10.0.2.2

Re: [android-developers] Re: using IP address 10.0.2.2 for android simulator works, but how do I point to localhost when testing on android device?

2013-01-04 Thread Robert Greenwalt
I think you can use USB tethering (provided your device/carrier let you) and use the local ip assigned to the PC's side of the usb link. Wifi should also work. On Fri, Jan 4, 2013 at 2:27 PM, bob b...@coolfone.comze.com wrote: Maybe use an Ethernet cable to connect your web server to your

[android-developers] Re: setting app theme at runtime

2013-01-04 Thread dashman
from the closing Activity, when and where should setResult() be called. trying to send the result back to the activity waiting for startActivityForResult(). I did it in onStop() - and it always returns RESULT_CANCELED even though i hard-coded a RESULT_OK. seems like RESULT_CANCELED is being

Re: [android-developers] Re: Google Map Example Crashes?

2013-01-04 Thread TreKing
On Fri, Jan 4, 2013 at 4:23 PM, bob b...@coolfone.comze.com wrote: Make sure you have the right permissions. I bet you need INTERNET permission. Which he has, according to the manifest he posted with his question ...

Re: [android-developers] Re: setting app theme at runtime

2013-01-04 Thread TreKing
On Fri, Jan 4, 2013 at 4:51 PM, dashman erjdri...@gmail.com wrote: from the closing Activity, when and where should setResult() be called. Before you call finish() on it. trying to send the result back to the activity waiting for startActivityForResult(). What is the result? Don't you

Re: [android-developers] Re: setting app theme at runtime

2013-01-04 Thread dashman
after much experimentation - this works public void onBackPressed() { setResult( RESULT_OK ); // whatever result user wants sent back // then call either one of the lines below - not sure which one is better super.onBackPressed();

Re: [android-developers] using IP address 10.0.2.2 for android simulator works, but how do I point to localhost when testing on android device?

2013-01-04 Thread Kevin Duffey
Not entirely sure from your post... Is your actual device on wifi and using the same network as your server? I have two networks in my house and sometimes forget to configure the phone on the same one as my server. To complicate things I run my servers in kvm instances but I am still able to

Re: [android-developers] Re: setting app theme at runtime

2013-01-04 Thread TreKing
On Fri, Jan 4, 2013 at 5:15 PM, dashman erjdri...@gmail.com wrote: // then call either one of the lines below - not sure which one is better super.onBackPressed(); //finish(); } Same diff. I believe super.onBackPressed() just calls finish() (you can check this easily).

Re: [android-developers] hi friends

2013-01-04 Thread Kevin Duffey
Not sure your question You want someone to write the code for you? What is photo frames... Links to screen shots or examples might help. On Jan 4, 2013 8:33 AM, surya pavan tsuryapa...@gmail.com wrote: can you tell me the how to write a code for photoframes and tell me the best tutorial

[android-developers] Re: Defining a ListPreference

2013-01-04 Thread Jonathan S
on string-array, it is expect to have string values. you have to do some java code to set theme then restarts the activity. On Friday, January 4, 2013 5:15:36 PM UTC-5, dashman wrote: I've got a ListPreference ListPreference android:key=themes_pref

[android-developers] Fwd:

2013-01-04 Thread nikhil agrawal
http://majootero.com.ar/ewpcjyq.php -- 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: Provide notification to Android app whenever SQLite table updates

2013-01-04 Thread Nobu Games
Some piece of code of yours must be responsible for writing to the database. Let that piece of code send a notification broadcast or something like that about the applied changes. So whatever other part of your app which needs to be notified about these updates can listen to these broadcasts

[android-developers] Re: How To: Provide notification to Android app whenever SQLite table updates

2013-01-04 Thread G. Blake Meike
You should probably have a look at ContentResolver.notifyChange and registerContentObserver. Look at the implementation of Cursor.setNotificationUri. These won't help you monitor access to the DB, but they are a great way of monitoring changes to the data that the DB contains. G. Blake Meike

[android-developers] Hi bros

2013-01-04 Thread sree android
Hi friends, See The above attachment image.In that i implemented CustomListView and text are retrive from SOAP webservices. But When i click on ListView,i cant get any response. Why suggest me,What is the problem. list.setOnItemClickListener(this); @Override public void

[android-developers] Re: Hi bros

2013-01-04 Thread Jonathan S
list.setOnItemClickListener( new OnItemClickListener() { public void onItemClick(AdapterView? arg0, View arg1, int position, long arg3) { Toast.makeText(TasksActivity.this,I am clicked on Item Number is:+position,3000).show(); } }); On Saturday, January 5, 2013 1:49:33 AM UTC-5,

Re: [android-developers] Re: Hi bros

2013-01-04 Thread sree android
It is not Working bro. -- 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

Re: [android-developers] Hi bros

2013-01-04 Thread TreKing
On Sat, Jan 5, 2013 at 12:49 AM, sree android android.sreeni...@gmail.comwrote: suggest me,What is the problem. Look at the documentation for makeText. You're using it wrong. - TreKing