[android-developers] Re: hash functions

2011-05-10 Thread gjs
Hi, 1st link was to simply show mention of longer bit length SHA algorithms in Android SDK, not how to go about effectively using them, which usually involves 'salt' and other measures as other have discussed here and else where. MD5 (128 bits) is 'weaker' than SHA1 (160 bits) only by virtue of h

[android-developers] help with ImageView maxHeight set, but ignored

2011-05-10 Thread Brill Pappin
I've got the maxHeight et on an ImageView but when I set a Bitmap as the source, the ImageView grows in the layout to cover adjacent components. (The image is larger than the View, taken from the camera, but I'm expecting to get scaled). Can anyone give me a hint why that is? - Brill -- You r

[android-developers] how can spotify plays local(downloaded) songs so fast?

2011-05-10 Thread Hitendrasinh Gohil
hi, can anyone tell me how the spotify plays local(downloaded) songs so fast though it is encrypted and with low configuration device it also plays fast.no barrier to play local encrypted song for spotify! I really need some workaround for this? anyone? anyguess? -- You received this message

[android-developers] Re: onBackPressed to hide Not destroy activity

2011-05-10 Thread harsh chandel
override the back button and pass intent to the class you want to go to. and save the state of the current activity On May 10, 1:54 pm, Ali Chousein wrote: > I agree with Muhammad. Save your instance state and restore it when > necessary, instead of trying to do something against the framework. >

Re: [android-developers] Re: hash functions

2011-05-10 Thread Bob Kerns
No -- I've always been fortunate enough to have Bouncy Castle or similar packages available, and haven't had to implement it myself. I *have* implemented similar things in the distant past before we knew quite as much about the problems and solutions. I.e. with a salt, with an insecure hash fun

[android-developers] Re: hash functions

2011-05-10 Thread Bob Kerns
I think you missed part of what I was saying. It's important, so let me try to be more clear. Each of the two components does a different job. The salt prevents dictionary attacks, by expanding the space of dictionaries by the size of the salt (say, 2^128 or whatever you use.) The protection a

[android-developers] Re: Tab Activity - custom titlebar limitations when using child activities

2011-05-10 Thread dmg
Put the request feature line alone in TabActivity(before calling super). You can then set custom title bar in child activities. -- 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@googleg

Re: [android-developers] Re: hash functions

