Re: [android-developers] How to change Format of the Facebook SDK "Created_Time"

2016-02-23 Thread Ralph Bergmann | the4thFloor.eu
Am 23.02.16 um 16:26 schrieb Mark van Limburg: According to the earlier pasted Class file, where would you paste the SimpleDataFormat code? You have this 2 lines in your code feeds.add(pagefeed.getJSONObject(l).getString("created_time"));

Re: [android-developers] How to change Format of the Facebook SDK "Created_Time"

2016-02-23 Thread Ralph Bergmann | the4thFloor.eu
Am 23.02.16 um 15:22 schrieb Mark van Limburg: Can someone help me where i should post the code and what kind of code for using simple date format? You can use Androids SimpleDateFormat to parse the date http://developer.android.com/reference/java/text/SimpleDateFormat.html If you need more

Re: [android-developers] Use gradle variable in java (Android Studio)

2016-01-27 Thread Ralph Bergmann | the4thFloor.eu
Am 27.01.16 um 17:03 schrieb Adrian Ivasku: > I have in my gradle file something like : > > String packageName = com.test.free > > > Now I want this String packageName to use in my java class. You can access the packageName from your app with BuildConfig.APPLICATION_ID For your own

[android-developers] Network Service Discovery discovers nothing on Android L

2014-09-28 Thread Ralph Bergmann | the4thFloor.eu
Hello, I played a little bit with this example: http://developer.android.com/training/connect-devices-wirelessly/nsd.html But on Android L it discovers nothing. The same code on KitKat discovers the expected services. Is this a know issue? I found nothing about it at

Re: [android-developers] Screencast in Android

2014-08-22 Thread Ralph Bergmann | the4thFloor.eu
Am 21.08.14 um 19:14 schrieb Rahul Raja: Hey Is there a good app or method by which i can make a screencast for one of my Android application? http://developer.android.com/tools/help/adb.html#screenrecord signature.asc Description: OpenPGP digital signature

Re: [android-developers] TextView maxLines based on height

