Re: [android-developers] Re: Hardware accleration slow down every Canvas app. Why?

2012-07-19 Thread Piren
Hi Guy, thanks for the reply Though it does make sense, i'm not seeing it happening. I'm not using any special effects on that ListView and i've also tested on a Samsung Galaxy S2 (i9100G), which has the same GPU and CPU (though a slightly older chipset) and unlike the Nexus, it gets a major

Re: [android-developers] Re: Hardware accleration slow down every Canvas app. Why?

2012-07-19 Thread Piren
acceleration and perform better with it.) On Thu, Jul 19, 2012 at 10:33 AM, Piren gpi...@gmail.com wrote: Hi Guy, thanks for the reply Though it does make sense, i'm not seeing it happening. I'm not using any special effects on that ListView and i've also tested on a Samsung Galaxy S2 (i9100G

Re: [android-developers] Re: Jelly bean swiping task away from task list kills service

2012-07-22 Thread Piren
I always wondered about this feature... i found out Foreground services keep on running by accident... kinda surprised me since you then have to make sure the code knows how to retain information the Service is responsible of if the UI is brought back up. Is any of this documented anywhere? i

[android-developers] Re: Add Contacts to Android Native Phone Book

2012-09-20 Thread Piren
I'm experiencing a similar issue. The contact is inserted without an issue, but on JB (only on JB) it has a button stating Add to My Contacts. Pressing that button causes a crash in the native contact fragment: 09-06 15:45:01.402 307 626 I ActivityManager: Start proc com.android.contacts

[android-developers] Re: .xml and .Java file names for the main activity?

2012-09-20 Thread Piren
Android doesn't have a Main Activity or class like there is in some other languages. A regular application is a collection of Activities, any and all of those can be the entry point to to an application. The only thing you do need to remember is that if you rename the class name of the

[android-developers] TextView textSize unknown during Constrcutor (Jellybean)?

2012-07-15 Thread Piren
Hi I've noticed Jellybean is having a different behavior when it comes to creating TextViews. I have a class that extends Widget.TextView, up until API 16 the textSize was already known after you initialize your class using TextView's constructors (at least on APIs 7-15) Why is this no

[android-developers] Re: TextView textSize unknown during Constrcutor (Jellybean)?

2012-07-16 Thread Piren
Just wanted to add some information that might be relevant: My project is compiled against Google API 7, minSDK is 7 and target SDK is 8. On Sunday, July 15, 2012 5:54:35 PM UTC+3, Piren wrote: Hi I've noticed Jellybean is having a different behavior when it comes to creating TextViews

Re: [android-developers] Re: Hardware accleration slow down every Canvas app. Why?

2012-07-19 Thread Piren
I read through the entire thread and it's too bad it got sidetracked into blaming the slowdowns on the type of functions used in the Canvas instead of the original intent of saying the Galaxy Nexus (as the device) is having issues with Hardware acceleration. I've noticed the same issues as

[android-developers] Re: html form doesn't see

2012-07-19 Thread Piren
Its an issue with the WebView not recognizing the field focus. add a touchListner to your WebView and give it focus (requestFocus() ) on ACTION_DOWN On Tuesday, July 17, 2012 5:40:04 PM UTC+3, Daniel Garcia Sanchez wrote: Hi friends, this isn't a question about api of androidbut I need

[android-developers] Re: Issue of using HorizontalScrollView in ListView