2011-05-10 Thread Nikolay Elenkov
On Wed, May 11, 2011 at 12:35 PM, DanH wrote: > Of course, hashing a password, per se, doesn't really make it any > stronger.  And doing things like using a salt don't do much if the > concern is simple trial-and-error cracking of a single encrypted > message (unless you're relying on "security by

Re: [android-developers] Re: hash functions

2011-05-10 Thread Nikolay Elenkov
On Wed, May 11, 2011 at 7:34 AM, Bob Kerns wrote: > More precisely, you iterate this: > hash = f(hash) > where f is some function that is expensive, and does not collapse the space > of possible values into some smaller set. One way to accomplish this would > be: > f(hash) = hash sha1(hash). > I

[android-developers] Re: hash functions

2011-05-10 Thread DanH
Of course, hashing a password, per se, doesn't really make it any stronger. And doing things like using a salt don't do much if the concern is simple trial-and-error cracking of a single encrypted message (unless you're relying on "security by obscurity"). Salting does help prevent known plaintex

Re: [android-developers] Error while Compile Android Gingerbread 2.3.3

2011-05-10 Thread TreKing
On Tue, May 10, 2011 at 8:02 PM, spurwa wrote: > When I compile the source Questions regarding building the source should go on a more appropriate list, like porting or platform. - TreKing

[android-developers] eCarrel: tech eBook reader and bookstore for Android 3.0 tablets

2011-05-10 Thread jacek
Just shipped today, a new eReading solution mostly for developers, with bookstore filled by all the latest and greatest O'Reilly titles. You will find lots of recent titles very highly relevant to what we do in Android programming, including books on HTML5, SQLite, JavaScript, etc. etc. One book, "

[android-developers] Serial Number

2011-05-10 Thread New Developer
When I start or connect my Xoom I get in Console [2011-05-10 21:15:29 - eeds] Automatic Target Mode: Unable to detect device compatibility. Please select a target device. [2011-05-10 21:16:20 - eeds] Uploading new.apk onto device '0288...b397' [2011-05-10 21:16:22 - eeds] Installing new.apk...

Re: [android-developers] Re: hash functions

2011-05-10 Thread Nikolay Elenkov
On Wed, May 11, 2011 at 8:32 AM, Bob Kerns wrote: > https://www.kb.cert.org/vuls/id/836068 > Nothing new should have been using MD5 for a looong time, and people need to > know to stay away from it. > Fake SSL certs that exploit this have been produced. It's not just a > theoretical concern. I kn

[android-developers] Error while Compile Android Gingerbread 2.3.3

2011-05-10 Thread spurwa
When I compile the source android Gingerbread 2.3.3 is that I receive an error message like this: build / core / binary.mk: 25: *** external / stlport: Invalid LOCAL_NDK_VERSION '4 'Choices acres. Stop.) For information I have to download and Compile on 64bit Linux Ubuntu 10.04 Lucid in accordance

Re: [android-developers] Re: Mapactivity second intent

2011-05-10 Thread TreKing
On Tue, May 10, 2011 at 6:48 PM, ingy abbas wrote: > *05-11 02:46:19.843: ERROR/AndroidRuntime(311): > java.lang.NoClassDefFoundError: yaraby.y.Mapy* > Did you include the class in you manifest? - Tr

[android-developers] Adding points automatic

2011-05-10 Thread ingy abbas
Using googlemaps How to add small points or dashes "---" between two overlay items on the googlemaps to be added electronics not as overlay added manually i can add a path but i want to add - or points electronics please help -- You received this message because you are subscribed to the

[android-developers] HttpsURLConnection's getResponseCode() returns -1

2011-05-10 Thread John Gaby
I am trying to use HttpsURLConnection to connect to a secure site, and it is failing and getResponseCode() is returning -1. The following is the code that I am using. Note that this very same code works in other cases. Can anyone give me a clue as to why I might get the -1, and how I can get mor

[android-developers] Re: Mapactivity second intent

2011-05-10 Thread ingy abbas
Done and the first activity work well i make a button to make me view the next activity but it forse close Due to this errors 05-11 02:46:19.823: ERROR/AndroidRuntime(311): Uncaught handler: thread main exiting due to uncaught exception 05-11 02:46:19.843: ERROR/AndroidRuntime(311): java.lang.NoCl

Re: [android-developers] Re: hash functions

2011-05-10 Thread Bob Kerns
https://www.kb.cert.org/vuls/id/836068 Nothing new should have been using MD5 for a looong time, and people need to know to stay away from it. Fake SSL certs that exploit this have been produced. It's not just a theoretical concern. On Tuesday, May 10, 2

[android-developers] Re: directly loading dynamically created classes (in dex format)

2011-05-10 Thread Tomasz
Here is some more illumination from PathClassLoader.java in android (inside the loadClass() method): /* --this doesn't work in current version of Dalvik-- if (data != null) { System.out.println("--- Found class " + name + " in zip[" + i + "] '" + mZip

[android-developers] Re: NullPointerException in process com.android.inputmethod.latin

2011-05-10 Thread HanWriting
hi, I would like the know the steps to reproduce the crash. Thanks! HanWriting -- 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@googleg

[android-developers] Re: Mapactivity second intent

2011-05-10 Thread TreKing
Please respond to the group. On Tue, May 10, 2011 at 5:32 PM, ingy abbas wrote: > Can i open the first activity normal activty then the second > activity MapsActivity?? > Yes - you could have figured this out by just trying it ... ---

[android-developers] Re: hash functions

2011-05-10 Thread Bob Kerns
The fundamental problem with starting with a human-managed password is that there is not a lot of entropy -- the possible values are not distributed over a huge range, compared to what an attacker could try with trial-and-error. So just doing SHA1 or SHA256 for that matter, is not sufficient fo

Re: [android-developers] Mapactivity second intent

2011-05-10 Thread TreKing
On Tue, May 10, 2011 at 5:18 PM, ingy abbas wrote: > If i have an activity open socket between my client Android and python then > i want to go to other activity intent which is MapActivity by clicking on > Button ... So is it acceptable to open the second as Mapactivity ?!! any > help > You ma

[android-developers] Mapactivity second intent

2011-05-10 Thread ingy abbas
If i have an activity open socket between my client Android and python then i want to go to other activity intent which is MapActivity by clicking on Button ... So is it acceptable to open the second as Mapactivity ?!! any help -- You received this message because you are subscribed to the Googl

[android-developers] Re: directly loading dynamically created classes (in dex format)

2011-05-10 Thread Tomasz
It turns out that VMClassloader defineClass() methods do nothing, but throw the class format error. So how is one supposed to load class bytes directly from a byte array? Hmmm. On May 10, 10:50 pm, Tomasz wrote: > Hi friends, > > I have an application which dynamically creates classes at runtime

[android-developers] directly loading dynamically created classes (in dex format)

2011-05-10 Thread Tomasz
Hi friends, I have an application which dynamically creates classes at runtime (in the dex format). Is it possible to load these dex bytes directly without saving them to a dex file, and then zipping it (many such classes are created). An equivalent of ClassLoader.defineClass(className, classDexBy

[android-developers] directly loading dynamically created classes (in dex format)

2011-05-10 Thread Tomasz
Hi friends, I have an application which dynamically creates classes at runtime (in the dex format). Is it possible to load these dex bytes directly without saving them to a dex file, and then zipping it (many such classes are created). An equivalent of ClassLoader.createClass(className, classDexBy

[android-developers] Re: Convert from Polyline to ArrayList

2011-05-10 Thread Igor Prilepov
It is unrealistic because people collect points and then show them as polyline, polygon or just dots not the other way around. It is unrealistic because Google MapActivity on Android is different from the full scale Google Map API. It is trivial because any Polyline (or Polygon) should be stored

[android-developers] Status bar area not covered when activity is resumed

2011-05-10 Thread groob
Hello! I'm experiencing very nasty bug trying to implement Admob in my application. I thought the problem is in my code, but after some investigation I found it present also in Android-Banner-Essentials example (available for download here: http://code.google.com/mobile/ads/docs/android/fundament

[android-developers] Custom themes on honeycomb

2011-05-10 Thread faah
It is possible to inherit the main theme with Theme.Holo.Light BUT use the dialogs and menu style from Theme.Holo? Can someone explain this? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-devel

[android-developers] Re: Convert from Polyline to ArrayList

2011-05-10 Thread Felix Garcia Lainez
I don't understand, sorry... Could you explain me? On 10 mayo, 19:35, Igor Prilepov wrote: >  I doubt you would find a ready to use solution because the task seems to be > unrealistic (as well as trivial) . -- You received this message because you are subscribed to the Google Groups "Android De

[android-developers] Re: hash functions

2011-05-10 Thread DanH
For your purposes any standard hash algorithm that produces the desired number of bits should be fine. The "weakness" of hash algorithms has to do mostly with the ability to "counterfeit" data that produces a given hash value -- this is an important consideration when the hash is being used in a "

[android-developers] Re: Register and UnRegister Broadcast Receiver

2011-05-10 Thread Igor Prilepov
1. Register broadcast receiver in onResume() without any additional 200ms and add some logic inside receiver to ignore intents for the first 200ms after startup. or 2. If you still want to do such weird things (i.e. to register BR in another task?!) then you need to inform this task when onPaus

[android-developers] Password Manager For Ipad and other fPlatforms

2011-05-10 Thread Ezine.sbr23
-- 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 th

[android-developers] ActionBar Tabs

2011-05-10 Thread André
Hi, I'm trying to customize the look of my tabs in the actionbar by following this tutorial: http://androidunlocked.net/archive/customizing-the-action-bar/ But I can't figure out how to change the standard blue line that is a little bit thicker when the tab is selected to a different colour. Any i

Re: [android-developers] putExtra not working for a pending intent

2011-05-10 Thread Satya Komatineni
Also here are some previous notes I have collected on pending intents Quick intro to pending intents: http://www.satyakomatineni.com/item/3301 How alarmmanager and pending intents interact http://www.satyakomatineni.com/item/3503 At this later link there is a lot of discussion on how pending int

Re: [android-developers] putExtra not working for a pending intent

2011-05-10 Thread Satya Komatineni
There is enough material on this forum if you search with 'pending intent' especially around its uniqueness criteria. At a high level, pending intents are references to already stored intents. A pending intent uses the input intent as a key to locate previously established pending intent for this

[android-developers] Re: Convert from Polyline to ArrayList

2011-05-10 Thread Igor Prilepov
I doubt you would find a ready to use solution because the task seems to be unrealistic (as well as trivial) . -- 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 uns

[android-developers] Re: Bitmap Distortion

2011-05-10 Thread neuromit
I was able to fix most of the distortion by either adding a small amount of noise in photoshop or but placing the image under res/raw/ but the image is still getting clipped. I have a sharp edge that is getting rounded out. The image is about 20x20 pixels and looks fine on my computer but on the

[android-developers] Re: NFC testing rig?

2011-05-10 Thread nemik
The ACR122U/Touchatag USB adapter has been pretty great for my purposes so far. The SCL3711 USB adapter is also pretty good. I use those in combination with libnfc. On May 10, 5:02 am, Marcin Orlowski wrote: > Hi, > > We're going to fight with NFC for the next project and since I saw a few > peop

[android-developers] Convert from Polyline to ArrayList

2011-05-10 Thread Felix Garcia Lainez
Hi, I need to convert from google maps polyline to an array of android Location objects. Could anyone tell me if there is some utility function for that? Thanks! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send

[android-developers] Bitmap Distortion

2011-05-10 Thread neuromit
I'm loading a png file using Bitmap eBitmap = BitmapFactory.decodeResource(r, R.drawable.pm) ; and then drawing it using: canvas.drawBitmap(eBitmap, x, y, mPaint); The problem I'm experiencing is the bitmap is coming out distorted. The corners are getting rounded and messing up the image. Is t

Re: [android-developers] putExtra not working for a pending intent

2011-05-10 Thread TreKing
On Tue, May 10, 2011 at 11:40 AM, Boozel wrote: > however in the service intent.hasExtra("a") is always false. why? does this > not work for pending intents? How can I pass a a value between the two? Try this: http://developer.android.com/reference/android/app/PendingIntent.html#FLAG_UPDATE_CUR

[android-developers] putExtra not working for a pending intent

2011-05-10 Thread Boozel
Hi i have a widget which runs a service when pressed using the code below Intent intent = new Intent(context, SignalSpotWidgetService.class); intent.putExtra("a", 9); PendingIntent pendingIntent = PendingIntent.getService(context, 0, intent, 0); however in the service int

[android-developers] Intent to launch Google Latitude

2011-05-10 Thread cg-dev
Hi all, I'm trying to launch Google Latitude using Intent. I'm using an URI found on the net : latitude://latitude/friends/location/exam...@gmail.com And this code : Intent intent = new Intent(android.content.Intent.ACTION_VIEW, uri); intent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY); intent.ad

[android-developers] menu item disabled, but clickable

2011-05-10 Thread Zanarotti Michele
I ever thought that a disabled menu item (setEnabled(false)) should appear grayed out (and that works) and furthermore it should not be active as i click on it (it should not close the menu). How can avoid the closing of the menu ? shouldn't this be the default behavior of a disabled menu item

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

2011-05-10 Thread Dianne Hackborn
On Tue, May 10, 2011 at 6:30 AM, Satya Komatineni < satya.komatin...@gmail.com> wrote: > Coming to "thread pools" the latest documentation seem to suggest that > after honeycomb the AsyncTask may roll back to a single thread > implementation and have the programmer deal with multiple threads > exp

[android-developers] Re: where to put files to be read by jni native code

2011-05-10 Thread Jim
Thanks. Copying from the Assets file list to the sdCard solved my problem in the simplest way. On May 9, 9:07 pm, Nikolay Elenkov wrote: > On Tue, May 10, 2011 at 12:57 PM, Jim wrote: > > I am trying include a small data file with my package.  I need to pass > > the name of the datafile down

Re: [android-developers] 3d model loading

2011-05-10 Thread Marcin Orlowski
On 10 May 2011 17:15, bob wrote: > Are there any good examples of loading a 3d model on Android? > Any file I/O tutorial shall do. Regards, Marcin Orlowski *Tray Agenda * - keep you daily schedule handy... *Date In Tray* - current date at

[android-developers] Re: sending sms from emulator to real device connected on the computer

2011-05-10 Thread Amine KHANCHAR
any idea ? On May 10, 3:16 pm, Amine KHANCHAR wrote: > thank you Smiley but i've already tried that ,the problem is that i"am > working on both :emulator and real device ; the first is acting like a > server and the second where the application is (client) so the real > device appear whith a cert

[android-developers] 3d model loading

2011-05-10 Thread bob
Are there any good examples of loading a 3d model on Android? -- 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-dev

[android-developers] Re: what exact mean by (Void...) in asyntask?

2011-05-10 Thread Chris
On May 10, 10:49 am, Hitendrasinh Gohil wrote: > hi, > > can anybody tell me wht the three elipses added after Void Its called a variable-length argument list. See http://www.deitel.com/articles/java_tutorials/20060106/VariableLengthArgumentLists.html for example. > and this Void is different

Re: [android-developers] Re: ListView - is it possible to limit the fling speed?

2011-05-10 Thread Omar Adobati
OK, it was my bad. I have found the reason, well the stupid reason. Probably, with testing purpose, I did put a "notifyDataChange" in the "getView" Adapter method. This was preventing the list to stop scrolling when touched... Sorry for being wasting your time! *Omar Adobati | omar.adob...@gmail.

[android-developers] what exact mean by (Void...) in asyntask?

2011-05-10 Thread Hitendrasinh Gohil
hi, can anybody tell me wht the three elipses added after Void and this Void is different from void. because if i remove it simply preexecute() then some functionality not working. regards, hitendra gohil -- You received this message because you are subscribed to the Google Groups "Android De

Re: [android-developers] what exact mean by (Void...) in asyntask?

2011-05-10 Thread Kostya Vasilyev
http://today.java.net/pub/a/today/2004/04/19/varargs.html 10.05.2011 18:49, Hitendrasinh Gohil пишет: hi, can anybody tell me wht the three elipses added after Void and this Void is different from void. because if i remove it simply preexecute() then some functionality not working. regards,

[android-developers] Why is my progress bar not visible?

2011-05-10 Thread Ralph Bergmann
Hi, I have an indeterminate progress bar in the window's title bar. I have also requested it with: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); // ... } But why it i

Re: [android-developers] Re: Long process before a dialog is opened

2011-05-10 Thread Satya Komatineni
Or (if I understand your context right) better yet, show a progress dialog when the menu is clicked and when the progress dialog finishes show your special dialog thereby fulfilling both requirements of visibility and long running process. On Tue, May 10, 2011 at 10:41 AM, Satya Komatineni wro

Re: [android-developers] Re: Long process before a dialog is opened

2011-05-10 Thread Satya Komatineni
I have thought about this a bit further. You should be able to do this with some work. If I am not mistaken what you are wanting to do is a special case of something like a "Progress Dialog" except it is custom and the user wants to dismiss it explicitly. Also you must not wait for the onPostExec

[android-developers] Re: sending sms from emulator to real device connected on the computer

2011-05-10 Thread Amine KHANCHAR
thank you Smiley but i've already tried that ,the problem is that i"am working on both :emulator and real device ; the first is acting like a server and the second where the application is (client) so the real device appear whith a certain ID "I5500f1aab23d" not a port number like emulator "emulat

[android-developers] Activity is destroyed than instantly created when pushing the sleep/lock-screen button

2011-05-10 Thread Jump
Hello When I run my game app and then push the sleep/lock-screen button my activity is destroyed (onDestroy is called) and then directly after, onCreate is called. However, if I first put my app in the background then push the sleep/lock-screen button the activity is not destroyed. Can anyone

Re: [android-developers] Problem working with SOAP (lib kSOAP2)

2011-05-10 Thread TreKing
On Tue, May 10, 2011 at 8:50 AM, Gorka wrote: > I am trying to access to a web service using SOAP using the > ksoap2 libraries. > This group is for developing Android apps with the Android SDK. I don't see anything in your post that is specifically Android related. You would have much more luck,

[android-developers] Re: sending sms from emulator to real device connected on the computer

2011-05-10 Thread Smiley
once your phone is connected run the "adb devices" command. I think you would see your phone in the list of devices. Try txt to number that appears next to your phone. For example here I would txt 5554 and get the emulator. c:\java\android-sdk-windows\platform-tools>adb devices List of devices

[android-developers] Problem working with SOAP (lib kSOAP2)

2011-05-10 Thread Gorka
Hi, I am trying to access to a web service using SOAP using the ksoap2 libraries. The thing is that I can make some examples work, but I cannot access the service I am interested in. There is the service: http://apli.bizkaia.net/APPS/DANOK/TQWS/TQ.ASMX And that is the method I want to consult: ht

[android-developers] Re: how to unit test drag n drop - honeycomb

2011-05-10 Thread jjoe64
When I try to manually send the motion events, the security exception comes when I send the ACTION_MOVE event: Instrumentation instrumentation = getInstrumentation(); long downTime = SystemClock.uptimeMillis(); long eventTime = SystemClock.uptimeMil

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

2011-05-10 Thread Satya Komatineni
I would say 1. Understand first how handler/looper/threrading works in android 2. Then you will realize that AsyncTask is just one pattern on top of the above basics 3. Try to use AsyncTask if it can work for your problem as it simplifies the mechanics of threading/handlers. if not then go for the

Re: [android-developers] Does android supports modal dialog box ?

2011-05-10 Thread Satya Komatineni
Although the dialogs are *almost* modal in Android, they are fundamentally (or practically) asynchronous. Search for modal dialogs and android in google and you will see a lot of write up from this news group. So you have to reorient your programming where you can alert and wait the main thread.

[android-developers] Re: Local variable type mismatch

2011-05-10 Thread Marco
On 2011-05-10 Kostya Vasilyev wrote: > Do you have any machine-generated .class files, or any > supplied in compiled form, such as a jar file? (as > opposed to compiled on your machine from Java sources) I have many jar files included. A few of them I compiled on my machine, most of th

Re: [android-developers] NFC testing rig?

2011-05-10 Thread Xiaoliang Ding
Nokia C7 support NFC so far. 2011/5/10 Marcin Orlowski > Hi, > > We're going to fight with NFC for the next project and since I saw a few > people with much more knowledge on the subject on that list I'd like to ask > if anyone got any thoughts to share on building testing environment for such >

[android-developers] sending sms from emulator to real device connected on the computer

2011-05-10 Thread Amine KHANCHAR
hi ,i am looking for a solution to send sms from emulator to a real android device connected to the computer through usb cable . -- 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@google

Re: [android-developers] Re: Local variable type mismatch

2011-05-10 Thread Kostya Vasilyev
Do you have any machine-generated .class files, or any supplied in compiled form, such as a jar file? (as opposed to compiled on your machine from Java sources) If you do, that'd be the first place to check. -- Kostya 10.05.2011 16:17, Marco пишет: On 2011-05-09 Igor Prilepov wrote: Accor

[android-developers] Characters appear out of the screen in the TextView!

2011-05-10 Thread omar
Hey, I've been trying to fix this problem for a long time, The problem is that some characters in the text are out of the screen, here is a screenshot of what I mean: http://i.imgur.com/fDqa6.png xml: http://schemas.android.com/apk/res/ android" android:background="@drawable/list" andro

[android-developers] Re: Local variable type mismatch

2011-05-10 Thread Marco
On 2011-05-09 Igor Prilepov wrote: > According to the message you are trying to set/get > variable of type Object using local variable which is > defined as [] Object. Check your local arrays and how do > you use them. That's a lot of work to check the entire code. Is it somehow p

[android-developers] Re: How to Override progress bar message i.e.. 0/100

2011-05-10 Thread lbendlin
The progressbar is just that - a bar. You have to code the other view elements yourself. Add them all to a relative layout, use them in the dialog, and then refresh the values during onProgressUpdate. -- You received this message because you are subscribed to the Google Groups "Android Develope

Re: [android-developers] Does android supports modal dialog box ?

2011-05-10 Thread Kumar Bibek
Hmm. I would say bad approach. Wait for one dialog to be dismissed and then show the next one On May 10, 2011 5:08 PM, "ABS" wrote: > Hi Everybody, > > I am new to android, working on one application in which > i am using series of dialog boxes to show alert to user , I have to > show dialogs one

[android-developers] In a Native C program, how to call java API: ActivityManager::getMemoryInfo()

2011-05-10 Thread linlone9
In Java program, we can use following codes to get the system memory info: === ActivityManager activityManager = (ActivityManager) getSystemService(ACTIVITY_SERVICE); MemoryInfo info = new MemoryInfo(); activityManager.*getMemoryInfo*(info

[android-developers] Does android supports modal dialog box ?

2011-05-10 Thread ABS
Hi Everybody, I am new to android, working on one application in which i am using series of dialog boxes to show alert to user , I have to show dialogs one after another i.e simultaneously but when first dialog comes out the code running behind dialog haven't stop still end of method

[android-developers] Register and UnRegister Broadcast Receiver

2011-05-10 Thread Pandi
Hi, I am getting an exception from my application. >From the logcat, found below call flow, 1.OnPause is getting called, here we are doing unregister broadcast receiver. 2.Then OnResume is getting called, here we are registering event after 200ms in the separate task. 3.Before 200ms, OnPause is g

[android-developers] customlistview not getting click events when there is only one item in list?

2011-05-10 Thread Hitendrasinh Gohil
hi, this code works fine with 1.6 and 2.2 but doesnt work with 2.1 update when there is only one element in list. lvTrackData.setOnItemClickListener(new OnItemClickListener() { @SuppressWarnings("static-access") public void onItemCl

[android-developers] NFC testing rig?

2011-05-10 Thread Marcin Orlowski
Hi, We're going to fight with NFC for the next project and since I saw a few people with much more knowledge on the subject on that list I'd like to ask if anyone got any thoughts to share on building testing environment for such projects. I mostly need Android mobile and some standalone NFC devic

[android-developers] Re: hash functions

2011-05-10 Thread pasamblue1
How about PBKDF2. This one is as per FIPs standard. Is SHA1 also a standard from FIPs. On May 10, 12:52 pm, Nikolay Elenkov wrote: > On Tue, May 10, 2011 at 3:59 PM, gjs wrote: > >http://developer.android.com/reference/java/security/spec/MGF1Paramet... > > > SHA256, 384, 512 > > What does the ma

Re: [android-developers] Not finding proxy and port values in the settings.db (Gingerbread)

2011-05-10 Thread sippy zenma
u did it from file? On Tue, May 10, 2011 at 1:33 PM, Ashok Jeevan wrote: > Hi All, > > I was trying to add the proxy and the port from the APN settings. After > pulling the settings.db, I found that the proxy:port values had not been > inserted in the 'secure' or 'system' table. > > I looked in

[android-developers] Re: Eclipse/ADT not rebuilding correctly

2011-05-10 Thread snpe
It's possible that ApkBuilder locks *.apk file when a exception occurs. ApKBuilder work a lot operation with apk file without closing them when a exception happen. The problem disappear when user refresh (unlock) the file or restart OS. Restarting is obligate on Windows because Linux/Mac don't lock

Re: [android-developers] Re: Export contact to vCard

2011-05-10 Thread Kostya Vasilyev
Have you looked at the vCard format specs? http://en.wikipedia.org/wiki/VCard http://tools.ietf.org/html/draft-ietf-vcarddav-vcardrev-19 Even if the library you're using doesn't directly support the items you wish to export, with those specs and examples it should be pretty easy to implement.

Re: [android-developers] Re: Delete all rows from a table throws nullpointer

2011-05-10 Thread Kostya Vasilyev
You call db.delete( , null, null); If the value of "db" is null, you will get a NullPointerException, just like for any other method invocation on a null object, database or not. Check to see where you get the value of "db" from, and fix it so that "db" actually is a valid database object.

[android-developers] Re: Export contact to vCard

2011-05-10 Thread peleflip
Anyone did something similar using another library or is there another way to do it? Thanks On 7 mayo, 10:44, peleflip wrote: > Hi everyone, > > i'm using the library android-vcard(http://code.google.com/p/android-vcard/) > to export data contacts to avCard > > The problem i'm having is that i

[android-developers] Re: onBackPressed to hide Not destroy activity

2011-05-10 Thread Ali Chousein
I agree with Muhammad. Save your instance state and restore it when necessary, instead of trying to do something against the framework. -Ali -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-devel

[android-developers] Re: Delete all rows from a table throws nullpointer

2011-05-10 Thread Capt Spaghetti
So the basic question remains the same. How do I delete everything in a table without dropping and re-creating the table? Thanks On May 9, 7:51 am, Mark Murphy wrote: > If the NullPointerException happens directly on that line, then your > db variable is null. > > > > > > On Mon, May 9, 2011 at

Re: [android-developers] what these logs specify

2011-05-10 Thread Magghu India
Dear Chetan, Could you more specific, like from where did you get data. It will help in analysys. Regards, Mani For Technical Help visit at http://www.magghu.com On Tue, May 10, 2011 at 1:23 PM, chetan wrote: > Hi, > Can anybody help me to understand the below logs. > > 05-10 11:02:2

[android-developers] Not finding proxy and port values in the settings.db (Gingerbread)

2011-05-10 Thread Ashok Jeevan
Hi All, I was trying to add the proxy and the port from the APN settings. After pulling the settings.db, I found that the proxy:port values had not been inserted in the 'secure' or 'system' table. I looked in the above two tables since a lot of web queries showed the query to insert the values in

[android-developers] what these logs specify

2011-05-10 Thread chetan
Hi, Can anybody help me to understand the below logs. 05-10 11:02:23.560 436 436 I am_on_paused_called: com.android.phone.InCallScreen 05-10 11:02:23.560 180 498 I am_failed_to_pause: [1078345632,com.android.phone/.InCallScreen,(none)] 05-10 11:02:23.600 436 436 I phone_ui_en

Re: [android-developers] Re: hash functions

2011-05-10 Thread Nikolay Elenkov
On Tue, May 10, 2011 at 3:59 PM, gjs wrote: > http://developer.android.com/reference/java/security/spec/MGF1ParameterSpec.html > > SHA256, 384, 512 What does the mask generation function has to do with this? Don't just paste random links. > > http://developer.android.com/reference/java/security/

Re: [android-developers] Re: ListView - is it possible to limit the fling speed?

2011-05-10 Thread Omar Adobati
Hi Thanks for your reply... ...but mine dosen't what can I have done to prevent it? I mean, for what reason mine keeps scrolling? *Omar Adobati | omar.adob...@gmail.com | @0m4r * On Tue, May 10, 2011 at 09:46, Dianne Hackborn wrote: > When the user presses o

Re: [android-developers] Re: ListView - is it possible to limit the fling speed?

2011-05-10 Thread Dianne Hackborn
When the user presses on the screen during a fling it stops the screen. This is how list view and other scrolling containers have always working in Android since 1.0. On Tue, May 10, 2011 at 12:07 AM, Omar Adobati wrote: > than to all the guys who have been replying to me, > > So, I have underst

Re: [android-developers] Data transfer from WindowManagerService.java to WindowManager.java

2011-05-10 Thread Dianne Hackborn
You can't do that -- WindowManagerService has an array of WindowState objects, which only inside its process. A Window object only exists inside of the process of that window, and the window manager services knows nothing about it. Further, there is no direct association between a window in the w

[android-developers] SetTypeface with holder

2011-05-10 Thread subha
Hi! public View getView(int position, View convertView, ViewGroup parent) { View vi=convertView; ViewHolder holder; if(convertView==null){ System.out.println("inside null"); vi = inflater.inflate(R.layout.ite

[android-developers] Data transfer from WindowManagerService.java to WindowManager.java

2011-05-10 Thread siva prasad
Hi everyone, I have some required data in WindowManagerService.java file (let me say , mWindows). I want to query that data from WindowManager.java file. For example : I want to have the list of Window Objects in WindowManager.java file , I can get the list from WindowManagerService.java f

[android-developers] How to Override progress bar message i.e.. 0/100

2011-05-10 Thread Jitesh dedhiya
How to Override progress bar message i.e..* 0/100* to say *0 remaining out of 100* -- --Jitesh .V. Dedhiya--- Don't Learn To Hack but Hack To Learn -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to andr

Re: [android-developers] Re: ListView - is it possible to limit the fling speed?

2011-05-10 Thread Omar Adobati
than to all the guys who have been replying to me, So, I have understood I can't limit the speed the fling scroll, but it would be at least possible to stop the scroll when I do touch the list? As I wrote, when I do perform a scroll that then come up to be a "fling" my list scroll to the top or th

  1   2   >