2014-02-15 Thread Ralph Bergmann | the4thFloor.eu
Am 13.02.14 03:54, schrieb Ankur Avlani: Can someone please suggest me some faster was to achieve my requirement. try this one: /** * Calculates the lines needed to show the text. * * @param paint * the TextPaint from the TextView * @param text * the text for the

[android-developers] Notification with TaskStackBuilder.getPendingIntent() is not open the Activity on Nexus7 2012 with KitKat

2013-12-06 Thread Ralph Bergmann | the4thFloor.eu
Hello, I have a problem to open a activity from a notification with a PendingIntent from a TaskStackBuilder. See this bug report: https://code.google.com/p/android/issues/detail?id=63236 Has anyone run into the same problem? Ralph signature.asc Description: OpenPGP digital signature

[android-developers] Adding Fragments to a LinearLayout programmatically

2013-08-30 Thread Ralph Bergmann | the4thFloor.eu
I am trying to add nested child Fragments into a parent Fragment. All works fine but At first my code: public class FragmentDatasheetWithHeader extends Fragment { private long mRowId; private String mSid; @Override public View onCreateView(final LayoutInflater inflater,

Re: [android-developers] Adding Fragments to a LinearLayout programmatically

2013-08-30 Thread Ralph Bergmann | the4thFloor.eu
Am 31.08.13 02:02, schrieb TreKing: 1 - Debug your app and gather more information. I debugged it. The createUI() method is called once. Ralph -- 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] ShareActionProvider: How to overwrite sharing behaviour?

2013-07-25 Thread Ralph Bergmann | the4thFloor.eu
Hello, I can add a OnShareTargetSelectedListener to the ShareActionProvider to get notified if a share target is selected (boolean onShareTargetSelected (ShareActionProvider source, Intent intent)). public abstract boolean onShareTargetSelected (ShareActionProvider source, Intent intent)

Re: [android-developers] ShareActionProvider: How to overwrite sharing behaviour?

2013-07-25 Thread Ralph Bergmann | the4thFloor.eu
for consistency. What I not understand: How to overwrite the sharing behaviour? I think the method has to return true if the intent is handled and should not be delivered to clients. But the method returns always false :-( Ralph -- Ralph Bergmann iOS and Android app developer www

[android-developers] VM does not provide monitor information

2013-07-21 Thread Ralph Bergmann | the4thFloor.eu
Hello, I want to debug my app but when a breakpoint is reached I got this message: VM does not provide monitor information What's wrong? Ralph -- -- 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] Re: Updated to ADT 22: 'R cannot be resolved to a variable'

2013-05-16 Thread Ralph Bergmann | the4thFloor.eu
Am 16.05.13 11:18, schrieb BoD: Indeed if I look inside the 'gen' folder, nothing is there. I had the problem too, there is a new Android SDK Bild-tools. Open the Android SDK Manager and make a update, maybe twice. Ralph -- -- You received this message because you are subscribed to the

Re: [android-developers] Re: String.replaceAll with regular expression

2013-04-07 Thread Ralph Bergmann | the4thFloor.eu
Am 07.04.13 09:34, schrieb Lew: Ralph Bergmann wrote: Caused by: java.util.regex.PatternSyntaxException: Invalid value for match mode flags near index 4: (?w=[0-9]+) ^ I found it, the problem is the ? at the beginning. It is also a regex metacharacter. ([?]w=[0-9]+) works

[android-developers] String.replaceAll with regular expression

2013-04-06 Thread Ralph Bergmann | the4thFloor.eu
Hello, I want to replace parts of a string but get an error :-( The code: String reSiezedURL = foo; reSiezedURL = reSiezedURL.replaceAll((?w=[0-9]+), String.format(?w=%d, this.reqWidth)); reSiezedURL = reSiezedURL.replaceAll((w=[0-9]+), String.format(w=%d, this.reqWidth)); reSiezedURL =

[android-developers] reusing AsyncTaskLoader with always fresh data

2013-04-03 Thread Ralph Bergmann | the4thFloor.eu
Hello, I wont to reuse my AsyncTaskLoader. To do it I call: LoaderResult loader = getLoaderManager().initLoader(0, args, this); loader.startLoading(); In this startLoading method is a if-statment: if (info.mHaveData mStarted) { // If the loader has already generated its data, report it

Re: [android-developers] Re: reusing AsyncTaskLoader with always fresh data

2013-04-03 Thread Ralph Bergmann | the4thFloor.eu
Am 03.04.13 15:37, schrieb Streets Of Boston: The call to getLoaderManager().initLoader(0, args, this); is enough to have your Loader run at least the first time it is created. Do *not *call 'startLoading()'. yeah... reading helps :-) startLoading() This function will normally be called

Re: [android-developers] google map problem

2012-11-28 Thread Ralph Bergmann | the4thFloor.eu
Am 20.11.12 15:14, schrieb doğan: I want to use google map api .But i have problem about show the coordinates.I added a screencast and some part of codes.Any idea this problem? do you use the right Maps Api key? https://developers.google.com/android/maps-api-signup You need one for

Re: [android-developers] Re: HttpURLConnection on Galaxy Nexus 4.2

2012-11-28 Thread Ralph Bergmann | the4thFloor.eu
Am 27.11.12 11:40, schrieb Fritjof: Integer.parseInt(Build.VERSION.SDK) 13) why you parse a int to Integer and let it automatically convert (unboxing) to int? http://javarevisited.blogspot.de/2012/07/auto-boxing-and-unboxing-in-java-be.html Ralph -- You received this message because you

Re: [android-developers] Re: You need to enter a valid Youtube address.

2012-11-19 Thread Ralph Bergmann | the4thFloor.eu
Am 19.11.12 09:39, schrieb Keith Wiley: I also tried the youtube short URL, btw, i.e., http://youtu.be/XXX . http://youtu.be/KmBVrga0mGw I have added this video with success http://www.youtube.com/watch?v=zHirwKGEfoE Ralph -- You received this message because you are subscribed to

Re: [android-developers] http post NetworkOnMainThreadException

2012-10-26 Thread Ralph Bergmann | the4thFloor.eu
http://developer.android.com/training/basics/network-ops/connecting.html#AsyncTask Am 26.10.12 11:38, schrieb Amey Bapat: On Thu, Oct 25, 2012 at 4:40 PM, aueddonline commsult...@gmail.com laptop. The webpage outputs some JSON also shown below; However I am getting a

Re: [android-developers] Google Checkout Account

2012-10-24 Thread Ralph Bergmann | the4thFloor.eu
Am 24.10.12 09:27, schrieb katarina: But when we try to open up a Google Checkout account from Canada it will not let us do, because only options for addresses are US and UK. As well as the tax information. read this: https://groups.google.com/d/msg/android-developers/CDUCZVQ_PEA/Q-3ohhhD33AJ

Re: [android-developers] In-app billing for canadian

2012-10-14 Thread Ralph Bergmann | the4thFloor.eu
Am 13.10.12 18:31, schrieb MathieuB: to look at implementing in-app billing, when I faced the fact that canadian CANNOT open google merchant account... I was a bit shocked. are you sure? In-app billing is available to developers in supported locations for merchants.

Re: [android-developers] In-app billing for canadian

2012-10-14 Thread Ralph Bergmann | the4thFloor.eu
Am 14.10.12 19:41, schrieb MathieuB: Thought the same thing when I read it, they said it clear. But when it's time to open a google checkout account so I can receive money, it says only available to US and UK... I have a account in Germany, I think there is something else wrong :-( Ralph --

[android-developers] PARTIAL_WAKE_LOCK and Android 2.3.x

2012-07-24 Thread Ralph Bergmann | the4thFloor.eu
Hello, what is the magic with wake locks? I try to prevent that the phone is going to sleep. Here my code (snippet): public class GPSListenerHandler extends Handler implements GpsStatus.Listener, LocationListener { private WakeLock wakeLock; protected boolean

[android-developers] app crashes when a map view is added

2012-07-21 Thread Ralph Bergmann | the4thFloor.eu
Hello, on all my Android 4.x devices the app crashes when I restart the app via Eclipse and the MapView is visible. You can find a example app here: https://github.com/the4thfloor/AndroidMapViewCrashTest Import this project and press play in Eclipse. In the app press the buttons until the

Re: [android-developers] app crashes when a map view is added

2012-07-21 Thread Ralph Bergmann | the4thFloor.eu
Am 21.07.12 19:31, schrieb TreKing: As the stacktrace explicitly tells you, you have a NullPointer at line 482 of LoadedApk.java. Use your debugger to determine what is null, then make it not null. The LoadedApk.java is from the system not from me. And when you look at the example project the

Re: [android-developers] Re: Handling Bitmap Out of Memory Error

2012-07-17 Thread Ralph Bergmann | the4thFloor.eu
Am 17.07.12 09:22, schrieb Francisco M. Marzoa Alonso: GC does NOT take care of recycling Bitmaps, so the answer is that YOU should do that. public void recycle () ... This is an advanced call, and normally need not be called, since the normal GC process will free up this memory when there are

Re: [android-developers] hierarchy viewer shows nothing/AVDs not being reused

2012-06-21 Thread Ralph Bergmann | the4thFloor.eu
Am 21.06.12 01:29, schrieb nchubrich: From what I understand it has to be run through an emulator unless I have a developer build on my phone. But I still don't get any you can use your phone, take a look at https://github.com/romainguy/ViewServer ralph -- You received this message

[android-developers] debugging USB Host

2012-06-20 Thread Ralph Bergmann | the4thFloor.eu
Hello, When debugging applications that use USB accessory or host features, you most likely will have USB hardware connected to your Android-powered device. This will prevent you from having an adb connection to the Android-powered device via USB. You can still access adb over a

Re: [android-developers] Re: debugging USB Host

2012-06-20 Thread Ralph Bergmann | the4thFloor.eu
Am 20.06.12 12:01, schrieb Hemanth(ヘマント): You can remove the USB cable connected to the host, after step 2. Once the port is forwarded, you can connect from the host over WiFi thanks a lot, it works :-) Ralph -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] Long press on the Google map secret?

2012-06-17 Thread Ralph Bergmann | the4thFloor.eu
try this: import java.util.Timer; import java.util.TimerTask; import android.content.Context; import android.util.AttributeSet; import android.view.MotionEvent; import com.google.android.maps.GeoPoint; import com.google.android.maps.MapView; public class MyLongpressMapView extends MapView {

Re: [android-developers] Long press on the Google map secret?

2012-06-17 Thread Ralph Bergmann | the4thFloor.eu
here the link :-) http://www.kind-kristiansen.no/2011/android-handling-longpresslongclick-on-map-revisited/ -- 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] QR Code Scaning

2012-06-12 Thread Ralph Bergmann | the4thFloor.eu
Am 07.06.12 15:11, schrieb sujit dubey: Is there Way to include qr code scaning in app without using zxing library, as a standalone app, with ui of my choice http://android-developers.blogspot.de/2012/02/share-with-intents.html -- You received this message because you are subscribed to the

Re: [android-developers] Svg to hdpi, mdpi, ldpi

2012-06-02 Thread Ralph Bergmann | the4thFloor.eu
Am 02.06.12 00:31, schrieb Jeremy Villalobos: On build, the plugin creates the png's from the svg's, but the svgs are not added to the release package. Is there such a tool ? http://digitalsquid.co.uk/patchworker/ http://code.google.com/p/svg-android/ -- You received this message because

[android-developers] android:onClick and fragments

2012-05-28 Thread Ralph Bergmann | the4thFloor.eu
Hello, In the layout of my fragment I have a ImageButton where I use the android:onClick option. But when I tap on the button I get this error: Failed to handle callback; interface not implemented, callback:android.view.View$PerformClick@410a5308 java.lang.IllegalStateException: Could not find

[android-developers] SQLiteException: no such table

2012-05-24 Thread Ralph Bergmann | the4thFloor.eu
Hello, my app was released a year ago or so, but now one year later, I get the following error message: android.database.sqlite.SQLiteException: no such table: tracking: , while compiling: SELECT _id, ... How can it happen that the table does not exist? In one installation of thousands? The

[android-developers] java.lang.ClassNotFoundException

2012-05-24 Thread Ralph Bergmann | the4thFloor.eu
Hello, how can the following error happens? The app was build and exported via Eclipse. It has over 2300 installations but one user reports this error. java.lang.RuntimeException: Unable to instantiate application de.sportscheck.SportScheckApplication: java.lang.ClassNotFoundException:

Re: [android-developers] Google Mapview

2012-04-11 Thread Ralph Bergmann | the4thFloor.eu
Am 11.04.12 10:30, schrieb Mini agrawal: Can you please explain in bit more details? On Wed, Apr 11, 2012 at 1:14 AM, Mark Murphy mmur...@commonsware.com mailto:mmur...@commonsware.com wrote: startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(geo:45,-110)));

[android-developers] AndroidHttpClient HttpGet with Basic Authorization

2012-04-01 Thread Ralph Bergmann | the4thFloor.eu
Hallo, why I can't add a Authorization header field to my get request? AndroidHttpClient client = AndroidHttpClient.newInstance(useragent); HttpParams httpParams = new BasicHttpParams(); HttpConnectionParams.setConnectionTimeout(httpParams, 15 * 1000);

Re: [android-developers] AndroidHttpClient HttpGet with Basic Authorization

2012-04-01 Thread Ralph Bergmann | the4thFloor.eu
found an example http://www.android-dev-faq.com/2011/11/how-to-make-httpdigest-client.html Am 01.04.12 20:25, schrieb Ralph Bergmann | the4thFloor.eu: Hallo, why I can't add a Authorization header field to my get request? AndroidHttpClient client = AndroidHttpClient.newInstance

Re: [android-developers] date format problem

2012-03-30 Thread Ralph Bergmann | the4thFloor.eu
HH:mm:ss Z, Locale.ENGLISH); Ralph -- Ralph Bergmann iOS and Android app developer www http://www.the4thFloor.eu | http://www.dasralph.de mail ra...@the4thfloor.eu skypedasralph xing http://www.xing.com/profile/Ralph_Bergmann3 linkedin

Re: [android-developers] XML Parsing w/ DocumentBuilder

2012-03-30 Thread Ralph Bergmann | the4thFloor.eu
I have not tried it but I think the 3rd child of the item element is the title element. But you need the text child from this title element. Ralph -- Ralph Bergmann iOS and Android app developer www http://www.the4thFloor.eu | http://www.dasralph.de mail ra

Re: [android-developers] Re: Referring other library projects from within a library project.

2012-03-27 Thread Ralph Bergmann | the4thFloor.eu
Am 27.03.12 20:43, schrieb Y2i: It was working for me before R17 tools were available and works with R17 tools too. +1 -- 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] Re: Calendar edit event force close error....

2012-03-26 Thread Ralph Bergmann | the4thFloor.eu
by: java.lang.NullPointerException 03-26 15:53:22.707: E/AndroidRuntime(2065): at java.util.TimeZone.getTimeZone(TimeZone.java:286) -- Ralph Bergmann iOS and Android app developer www http://www.the4thFloor.eu | http://www.dasralph.de mail ra...@the4thfloor.eu skype

[android-developers] Multi-pane Layout

2012-03-26 Thread Ralph Bergmann | the4thFloor.eu
Hi, I want to know: how to design a multi pane layout with more than 2 panes? I found examples with 2 panes. But how to design the layout when I wont more panes (with different widths)? Example: Main pane a and pane b are visible. The user clicks on an entry on pane b. Pane a goes off to the

Re: [android-developers] facepreview20120218.apk does not install with adb

2012-03-18 Thread Ralph Bergmann | the4thFloor.eu
Am 18.03.12 10:57, schrieb karan hans: Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES] Is it really so difficult to read, understand and/or to google the error message?

Re: [android-developers] ListFragment fails on setContentView

2012-03-18 Thread Ralph Bergmann | the4thFloor.eu
Am 18.03.12 12:29, schrieb Jim Andresakis: and heres the layout were I call my fragment. ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=match_parent android:layout_height=match_parent

Re: [android-developers] facepreview20120218.apk does not install with adb

2012-03-17 Thread Ralph Bergmann | the4thFloor.eu
Am 17.03.12 16:41, schrieb karan hans: Failure [INSTALL_FAILED_ALREADY_EXISTS] ^^ Ralph -- 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] CalendarContract on Samsung's ICS update

2012-03-16 Thread Ralph Bergmann | the4thFloor.eu
Am 16.03.12 13:51, schrieb roee88: It works fine on Galaxy Nexus and other ICS devices and ROMs. On Samsung SGSII with their recent ICS update it simply doesn't do anything. I think this happens because the SGS2 does not have the Google calendar app. Samsung use their own calendar app which

Re: [android-developers] Facebook integration

2012-03-12 Thread Ralph Bergmann | the4thFloor.eu
Am 12.03.12 11:55, schrieb Live Happy: i have integrate face book in my android application but it there a way to get the online friends and also can i write a message to the inbox not to the wall of friends ? is a little bit off-topic

Re: [android-developers] [Android - developers] Exponential Smoothing on Latitude and Langitude

2012-03-12 Thread Ralph Bergmann | the4thFloor.eu
Am 12.03.12 14:50, schrieb agung wiguna johan: Can somebody help me ? I don't have idea what filtering that i can use to clean noise from latitude and longitude I had the same problem. I've filtered the data as follows. 1) max. accuracy 2) max. speed from one point to the next point 3) Kalman

Re: [android-developers] Re: Data written to SQLite database not immediately available

2011-12-23 Thread Ralph Bergmann | the4thFloor.eu
Am 23.12.11 00:06, schrieb lbendlin: it's not a bug, that's how SQLite works. You can't have concurrent writes. Not sure how the content provider buffers this but if you do plain SQLite you are basically blocking the database with each write, and you need to use semaphores to manage that. I

Re: [android-developers] ListView scroll lag with images

2011-10-18 Thread Ralph Bergmann | the4thFloor.eu
Am 18.10.11 13:27, schrieb Sharief Shaik: thread. The problem is the ListView scroll is very laggy. What should we do to fix this problem? try this: http://www.vogella.de/articles/AndroidListView/article.html#listsactivity_performance -- You received this message because you are subscribed

Re: [android-developers] How to display search button in actionbar on tablet (app minSdk = 8)

2011-10-09 Thread Ralph Bergmann | the4thFloor.eu
take a look at http://developer.android.com/guide/topics/search/search-dialog.html#UsingSearchWidget and http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/SearchViewActionBar.html Am 09.10.11 22:58, schrieb Jean-Michel: Hi guys, I just (late and

Re: [android-developers] google map direction jar file

2011-10-05 Thread Ralph Bergmann | the4thFloor.eu
Am 05.10.11 07:45, schrieb Goutom: I want to get the direction from one GeoPoint to another GeoPoint. [...] Any alternate solutions? you can also use the webservice from google http://code.google.com/intl/en/apis/maps/documentation/directions/ ralph -- You received this message because you

Re: [android-developers] ExtentedListView and Fragment.

2011-09-30 Thread Ralph Bergmann | the4thFloor.eu
Am 30.09.11 11:12, schrieb Akhilesh Mani: I want to develop a screen like this(attachment),with help of ExtentedListView and Fragment. Please suggest me. take a look at the Honeycomb Gallery http://developer.android.com/resources/samples/HoneycombGallery/index.html -- You received this

Re: [android-developers] USB Host API on XOOM tablet

2011-09-29 Thread Ralph Bergmann | the4thFloor.eu
Am 23.09.11 16:27, schrieb Anil Sasidharan: It would be great to know if anyone has tested Android's USB Host API on any tablet device especially Motorola XOOM. I would really appreciate your comments/suggestions. I tried the missile launcher app from the sample projects. It does not work on

Re: [android-developers] ProgressBar in ActionBar

2011-09-27 Thread Ralph Bergmann | the4thFloor.eu
Am 27.09.11 09:04, schrieb Isambert: I would like to implement something similar as what is present in Gmail's ActionBar on Honeycomb. I mean, when you click on the refresh take a look at the google io app - http://code.google.com/p/iosched/ there is also a refresh button -- You received

Re: [android-developers] plz help..!!!

2011-09-27 Thread Ralph Bergmann | the4thFloor.eu
Am 27.09.11 18:13, schrieb Divyata P: *how to solve error given below..!!!* read the error message Are you missing a call to unregisterReceiver()? -- 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] [Fragments/supportv4] How do I make ViewPager/TabHost attatch all tabs and not just the current and the one next to it?

2011-09-16 Thread Ralph Bergmann | the4thFloor.eu
/AndroidSupportV2/src/android/support/v2/view/ViewPager.java http://developer.android.com/reference/android/widget/ViewAnimator.html -- Ralph Bergmann iOS and Android app developer www http://www.the4thFloor.eu | http://www.dasralph.de mail ra...@the4thfloor.eu skype

Re: [android-developers] Re: Out Of Memory Error with Images loaded through XML

2011-09-15 Thread Ralph Bergmann | the4thFloor.eu
Am 15.09.11 06:47, schrieb Sorab Pithawala: I have made a ZIP file containing the code, XML and a small readme. Why do you do it that way: h1 = BitmapFactory.decodeResource(res, R.drawable.help1_l); ImageView im = (ImageView) findViewById(R.id.helpImage); im.setImageBitmap(h1); and not like

Re: [android-developers] JSON android

2011-09-05 Thread Ralph Bergmann | the4thFloor.eu
); } else if (test instanceof JSONArray) { Log.i(test, JSONArray); } test = jArray; if (test instanceof JSONObject) { Log.i(test, JSONObject); } else if (test instanceof JSONArray) { Log.i(test, JSONArray); } -- Ralph Bergmann iOS and Android app developer www http

Re: [android-developers] Read ms word document

2011-08-29 Thread Ralph Bergmann
Am 29.08.11 03:19, schrieb imsmooth: I know how to read a text file How do I read a ms word (doc) file? http://poi.apache.org/ -- 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] Image manipulation similar to google+ app

2011-08-27 Thread Ralph Bergmann
Am 28.08.11 02:11, schrieb TreKing: On Sat, Aug 27, 2011 at 5:53 AM, charlie babitt charlie.bab...@gmail.com mailto:charlie.bab...@gmail.com wrote: What is the easiest way to achieve something like this? I want to create an ImageView which contains an image (I'm loading it from the

Re: [android-developers] how to get the view size after orientation changed

2011-08-24 Thread Ralph Bergmann
Hi, Am 23.08.11 19:05, schrieb Dianne Hackborn: You need to participate in the view hierarchy as a layout manager, do get the onSizeChanged() calls and such. Code like this is almost guaranteed to be broken. If you want to do stuff based on view layout, implement a layout manager. thank

Re: [android-developers] Re: how to retrieve images from a sql database?

2011-08-24 Thread Ralph Bergmann
Am 24.08.11 16:21, schrieb Abhi: The field type for image column is BLOB. And I have no idea what that means. I am trying to figure out a way to retreive BLOB data into my Android application and display it on the screen. write: ByteArrayOutputStream out = new ByteArrayOutputStream(); Bitmap

[android-developers] how to get the view size after orientation changed

2011-08-23 Thread Ralph Bergmann
Hi, where is the right point to get the size of a view after the orientation has changed? I have overwritten the onConfigurationChanged method: public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); final int viewWidth =

[android-developers] ViewAnimator

2011-07-13 Thread Ralph Bergmann
Hello, I use a ViewAnimator to switch between some views. The problem is that the current view does not get an event that it comes to foreground. When I switch between the views how can I tell the current view that it came to foreground? Is there a method to call which calls the onResume

[android-developers] rounded corner // Shape Drawable (via xml) vs. PNG

2011-07-07 Thread Ralph Bergmann
Hi, On stackoverflow I found a question about creating a rounded corner graphic. http://stackoverflow.com/questions/1683185/android-listview-with-rounded-corners The solution was to create a shape drawable via xml file. My question: Why he/she recommends a shape drawable xml file and not a

[android-developers] ViewAnimator - animation is finished?

2011-06-26 Thread Ralph Bergmann
Hi, I use a ViewAnimator and want to know when the showNext() / showPrevious() animation is finished. How can I do this? Is there a listener for that? The LayoutAnimationListener doesn't help me, it doesn't get any events. Ralph -- You received this message because you are subscribed to

[android-developers] search suggestions

2011-06-26 Thread Ralph Bergmann
Hi, I followed the description in this article to implement the search system, everything works fine. http://developer.android.com/guide/topics/search/index.html But I dont understand the the user selects a suggestion behavior. The user enter a search string in the textfield and the system

Re: [android-developers] search suggestions

2011-06-26 Thread Ralph Bergmann
Am 26.06.11 17:26, schrieb Ralph Bergmann: What goes wrong? I found it, I forgot android:searchSuggestIntentAction=android.intent.action.VIEW android:searchSuggestIntentData=content://xxx -- You received this message because you are subscribed to the Google Groups Android Developers group

Re: [android-developers] About Google Maps Api without google add-on

2011-05-25 Thread Ralph Bergmann
Am 25.05.11 12:07, schrieb j0nSn0w: I'm developing an application using galaxy tab emulator as build target. I'd like to use Google Maps library in my application; but following the instructions on Google Maps site, I will have to set the build target for my application to google add-on. In

[android-developers] extra data for search suggestions content provider

2011-05-23 Thread Ralph Bergmann
Hi, when I overwrite public boolean onSearchRequested() I can send some extra data to the search activity. [1] But how can I access this data in my suggestions content provider? Ralph [1] ... http://developer.android.com/guide/topics/search/search-dialog.html#SearchContextData -- You

[android-developers] 9patch only stretchable

2011-05-20 Thread Ralph Bergmann
Hi, Is a 9-patch only stretchable or is it also compressible? What happens when the 9-patch is too big? Ralph -- 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] Why is my progress bar not visible?

2011-05-10 Thread Ralph Bergmann
it is not visible when I call setProgressBarIndeterminateVisibility(true); ? In another activity it works. Ralph -- Ralph Bergmann www http://www.dasralph.de/ mail ra...@dasralph.de skypedasralph facebook http://www.facebook.com/dasralph xing

Re: [android-developers] Async Task or Spawn a Thread?

2011-05-07 Thread Ralph Bergmann
://developer.android.com/resources/articles/painless-threading.html -- Ralph Bergmann www http://www.dasralph.de/ mail ra...@dasralph.de skypedasralph facebook http://www.facebook.com/dasralph xing http://www.xing.com/profile/Ralph_Bergmann3

Re: [android-developers] Motorola xoom is xhdpi?

2011-05-02 Thread Ralph Bergmann
-programming-tips/?utm_campaign=xoompsutm_medium=mwsutm_source=specs -- Ralph Bergmann www http://www.dasralph.de/ mail ra...@dasralph.de skypedasralph facebook http://www.facebook.com/dasralph xing http://www.xing.com/profile

[android-developers] PDF

2011-04-07 Thread Ralph Bergmann
Hi, I would like to know is there a way/framework to open/show a PDF in my own App? Or is the only way to open it with an PDF reader (external app)? Ralph -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] how to catch a http 403 error

2010-07-06 Thread Ralph Bergmann
Hi @all, how can I catch a HTTP 403 error? I use the HttpURLConnection to establish a HTTP connection with Base Authentication. When the authentication fails I get a FileNotFoundException :-( Why I doesn't get a HttpResponseException? Ralph -- You received this message because you are

[android-developers] accessing contentprovider

2010-07-01 Thread Ralph Bergmann
hi, how can i access a content provider from a pojo? all ways i found depends on that my class extends Activity :-( ralph p.s. api version 3 -- 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] Re: capture outgo ing sms in android

2010-05-21 Thread Ralph Bergmann
Am 21.05.10 11:33, schrieb Jiang: 2, Register an content observer for content://sms but remember: http://android-developers.blogspot.com/2010/05/be-careful-with-content-providers.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] content://sms/

2010-05-14 Thread Ralph Bergmann
Hi, I have a question about the content://sms/ provider. I use it in my app but can't find any official documentation about it :-( Is it to old? Or to new? Can I use it or is it deprecated and will removed in future? Ralph -- You received this message because you are subscribed to the

[android-developers] Eclipse setup - how can I run the Email app from the plattform source

2010-04-05 Thread Ralph Bergmann
-- Ralph Bergmann www http://www.dasralph.de/ mail ra...@dasralph.de skypedasralph xing http://www.xing.com/profile/Ralph_Bergmann3 linkedin http://www.linkedin.com/in/ralphbergmann facebook http://www.facebook.com/dasralph pgp

[android-developers] email crashed

2010-03-29 Thread Ralph Bergmann
Hi, since a couple of days the com.android.email app crashes. How can I found out why it crashed? I only see the following message: The application Email (process com.android.email) has stopped unexpectedly. Please try again. I have a Nexus One with Android 2.1-update1 (build ERE27). Ralph

Re: [android-developers] Re: email crashed

2010-03-29 Thread Ralph Bergmann
Am 29.03.10 13:41, schrieb Kumar Bibek: Use the SendLog app to see the log okay... but who can fix it? Ralph 03-29 14:45:50.629 E/AndroidRuntime( 2987): Uncaught handler: thread Thread-7 exiting due to uncaught exception 03-29 14:45:50.629 E/AndroidRuntime( 2987):

Re: [android-developers] Re: How to test sample Bluetooth application in Android emulator?

2010-03-16 Thread Ralph Bergmann
Am 16.03.10 16:56, schrieb Jerome White: emulator? And when I fire up the example on one Android, I get a message saying Bluetooth is not available -- am I running the wrong emulator version? Is there a parameter I need to pass to the emulator Bluetooth FAQ: Q. Does the emulator support

Re: [android-developers] Re: How to test sample Bluetooth application in Android emulator?

2010-03-16 Thread Ralph Bergmann
On Feb 2, 6:26 am, Raj rajapandian...@gmail.com wrote: I read some thing connect external USBBluetooth dongle to the Mechine and bridge that dongle to android emulator.But they didn't provided the steps.Now i plugged the USBBluetoothdongle to my System and i do not how to bridge that with