2012-07-19 Thread Piren
Android doesn't really support putting two ScrollViews one inside another. You'll need to either take that specific row outside of the ListView or implement your own Listview that knows when to pass the touch events to that views (or just send scrollBy commands to that view using the touch

[android-developers] Re: [tablet][fragment] How to handle event soft keyboard hidden when can not using action 'Done'

2012-07-19 Thread Piren
editTextView.setOnEditorActionListener(new EditText.OnEditorActionListener(){ @Override public boolean onEditorAction(TextView v, int actionId, KeyEvent event){ if(actionId == EditorInfo.IME_ACTION_DONE){ //save stuff } return false; } }); Do notice that there's no way of knowing if the

[android-developers] Re: javax.net.ssl.SSLException: Not trusted server certificate error in 2.1

2012-09-25 Thread Piren
Each android version has a list of Root certificate authorities it supports, the specific certificate your server uses is signed by an entity unknown by android 2.1. You can either supply that server certificate within your application or change the server certificate to one recognized by

[android-developers] Re: AsyncTask issues...

2012-09-27 Thread Piren
Other than what Marina said, your code also is critically flawed. The While loop you've used there basically forces the UI thread to wait for the ASyncTask to finish... This nullifies the whole concept of running the ASyncTask and you'll still get ANRs from android. What you should do is split

[android-developers] Re: Contacts observer

2012-10-02 Thread Piren
proper URI is ContactsContract.Contacts.CONTENT_URI On Monday, October 1, 2012 7:24:56 PM UTC+2, Tarilo wrote: Hi We are develop a contactobserver to verify when new contact are added, deleted or changed. We need to know when a phone number is updated to sync our contacts db. We

[android-developers] Re: width of my TextureView

2012-10-03 Thread Piren
At the point you're querying for the width/height the layout hasn't really been laid (those are not done right after creation of a view), you've never really specified for that view any layout parameters (why are you not using an xml layout anyhow?) and you didnt define any content for it, so

[android-developers] Re: Dynamic loading of complete layout file.

2012-10-04 Thread Piren
The way you describe this there's no real reason to perform any dynamic loading of anything...Your page design seems to be pretty constant. Just design the second page to appear the way you want it to be, then set everything (text, visiblity and etc) once the activity is loaded according to the

[android-developers] Re: Multiple MapActivity instances in a task

2012-10-04 Thread Piren
singleInstance. Create a history machenism that stores the Intents this activity gets (it will get the first in onCreate and the rest on onNewIntent) so you'd be able to re-create the history of the requests. Do notice that in either case, if your map activity is part of some chain of

[android-developers] Re: Want to develop my application as offline

2012-10-04 Thread Piren
Android doesn't support ad-hoc wifi through programming currently as far as i know. Either way, such a method requires users to choose to connect to each other just to establish a connection which isn't that different than just using Bluetooth. The way you describe your application it seems to

[android-developers] Re: Listview - Header , footer issue

2012-10-09 Thread Piren
Android doesn't support putting two scrollable views one inside the other and i assume you dont want to divide the screen area between the listviews and make each take a constant size. You're best (and probably only) choice is to just do everything manually. put a linear layout inside a

Re: [android-developers] Buttons in ViewPager pages: Problem swiping/dragging pages when finger starts on top of Button. How can I fix this?

2012-10-09 Thread Piren
ViewPager is part of the support package and inherits from a ViewGroup , it shouldn't matter much which OS version it runs on. I have a similar setup and i dont experience this issue (using support package v4, i assume you're using the same since you said you tested on earlier os versions). I

[android-developers] Re: Layout is corrupted with graphics from another layout? Only at runtime, only on a certain device.

2012-10-09 Thread Piren
I've had it happen to me a lot of times, but as a packaging error (resources got packages incorrectly into the apk). but the issues were very broad and obvious and manifested on all of my devices. Try a clean build of the app and see if it re-appears. On Tuesday, October 9, 2012 12:34:51 PM

Re: [android-developers] Re: Listview - Header , footer issue

2012-10-10 Thread Piren
is the difference between the first approach we explained in the mail and the approach u suggested . Up to our knowledge both are same . Wht difference it is going to make if u inflate every view programmatically instead of using xml ? On Tue, Oct 9, 2012 at 3:25 PM, Piren gpi...@gmail.com

[android-developers] Re: Layout is corrupted with graphics from another layout? Only at runtime, only on a certain device.

2012-10-10 Thread Piren
, October 9, 2012 11:36:04 AM UTC-4, Piren wrote: I've had it happen to me a lot of times, but as a packaging error (resources got packages incorrectly into the apk). but the issues were very broad and obvious and manifested on all of my devices. Try a clean build of the app and see

Re: [android-developers] Buttons in ViewPager pages: Problem swiping/dragging pages when finger starts on top of Button. How can I fix this?

2012-10-10 Thread Piren
to capture or handle touch-events. Thanks! On Tuesday, October 9, 2012 11:31:03 AM UTC-4, Piren wrote: ViewPager is part of the support package and inherits from a ViewGroup , it shouldn't matter much which OS version it runs on. I have a similar setup and i dont experience this issue

Re: [android-developers] New to Android App Development need Advice in Designing UI

2012-10-10 Thread Piren
If you're trying to do 10TVs 10ETs AND and ListView, you're doing it wrong (see https://groups.google.com/forum/?fromgroups=#!topic/android-developers/t_iy0nnYGK8. TL;DR - You cant do a ScrollView with a ListView inside of it) Since you're new to development i suggest you move the ListView

[android-developers] Re: Drawable Query

2012-10-10 Thread Piren
Sadly, Android doesn't support sub folders. Nothing to do here. On Tuesday, October 9, 2012 8:47:47 PM UTC+2, Daz wrote: I am working on a simple animation using the animation-list attribute. I have all my sequenced images in the drawable-xhdpi folder and the first line of my XML looks

Re: [android-developers] New to Android App Development need Advice in Designing UI

2012-10-11 Thread Piren
I'm not entirely sure what you're trying to accomplish, but you should consider that the third step would go into Activity C with the only purpose of displaying the information. would probably simplify things for you. On Thursday, October 11, 2012 7:28:41 AM UTC+2, Aadi Rockzz wrote: Hi Piren

[android-developers] Re: size in inches

2012-10-11 Thread Piren
Assuming you meant the device's screen sizes (you wrote of a device, not the screen size) then the sizes are correct for most of the time. When the app is running on a device that has no physical buttons or running on an ICS+ device while being targeted lower (thus causing the menu bar to

[android-developers] Re: Getting to SharedPreferences from CustomListAdapter

2012-10-16 Thread Piren
This doesn't really have anything to do with SharedPreferences or your ListAdapter... this is Java basics. getApplication() isn't some global static function that can be called from anywhere, it can be called however from an Activity. Since your adapter is an instance with the Activity as a

[android-developers] Re: Getting to SharedPreferences from CustomListAdapter

2012-10-16 Thread Piren
This doesn't really have anything to do with SharedPreferences or your ListAdapter... this is Java basics. getApplication() isn't some global static function that can be called from anywhere, it can be called however from an Activity. Since your adapter is an instance with the Activity as a

Re: [android-developers] Re: Getting to SharedPreferences from CustomListAdapter

2012-10-17 Thread Piren
of the activity that may be using the adapter. So I'm afraid I cannot use the options you proposed. (I am not using fragments) On Tuesday, October 16, 2012 5:09:10 AM UTC-4, Piren wrote: This doesn't really have anything to do with SharedPreferences or your ListAdapter... this is Java basics

[android-developers] Re: Button#onClickListener thread unsafe?

2012-10-17 Thread Piren
It depends on how android treats onClick events. According to the behavior seen in his example it seems like that android doesn't check whether a view is disabled before running onClick rather before queuing it. So if you manage to dispatch two onClick events to a view before the first one was

[android-developers] Re: Save the fragment state in tabs switch

2012-10-18 Thread Piren
http://developer.android.com/reference/android/support/v4/view/ViewPager.html#setOffscreenPageLimit(int) just set it to 2 On Wednesday, October 17, 2012 7:30:54 PM UTC+2, Giosia Gentile wrote: it is one week I try to solve this problem whitout success. Please help me. I use the tabs

[android-developers] Re: Save the fragment state in tabs switch

2012-10-18 Thread Piren
with the screen orientation??? I used the setRetainIstance(true) but it donìt work!! On Thursday, October 18, 2012 10:08:08 AM UTC+2, Piren wrote: http://developer.android.com/reference/android/support/v4/view/ViewPager.html#setOffscreenPageLimit(int) just set it to 2 On Wednesday, October 17, 2012 7

[android-developers] Re: how to make the phone number to be auto formatted to 123-123-1234 this format

2012-10-21 Thread Piren
http://developer.android.com/reference/android/telephony/PhoneNumberUtils.html#formatNanpNumber(android.text.Editable) On Friday, October 19, 2012 4:17:20 PM UTC+2, Tom wrote: Hi, i need help for this code. if you know about it please help me *how to make the phone number to be auto

Re: [android-developers] To ContentProvide Sqlite DB or Not

2012-10-22 Thread Piren
Why do you prefer ASyncTasks to Loaders? Since they are handicapped in ICS, isn't it better to stop using them? On Sunday, October 21, 2012 11:36:10 PM UTC+2, Mark Murphy (a Commons Guy) wrote: On Fri, Oct 19, 2012 at 8:13 PM, ncdroid jbl...@gmail.com javascript: wrote: Can someone

Re: [android-developers] To ContentProvide Sqlite DB or Not

2012-10-23 Thread Piren
I will look into that, thanks On Monday, October 22, 2012 7:59:12 PM UTC+2, Kristopher Micinski wrote: On Mon, Oct 22, 2012 at 3:48 AM, Piren gpi...@gmail.com javascript: wrote: Why do you prefer ASyncTasks to Loaders? Since they are handicapped in ICS, isn't it better to stop using

Re: [android-developers] To ContentProvide Sqlite DB or Not

2012-10-23 Thread Piren
). On Monday, October 22, 2012 7:59:12 PM UTC+2, Kristopher Micinski wrote: On Mon, Oct 22, 2012 at 3:48 AM, Piren gpi...@gmail.com javascript: wrote: Why do you prefer ASyncTasks to Loaders? Since they are handicapped in ICS, isn't it better to stop using them? Why do you think they're

Re: [android-developers] Buttons in ViewPager pages: Problem swiping/dragging pages when finger starts on top of Button. How can I fix this?

2012-11-01 Thread Piren
*. Calling *setHorizontallyScrolling(false)* or setting the * android:scrollHorizontally=false* attribute in your XML does the trick as well :-) On Wednesday, October 31, 2012 7:11:33 PM UTC-4, Streets Of Boston wrote: Thanks Piren! Your answer led me into the right direction

Re: [android-developers] Problem while updating adapter from AsyncTask

2012-11-04 Thread Piren
Are you creating that AsyncTask in a background thread as well? On Sunday, November 4, 2012 6:55:33 AM UTC+2, Bajrang Asthana wrote: Yes I am updating adapter in onPostExecute() method (as it runs in UI thread). In onPostExecute() method i am simply calling adpater.notifyDataSetChanged().

Re: [android-developers] R Can Not be Resolved

2012-11-04 Thread Piren
Actually it sounds more as if the SDK installation folder was changed... make sure that path ( /home/kevin/Downloads/android-sdk-linux/platform-tools/adb) is still the correct one and if not, update your PATH/ANDROID_HOME variables appropriately. On Sunday, November 4, 2012 4:48:39 AM UTC+2,

Re: [android-developers] Problem while updating adapter from AsyncTask

2012-11-05 Thread Piren
Earlier you said you update the adapter in onPostExecute (as you should), now you're saying you're doing it in doInBackground (which is wrong and will cause this error), so which is it? On Monday, November 5, 2012 8:01:36 AM UTC+2, Bajrang Asthana wrote: Hi Piren, I am creating AsyncTask

Re: [android-developers] Problem while updating adapter from AsyncTask

2012-11-05 Thread Piren
try moving mAdapter.setIcons(icons); to onPostExecute (you'll have to make icons a member of your asynctask) On Monday, November 5, 2012 10:40:14 AM UTC+2, Bajrang Asthana wrote: Thanks Piren! Actually in doInBackground method - I am fetching icons of all installed apps and replacing

Re: [android-developers] Getting Height

2012-11-06 Thread Piren
Actually it is... for devices that have a barometer, its not that hard. He'll have to do a bunch of optimizations and calibrations to achieve decent accuracy, but unless he's not looking for 100% accuracy, he can get an estimate of what floor you're on. On Tuesday, November 6, 2012 9:15:38 AM

Re: [android-developers] Getting Height

2012-11-06 Thread Piren
... so it is possible, it just needs some coding harder than calling (BuildingManager)getBuildingManager(). .getCurrentFloor() (An obviously crucial API missed by Google :) ) On Tuesday, November 6, 2012 11:17:08 AM UTC+2, TreKing wrote: On Tue, Nov 6, 2012 at 2:34 AM, Piren gpi...@gmail.com

[android-developers] Re: Doubt

2012-11-06 Thread Piren
Either inflate them from an XML file with the proper settings or use the appropriate AttributeSet and Style when calling their constructor. On Tuesday, November 6, 2012 1:26:29 PM UTC+2, RAJESH RAMAN wrote: I have a layout, on which a few edittextboxes, textviews and checkboxes are placed.

[android-developers] Re: Creating Horizontal sliding effect between various activities in android

2012-11-06 Thread Piren
If you use fragments instead, you could use the ViewPager with Fragments patterns as shown by Google (just drop the TabWidget part and use one activity). If you're stuck with separate activities, you can add a gesture controller to each activity and modify the TransitionAnimation to be the

Re: [android-developers] R Can Not be Resolved

2012-11-07 Thread Piren
folders of the sdk. SDK installation instructions should show up in the Android Developers page, you should re-do them to make sure everything is set up properly. On Wednesday, November 7, 2012 4:15:55 AM UTC+2, Bear35805 wrote: Piren, It seems like you have hit on the problem. Where do I

[android-developers] Re: Converting existing activities into fragments

2012-11-07 Thread Piren
hehe... i did some RD ..i assume (R)esearch equals: i asked this forum :) There's a plethora of tutorials on how to create fragments on Android Developers. its pretty easy infer from those on how to accomplish what you want. On Wednesday, November 7, 2012 2:40:59 PM UTC+2, Bajrang Asthana

[android-developers] Re: I have query on listing the data in listview........

2012-11-08 Thread Piren
This code is so wrong i dont know where to start... Android Developers has several tutorials showing how to populate ListViews properly (and do background tasks). You should follow those tutorials... On Thursday, November 8, 2012 11:35:52 AM UTC+2, Bhargav Suthar wrote: I want to display all

[android-developers] Re: breakpoints ignored

2012-11-11 Thread Piren
Because you can't... breakpoints need to be placed on code that actually runs.. either the first line of the function or the call to that function. On Friday, November 9, 2012 12:34:07 AM UTC+2, bob wrote: On Thursday, November 8, 2012 4:31:52 PM UTC-6, Sunghun wrote: Did you put your

[android-developers] Re: random Resource$NotFoundException reports

2012-11-11 Thread Piren
From my experience these always came due to memory constraint issues... when i pushed it too high android started doing that. On Thursday, November 8, 2012 1:57:06 PM UTC+2, Andrea Pietroni wrote: Hi all, I have published an app (with ACRA for crash reporting) which results in some random

[android-developers] Re: Drawing complex shapes with hollow parts

2012-11-12 Thread Piren
http://stackoverflow.com/questions/11337679/porterduffxfermode-clear-a-section-of-a-bitmap On Monday, November 12, 2012 12:16:17 PM UTC+2, Simon Giddings wrote: I am needing to draw shapes which will have hollow regions. To simplify the idea, take an ampersand sign : This is just to

[android-developers] Re: Drawing complex shapes with hollow parts

2012-11-12 Thread Piren
with is the problem with hardware acceleration. Some people say that this will not work with hardware acceleration ON, whilst others say that this is precisely what is needed when it is ON. Is there some definitive answer for this aspect ? On Monday, 12 November 2012 11:58:07 UTC+1, Piren wrote: http

Re: [android-developers] TinCan

2012-11-13 Thread Piren
LOL At first i didn't get why you're so short tempered with people, but after a while here i'm starting to get you :) On Tuesday, November 13, 2012 12:41:49 AM UTC+2, TreKing wrote: On Mon, Nov 12, 2012 at 6:50 AM, Sadhna Upadhyay sadhna@gmail.comjavascript: wrote: can some one

[android-developers] Re: breakpoints ignored

2012-11-13 Thread Piren
That's a bug/feature that needs to be posted on the support forum of your IDE, not Android Developers :) On Monday, November 12, 2012 5:48:55 PM UTC+2, bob wrote: Ok. Seems like the editor should not let me place it there though? On Sunday, November 11, 2012 4:13:01 AM UTC-6, Piren wrote

Re: [android-developers] Convert a view (layout) to a Bitmap

2012-11-18 Thread Piren
Holy fuck dude... you should really google his name... On Saturday, November 17, 2012 10:18:27 PM UTC+2, Justin Buser wrote: I don't understand why I keep finding different posts by you about forcing layout passes. The View instance this person is referring would never go through a layout

[android-developers] Re: Tabs in Android Tab Host

2012-11-18 Thread Piren
There's no real limit. If the text doesn't fit, just provide your own view for the tabs themselves. I found early on that doing your own custom layout works much better anyway. On Friday, November 16, 2012 10:16:59 PM UTC+2, Anand wrote: I have an application that uses custom tab layout with

[android-developers] Re: webview can not display twitter page

2012-11-18 Thread Piren
Webviews support redirecting without an issue. other than the suggestions on StackOverflow, i'd also check SSL certificate exception (i recall getting one on android versions below 2.3.3) To verify you could either use the proper handler to catch those or just open the link in your native

[android-developers] Re: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag

2012-11-18 Thread Piren
It actually says it right there: 3 at android.webkit.CallbackProxy.uiOverrideUrlLoading(CallbackProxy.java:236) The user is clicking a hyperlink in a webview which is attached to the Application Context. Figure out which webview it is, set a webViewClient and override

[android-developers] Re: How to get device raw width and height or actual screen width and height ?

2012-11-19 Thread Piren
Ahh... i dont think you were getting any different results on 4.1 ...Android always reports the height without the bar as long as it is visible. Besides, using those values will get your the proper values to work with... why do those calculations while including an area of the screen your cant

Re: [android-developers] Re: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag

2012-11-20 Thread Piren
You're probably using them incorrectly. You should consult with their support On Monday, November 19, 2012 8:35:44 PM UTC+2, Fran wrote: On 11/18/2012 12:56 PM, Piren wrote: It actually says it right there: 3 at android.webkit.CallbackProxy.uiOverrideUrlLoading(CallbackProxy.java:236

Re: [android-developers] Re: How do I fix this error

2012-11-20 Thread Piren
I'm with the other guys ... his response was not rude at all. Not only was it not rude, it's also correct. In fact, the way you replied to others, is actually rude. I'm pretty sure that part of how to win friends and influence people is not to attack the people you're asking to help you. On

[android-developers] Re: Beginner question on layouts

2012-11-21 Thread Piren
you should really read the documentation and do the plethora of tutorials Google provides. http://developer.android.com/guide/practices/screens_support.html Regarding the textview, that's what String Formatting is for (%.2f), look it up. On Friday, November 16, 2012 1:23:53 AM UTC+2, Brandon

[android-developers] Re: debugging crashes on some systems ( not all )

2012-11-21 Thread Piren
When an app crashes the user has an option to send a report, you can use your dev console to read the crashes and see what happened. You can also use external services like Bugsense to help you out. Regardless of that, it's always a good idea to have your own test version with as many logs as

[android-developers] Re: problem with jar file

2012-11-21 Thread Piren
I think the more important question is : Why the fuck are you doing all of THAT instead of just using Java IO? On Tuesday, November 20, 2012 11:44:14 PM UTC+2, Lew wrote: Ali Ahmadi wrote: i [sic] made a android [sic] app, which works correctly. now i put some parts of my application into a

[android-developers] Re: HttpUrlConnection no print data to my screen

2012-11-21 Thread Piren
- Thats not a good way to read a stream. look up on how to use buffers - Its a horrible idea to perform findViewById in a loop. you should only do it once before the loop. - never do long processes on the main thread. especially not network access. look up how to background tasks in android

[android-developers] Re: NullPointerException from Billing API

2012-11-21 Thread Piren
That's your class and implementation... why does this need to be fixed on their side? On Wednesday, November 21, 2012 7:08:45 AM UTC+2, Build Account wrote: As far as you know, The ERROR from Billing API make below error very FREQUENTLY -

[android-developers] Re: Problem while displaying same list which is initialized in parent fragment into two different sub childs fragments

2012-11-21 Thread Piren
you can't add the same view to two viewgroups at the same time. if you want two lists, you'll have to initialize and set two lists. On Wednesday, November 21, 2012 3:57:20 PM UTC+2, Bajrang Asthana wrote: I am implementing swipe functionality using ViewPager and want to display same list in

Re: [android-developers] debugging crashes on some systems ( not all )

2012-11-21 Thread Piren
Indeed, one of android's strong advantages (to the consumer) is also a big disadvantage (to the developer). I was faced with similar heap issues, did the same thing as you did, mostly came to the conclusion that the best thing is just to drop the bitmaps altogether or reduce their resolutions

Re: [android-developers] OOM with heap enough

2012-11-21 Thread Piren
I remember reading about a similar issue in the past and experienced the same issue as well. From what i recall, but dont take my word for it, even if there is room in the heap and it isnt fragmented beyond belief, Dalvik first checks if the heap can be enlarged to include the needed space,

[android-developers] Re: Customized Tab Layout in android.

2012-11-22 Thread Piren
TabSpec has a setIndicator that accepts a View, just inflate your own layout. But just a note, your UI is bad. Thats an iOS layout. In Android, tabs go at the top, and you certainly dont add stupid navigational buttons... if you want a scheme similar to that, use an ActionBar. On Thursday,

Re: [android-developers] OOM with heap enough

2012-11-22 Thread Piren
that in such case it is a mighty bug... Best regards, 2012/11/21 Piren gpi...@gmail.com javascript: I remember reading about a similar issue in the past and experienced the same issue as well. From what i recall, but dont take my word for it, even if there is room in the heap and it isnt

[android-developers] Re: Windows 8

2012-11-22 Thread Piren
Everything runs fine for me (64bit). You can also just install Windows 7... Microsoft has a downgrade path. On Wednesday, November 21, 2012 7:16:48 PM UTC+2, Doug Gordon wrote: My development PC just took a dive, and most of the decent PCs that I can find locally are now coming with Windows

Re: [android-developers] Automate update every x secs get data from myUrl

2012-11-22 Thread Piren
Am i the only one noticing that he keeps getting people to do pretty much all the programming he needs, step by step? On Thursday, November 22, 2012 1:40:42 AM UTC+2, TreKing wrote: On Wed, Nov 21, 2012 at 12:40 PM, Antonis Kanaris ant...@in.grjavascript: wrote: i want to convert to

[android-developers] Re: Playing a part of the video

2012-11-22 Thread Piren
http://developer.android.com/reference/android/media/MediaPlayer.html#seekTo(int) On Thursday, November 22, 2012 5:43:30 AM UTC+2, praveen castelino wrote: Can anybody help me out with this issue. I don't need any code. Guide me to the Class or documentation. Is this possible to do it in

[android-developers] Re: How to create soap request in ksoap2 for a wcf webservice method with complex types?

2012-11-22 Thread Piren
I looked at it, my suggestion is to ask your question over here http://sourceforge.net/projects/ksoap2/forums On Thursday, November 22, 2012 10:52:15 AM UTC+2, Raneez wrote: Please look at this question and give me some suggestions..i hate being stuck with something like this. -- You

[android-developers] Re: Not supporting SMALL screen format

2012-11-22 Thread Piren
use layout-ldpi instead On Thursday, November 22, 2012 1:09:15 PM UTC+2, Fazerty wrote: Hello, My application does not support SMALL screen format and I don't know why. I have 4 directories for the layouts (layout-small, layout-normal, layout-large and layout-xlarge) with the same number

Re: [android-developers] OOM with heap enough

2012-11-22 Thread Piren
limit. Now if you cannot use all that heap size... it is just absurd! I rather prefer that the problem were a bug on bugsense and this report weren't reliable... On Nov 22, 2012 9:26 AM, Piren gpi...@gmail.com javascript: wrote: Yep, makes no sense at all, but thats how it is. Maybe we can

[android-developers] Re: image view on Customized dialog box

2012-11-22 Thread Piren
not sure why you're using the .Show() method, its best to use onCreateDialog for custom dialogs as well. but either way, ASyncTasks dont run onPostExecute on the UI thread automatically, the run it on the thread the ASyncTask was created in. To avoid your issue either add a Handler to run the

[android-developers] Re: How to create soap request in ksoap2 for a wcf webservice method with complex types?

2012-11-22 Thread Piren
And this one isn't aimed at any possible library out there... usually if people dont answer a question, bumping it wouldn't help much. On Thursday, November 22, 2012 3:23:37 PM UTC+2, Raneez wrote: @Piren That forum is inactive. -- You received this message because you are subscribed

Re: [android-developers] OOM with heap enough

2012-11-22 Thread Piren
: On 11/22/2012 12:48 PM, Piren wrote: Well, getting mad of this issue or trying to blame something else, wouldn't really benefit you, would it? Actually yes: it would not solve my crashes, but helps me to unload a bit of stress, you know... ;-D Also swearing is not incompatible

Re: [android-developers] OOM with heap enough

2012-11-22 Thread Piren
targetSdk has an impact on the way things work, but in your example i dont think it matters. On Thursday, November 22, 2012 2:53:59 PM UTC+2, Fran wrote: One thing about this... Do you think this may be a problem of target SDK or so? This is what I am using right now: uses-sdk

[android-developers] Re: xml parsing error

2012-11-22 Thread Piren
I haven't checked your code very throughly (its no fun trying to read xml parsing code) but that error seems to indicate you're trying to cast a value into an xml element. or as the Inception people said: you went too deep :) you should do the same type checking you do in the level above it.

Re: [android-developers] Re: image view on Customized dialog box

2012-11-22 Thread Piren
It's a view, it can get the activity. On Thursday, November 22, 2012 4:24:33 PM UTC+2, Mr cool wrote: but how can i use runOnUiThread method because i extend my customized dialog class from dialog class not from activity -- You received this message because you are subscribed to the

[android-developers] Re: How to create soap request in ksoap2 for a wcf webservice method with complex types?

2012-11-24 Thread Piren
yeah good luck with that. On Friday, November 23, 2012 6:26:57 AM UTC+2, Raneez wrote: And you are not supposed to comment here, if you dont have any idea about this. Directing to a inactive forum is not a good attitude, give a hand if you know something else go away! -- You

Re: [android-developers] Wrapping horizontal list view?

2012-11-26 Thread Piren
If the sizes of the views are pretty predictable due to their content, i'd go the smarter route and wrap the data with a 'smart' layer with the proper row division, this will allow you to use a Listview and benefit from its optimizations. (If your data is a, bbb,cc, dd, , wrap it in a new

[android-developers] Re: Kudos to ADT package developers

2012-11-28 Thread Piren
My only issue with such a bundle is that it means that i have multiple instances of Eclipse on my computer, each of them needs to be configured from 0 to match my preferred style... the Android bundle, Motodev, SpringSource, JBOSS Studio and the list goes on... On Wednesday, November 28, 2012

Re: [android-developers] android version problem

2012-11-28 Thread Piren
it does make it more fun ... we can play 21 ^support* questions On Sunday, November 25, 2012 11:21:12 PM UTC-5, TreKing wrote: On Sun, Nov 25, 2012 at 10:31 PM, Sadhna Upadhyay sadhna@gmail.comjavascript: wrote: when i am testing the app on 1ndroid 2.3.4 some functionality is not

[android-developers] Re: I am trying to set the Image for an ImageView any help would be great

2012-11-28 Thread Piren
Without going into the subject at hand, i just want to mention that sometimes the documentation is wrong... already came across a few functions not doing what they say they would do.. so... should probably not rely on that On Wednesday, November 28, 2012 4:48:43 PM UTC-5, bob wrote: Just to

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

2012-11-28 Thread Piren
That's cause he's using the wrong field... that field is in fact a String, but was deprecated a long long while ago. He should be using SDK_INT On Wednesday, November 28, 2012 9:25:04 AM UTC-5, Ralph Bergmann wrote: Am 27.11.12 11:40, schrieb Fritjof: Integer.parseInt(Build.VERSION.SDK)

[android-developers] Re: Top Developer?

2012-11-29 Thread Piren
google now allows you to do that without being a top developer, you need to request it. On Thursday, November 29, 2012 11:59:14 AM UTC-5, John Coryat wrote: Can you reply to comments now? (you do this in the developer console) -John Coryat -- You received this message because you are

[android-developers] Re: Force Screen Orientation Landscape crashes when in Portrait

2012-11-29 Thread Piren
did you force a specific orientation in the manifest? On Thursday, November 29, 2012 11:28:04 AM UTC-5, Rob Thompson wrote: setRequestedOrientation( ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE ); int orientation = getResources().getConfiguration().orientation; orientation

Re: [android-developers] Re: Top Developer?

2012-11-29 Thread Piren
:46 PM, Piren gpi...@gmail.com javascript:wrote: google now allows you to do that without being a top developer, you need to request it. On Thursday, November 29, 2012 11:59:14 AM UTC-5, John Coryat wrote: Can you reply to comments now? (you do this in the developer console) -John Coryat

Re: [android-developers] how to get the location of an incoming call

2012-11-29 Thread Piren
http://code.google.com/p/libphonenumber/ On Thursday, November 29, 2012 2:05:28 PM UTC-5, Jovish P wrote: did u got any solution for this ? regards, jovi On Fri, Nov 23, 2012 at 12:49 AM, babrit 067...@gmail.com javascript:wrote: -- You received this message because you are

[android-developers] Re: herbew text

2012-11-30 Thread Piren
Android 2.0/2.1 do not include a Hebrew font by default (except for localized roms in Israel of course), as far as i remember they only added the fonts on 2.2. so if you wish to support the earlier versions, you'd have to supply your own font with the app and set each and every Textview to use

[android-developers] Re: When can every developer reply to reviews?

2012-11-30 Thread Piren
my personal favorites are the i want the app to have feature X, you get 1 star until you add it... bastards lol On Friday, November 30, 2012 4:58:09 AM UTC-5, qkx wrote: Yeah, it's totally irritating - my app has fantastic review, but many idiots posted 1-star rating with comments like

[android-developers] Re: thread wait in android

2012-11-30 Thread Piren
whaaa... thats really going against all the basic android fundamentals. .. first, you never ever stop/hault/wait/busy-wait/do long processes on the UI (what you called Main) thread. You do that, the app is stuck and eventually errors out to the user (an ANR). Second, you shouldn't be creating

[android-developers] Re: thread wait in android

2012-11-30 Thread Piren
, November 30, 2012 9:40:47 AM UTC-5, Piren wrote: whaaa... thats really going against all the basic android fundamentals. .. first, you never ever stop/hault/wait/busy-wait/do long processes on the UI (what you called Main) thread. You do that, the app is stuck and eventually errors out

[android-developers] Re: thread life

2012-11-30 Thread Piren
Yes, those have nothing to do with one another. On Friday, November 30, 2012 4:10:57 PM UTC-5, bob wrote: If you create a Thread in an activity, does it generally live beyond a call to onPause? -- You received this message because you are subscribed to the Google Groups Android

  1   2   3   4   5   6   >