[android-developers] Re: Difference between user-induced "screen on" and programmatically induced "screen on".

2012-04-04 Thread Deep
Hi, One possible solution for this can be : When you broadcast "screen-on" intent through your code, put an extra key kind of flag contains is from code and value is true. So, when you receive this intent and if it contains that flag key it means that it is sent from program else "screen-on" don

[android-developers] Ant build fails since upgrading SDK to latest revision

2012-04-04 Thread Dirk Vranckaert
In my application I use RoboGuice and the configuration for RoboGuice requires to add an Application-class and specify it in the AndroidManifest.xml file in the application-tag using the 'android:name' attribute. So this is how my applicaiton-tag in the manifest looks like: This always wor

[android-developers] debugging problem

2012-04-04 Thread Mahmoud Mortada
i have a mass problem with running or debugging the app ,every time i running it eclipse open new device and doesn't install the app to avd -- Dr.M -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to andro

Re: [android-developers] Re: how to connect with sql server 2005

2012-04-04 Thread Mahmoud Mortada
thank you BNReddy but i have to use direct connection to the database -- 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 and

[android-developers] Re: ScrollView and programmatically scrolling

2012-04-04 Thread Put_tiMe
It's actually quite crazy. I had similar problems with scroll view. But from what you are saying, you are interested in scrolling the text-view. I would presume that the text-view has scroll-view bundled in it. If things are not working out, then try this (at least this is what I did): Derive

[android-developers] cheap,discount nike air max shoes, paypal payment, free shipping,cheap beats by dre,monster beats by dre

2012-04-04 Thread air max shoes
http://www.monsterbeatsbydre4u.com/beats-dr-dre-c-3.html http://www.monsterbeatsbydre4u.com/beats-by-dre-studio-c-1.html http://www.monsterbeatsbydre4u.com/beats-by-dre-tour-c-7.html http://www.monsterbeatsbydre4u.com/lady-gaga-headphones-c-2.html http://www.monsterbeatsbydre4u.com/beats-by-dre-pro

[android-developers] Re: Write storage on Samsung Galaxy Tab 7.7

2012-04-04 Thread Nathan
Well, what do you know. WRITE_MEDIA_STORAGE is a bit like District 13 in I can put this in my manifest. This is because the permission is hidden in manifest.java. /** Allows an application to write to internal media storage @hide */ public static final String WR

Re: [android-developers] Re: how to connect with sql server 2005

2012-04-04 Thread BNReddy
try{ HttpClient client = new DefaultHttpClient(); HttpGet getMeathod = new HttpGet( "URL"); ResponseHandler responseHandler = new BasicResponseHandler(); String responseBody1 = client.execute(g

[android-developers] How do I write Android.mk for an application using com.google.android.maps.jar

2012-04-04 Thread davidlee
Hi All, I am developing an application using com.google.android.maps.jar It is OK to develop it with Eclipse SDK. but failed when i try use anddrod.mk to build the application into system.img. I search this issue and find two solutions: 1. add com.google.android.maps.jar as static java lib when

[android-developers] Re: ScrollView and programmatically scrolling

2012-04-04 Thread Steve Cavanagh
Doesn't setting gravity to "bottom" do 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-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr.

[android-developers] cheap flash tablet

2012-04-04 Thread bob
Can anyone tell me if Flash Player will work on this thing: http://www.chinavasion.com/android-tablets/cynosure-android-23-tablet-with-7-inch-touchscreen-and-wifi-4gb/ Here are the requirements for Adobe Flash Player: ARMv7 processor with vector FPU, minimum 550MHz, OpenGL ES 2.0, H.264 and AAC

[android-developers] Re: Someone use GridLayout (ADT-17) in v7?

2012-04-04 Thread Kevin
I've been struggling with this all afternoon. I've tried dragging a gridlayout in on the layout editor and telling it to import the project, doesn't work. I try manually creating a project from the project folder and then manually linking my project to it, it appears to work, there's a nice green

Re: [android-developers] Parsing JSON data

2012-04-04 Thread lbendlin
your JSON string has multiple hierarchy levels. Instead of a simple for() loop you need a construct that considers that hierarchy. On Wednesday, April 4, 2012 7:31:31 AM UTC-4, Mini agrawal wrote: > > Thanks for reply, still i am getting an parsing error. > What will be jsonString here?(for a gi

[android-developers] Re: MapActivity: Couldn't get connection factory client

2012-04-04 Thread lbendlin
I still get that error a lot even with a correct map key (map tiles are loading). Apart from the error message, do you see any negative effects in your app? On Wednesday, April 4, 2012 10:01:35 AM UTC-4, giles ian wrote: > > After a lot of googling I findout this error id because of invalid May

[android-developers] Re: Someone use GridLayout (ADT-17) in v7?

2012-04-04 Thread ashughes
I'm getting this exact same error, has anyone figure out how to fix it? Andrew On Thursday, March 22, 2012 12:06:16 PM UTC-7, André Luiz R. Silva wrote: > > Someone use GridLayout (ADT-17) in v7? > > Errors: > [GridLayoutTest] ERROR: In GridLayout_Layout, unable > to find attribute android:lay

Re: [android-developers] Re: Large data downloads from a Web app to Android client getting Out of memory error

2012-04-04 Thread Kostya Vasilyev
Perhaps your base64 encoded data doesn't contain line breaks, or contains too few of them? Causing the readline() to try and read the entire 5 MB (or a large portion of it) in memory? For email content (since you mentioned K9) it's common to line-wrap base64 data at some reasonable line size, lik

Re: [android-developers] MapActivity: Couldn't get connection factory client

2012-04-04 Thread Ankita Kashyap
Delete your debug.keystore and follow this http://stackoverflow.com/questions/9020565/does-a-new-debug-keystore-mean-a-new-map-api-key On Wed, Apr 4, 2012 at 7:31 PM, giles ian wrote: > After a lot of googling I findout this error id because of invalid May Key. > > And the reason for invalid Ma

Re: [android-developers] Re: Large data downloads from a Web app to Android client getting Out of memory error

2012-04-04 Thread TreKing
On Wed, Apr 4, 2012 at 1:27 PM, FractalBob wrote: > The data is coming in Base 64 encoded from the Web app and then passed > directly to the processing application. This scheme works fine for all > known types of data > OK. Passed how? As extras in an Intent? ---

[android-developers] Re: Large data downloads from a Web app to Android client getting Out of memory error

2012-04-04 Thread FractalBob
On Apr 4, 8:48 am, TreKing wrote: > On Wed, Apr 4, 2012 at 10:38 AM, FractalBob wrote: > > The data, a kind of mail attachment, is a music file > > Why are you reading lines from this data then? > The data is coming in Base 64 encoded from the Web app and then passed directly to the processing

[android-developers] Write storage on Samsung Galaxy Tab 7.7

2012-04-04 Thread Nathan
Wow, Android and the manufacturers have made sure that all developers look like idiots by never considering that there might be more than one external storage volume in the Android platform, yet coming up with a great variety. At present, I get no information from manufacturers about storage card

[android-developers] Re: Latency of onPreviewFrame callback when using setPreviewCallbackWithBuffer()

2012-04-04 Thread Qianqian Fang
I figure out something myself. I ran a crude experiment and my estimate to this delay is about 210 ms on my cell phone (Galaxy Epic) running Android 2.3.6. Here is how I did my experiment: 1. I first modified a code sample of Chronometer and wrote a program to display a 1/100-second accuracy-time

Re: [android-developers] No validating SAX parser for android?

2012-04-04 Thread Streets Of Boston
Note that SAX validation adds quite a bit of overhead (fetching the schema and then validating each and every element in the XML data). If you can avoid this, avoid it and do your own (simple) validation based on the XML elements you found in the incoming XML data. On Wednesday, April 4, 2012

Re: [android-developers] Re: can i get a dynamically change user interface in android?

2012-04-04 Thread Ankita Kashyap
I assume you have written your own custom adapter and then use notifyDatasetChanged(). On Wed, Apr 4, 2012 at 5:36 PM, ramalakshmi wrote: > > > can u really do it? > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this gr

Re: [android-developers] Video Sharing to Facebook from Android App using "share" intent FAIL :( .

2012-04-04 Thread James Black
Look at where the npe is being thrown, put a breakpoint there, see what is null that you expect isn't. On Apr 4, 2012 10:39 AM, "s.rawat" wrote: > How short>? > I am using > * android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> * > in the manifest > and > > in the Intent Filter for the

Re: [android-developers] Re: How can I use Google Maps in Android Apps

2012-04-04 Thread Mark Murphy
On Wed, Apr 4, 2012 at 12:17 PM, g...@deanblakely.com wrote: > You don't know why having maps that are 7 years old in your app is a > bad thing??? No, I am attempting to determine how you have concluded that the maps are 7 years old. -- Mark Murphy (a Commons Guy) http://commonsware.com | http:

[android-developers] Re: How can I use Google Maps in Android Apps

2012-04-04 Thread g...@deanblakely.com
Mark, You don't know why having maps that are 7 years old in your app is a bad thing??? ok, I get it. You guys are just having fun with me. this forum sucks. On Apr 4, 8:44 am, Mark Murphy wrote: > On Tue, Apr 3, 2012 at 8:14 PM, g...@deanblakely.com > > wrote: > > If the maps are over 7 year

[android-developers] SoftKeyboard -Twin set up

2012-04-04 Thread ramya
Hi, I need to implement the custom softkeyboard for android ,I have a requirement ,that if the screen width is large,I need to show twin keyboards,ie on the either side of the screenwhere user can do thumb typing.Is this even possible?Please shed some pointers on how to display a twin keyboard

Re: [android-developers] Re: Large data downloads from a Web app to Android client getting Out of memory error

2012-04-04 Thread TreKing
On Wed, Apr 4, 2012 at 10:38 AM, FractalBob wrote: > The data, a kind of mail attachment, is a music file > Why are you reading lines from this data then? > and is eventually loaded into an MP3 player. What does that mean? I can't simply point the player to the file, unfortunately; too muc

[android-developers] Re: Large data downloads from a Web app to Android client getting Out of memory error

2012-04-04 Thread FractalBob
On Apr 3, 9:19 pm, TreKing wrote: > On Tue, Apr 3, 2012 at 10:57 PM, FractalBob wrote: > > Anyone have any ideas on why this is happening > > The error tells you exactly why: you are running out of memory. > > > and how to fix it? > > Inspect your response in a web browser first. Is it valid? F

Re: [android-developers] Re: How can I use Google Maps in Android Apps

2012-04-04 Thread Mark Murphy
On Tue, Apr 3, 2012 at 8:14 PM, g...@deanblakely.com wrote: > If the maps are over 7 years old they are useless. And your evidence of this claim is... what, exactly? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter

[android-developers] Re: Large data downloads from a Web app to Android client getting Out of memory error

2012-04-04 Thread FractalBob
Yes, it is a single 5 MB line; so how do I fix it? I tried downloading in small chunks, saving to a file and reopening, but it's the same problem. The data, a kind of mail attachment, is a music file and is eventually loaded into an MP3 player. I can't simply point the player to the file, unfortuna

Re: [android-developers] Re: No validating SAX parser for android?

2012-04-04 Thread Daniel Drozdzewski
Then there is this package (since API level 8): http://developer.android.com/reference/javax/xml/validation/package-summary.html Shame that it is not SAX, as here you parse the whole lot and then validate. Daniel On 4 April 2012 16:06, Chuck Krutsinger wrote: > Here is the code for Android's

Re: [android-developers] ArrayIndexOutOfBoundsException

2012-04-04 Thread Ted Scott
Try here http://javaranch.com or perhaps take a Java course? Android development is much easier when you speak the language. On 4/4/2012 4:48 AM, Graham Bright wrote: Hi, I can't figure out why I am getting and out of bounds exception ? Any ideas -- You received this message because you are

[android-developers] Re: No validating SAX parser for android?

2012-04-04 Thread Chuck Krutsinger
Here is the code for Android's SAXParserFactoryImpl.java: @Override public SAXParser newSAXParser() throws ParserConfigurationException { if (isValidating()) { throw new ParserConfigurationException( "No validating SAXParser implementation available

[android-developers] customAdapter how to print out content of array in TextView.setText() of getview

2012-04-04 Thread Graham Bright
Hi, I have written a CustomAdapter to display a list of hash key+value items as a list. But I am stuck on the line below. label.setText(my_VALUES[0]) Class two is my CustomAdapter and I am passing it a hashMap public MyCustomAdapter(DynamicLists dynamicLists, int row, HashMap data) here I

Re: [android-developers] Video Sharing to Facebook from Android App using "share" intent FAIL :( .

2012-04-04 Thread s.rawat
How short>? I am using * * in the manifest and in the Intent Filter for the app/ Still getting the same crash. "..pain is temporary.quitting lasts forever." My Blog " On Wed, Apr 4, 2012 at 7:57 PM, James Black wrote: > You could have shortened the c

Re: [android-developers] No validating SAX parser for android?

2012-04-04 Thread RedBullet
That's sort of what I am doing now. Seems kind of unsatisfying ;-) Just wanted to know what my options were... It is confusing because the docs seem to imply that one can do validation... On Wednesday, April 4, 2012 9:39:07 AM UTC-4, Streets Of Boston wrote: > > What about not validating the inc

[android-developers] Re: resintalling application due to data corruption

2012-04-04 Thread guich
Its in the /data/data/ -- 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 Fo

Re: [android-developers] Video Sharing to Facebook from Android App using "share" intent FAIL :( .

2012-04-04 Thread James Black
You could have shortened the code, but it appears your app doesn't have permission to read from the data directory. So ask for permission and gracefully handle when it doesn't read the file. On Apr 4, 2012 9:08 AM, "s.rawat" wrote: > HI , > I am trying to share the video on long press by using t

Re: [android-developers] resintalling application due to data corruption

2012-04-04 Thread Albert Rosa
Just curious where is the file you are opening stored? Is it within your APK and within the Raw folder? On Wed, Apr 4, 2012 at 10:07 AM, guich wrote: > Hi, > > Some users are having a very serious problem with some android devices > (motorola, samsung): after running the application for several

Re: [android-developers] Unzipping files

2012-04-04 Thread RDX 2104
ok Thanks On Tue, Apr 3, 2012 at 9:33 PM, Justin Anderson wrote: > Actually i want to develop an application which read the content in the >> password protected zip files >> >> Actually my aim is to provide security to video files. When anyone access >> that files without that app then that file

[android-developers] resintalling application due to data corruption

2012-04-04 Thread guich
Hi, Some users are having a very serious problem with some android devices (motorola, samsung): after running the application for several hours, some data files are being corrupted by the OS. The most strangest thing is that these files are opened using fopen(.., "rb"), thus, in read-only mode. Th

[android-developers] MapActivity: Couldn't get connection factory client

2012-04-04 Thread giles ian
After a lot of googling I findout this error id because of invalid May Key. And the reason for invalid May Key could be bad debug.keystore file. Any solutions ?? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send

Re: [android-developers] Re: (e-)books on Android XML Layouts: suggestions?

2012-04-04 Thread Jim Graham
On Wed, Apr 04, 2012 at 06:32:36AM -0700, Streets Of Boston wrote: > I use this one for XML Drawables: > http://idunnolol.com/android/drawables.html THANKS! That's exactly the kind of reference I'm looking for. Now, if anyone has any pointers to one that covers the rest of XML layouts, I would

Re: [android-developers] No validating SAX parser for android?

2012-04-04 Thread Streets Of Boston
What about not validating the incoming XML? Since i don't know what type of app you need the validating SAX parser for, but if your app just needs to read bits and pieces of incoming XML, you really don't need a validating XML. Just read the data and present it to the user. If the incoming data

[android-developers] Re: (e-)books on Android XML Layouts: suggestions?

2012-04-04 Thread Streets Of Boston
I use this one for XML Drawables: http://idunnolol.com/android/drawables.html On Tuesday, April 3, 2012 2:59:01 PM UTC-4, Spooky wrote: > > Working on my current project, one thing I am really missing is a good, > solid, and *complete* reference covering Android XML layouts, widgets > (from the

Re: [android-developers] Error building Android

2012-04-04 Thread TreKing
On Wed, Apr 4, 2012 at 8:00 AM, Meryeme Ayache wrote: > I am trying to build Android source code Please ask your question about building the source on a more appropriate list, like Android-Porting or Platform. -

Re: [android-developers] Re: Someone use GridLayout (ADT-17) in v7?

2012-04-04 Thread Tor Norbye
You need to use . -- Tor On Wed, Apr 4, 2012 at 5:02 AM, Siddharth Menon wrote: > Hi, > > So finally give GridLayout support for older version. > > Added GridLayout project from /extras/android/support/v7/gridlayout > Added this project as lib to my working project (Target API 7 to 15) > Now in

Re: [android-developers] No validating SAX parser for android?

2012-04-04 Thread RedBullet
Any more ideas on this? I must be doing something obviously wrong, but perhaps there just isn't a validating SAX parser for Android? (though I would have expected someone on this list to say so)... On Monday, April 2, 2012 12:40:13 PM UTC-4, RedBullet wrote: > > I just tried that and got the sam

[android-developers] Video Sharing to Facebook from Android App using "share" intent FAIL :( .

2012-04-04 Thread s.rawat
HI , I am trying to share the video on long press by using the share intent.I am able to share the image (.jpg) but not able to share the videos on facebook. *Following is my code.* Intent share = new Intent(Intent.ACTION_SEND); share.setType("vi

[android-developers] Error building Android

2012-04-04 Thread Meryeme Ayache
hey everyone please can you help me I am trying to build Android source code and I keep getting this error make: *** [out/host/linux-x86/obj/lib/libGLES_CM translator.so] Error 1 would you please help me -- Meryeme Ayache.* **Third year Computer Science Student Engineer at **Ecole Nationale Supér

Re: [android-developers] getview in customadapter not called

2012-04-04 Thread Kostya Vasilyev
Why would it, if your adapter says there are no data items? @Override public int getCount() { // TODO Auto-generated method stub return 0; } -- K 4 апреля 2012 г. 16:51 пользователь Graham Bright написал: > Hi, > > In class 1 I have a hashmap which I send to my > CustomAdapt

Re: [android-developers] Re: branding existing app

2012-04-04 Thread TreKing
On Wed, Apr 4, 2012 at 6:15 AM, Mark wrote: > themes don't quite seem to handle what's needed. i have one > application or project that i want to deploy as 2 applications. build > as app a, then build as app b. i can easily copy in / out a different > resource folder, but that doesn't handle th

[android-developers] getview in customadapter not called

2012-04-04 Thread Graham Bright
Hi, In class 1 I have a hashmap which I send to my CustomAdapter. map.put("year", "Apple"); map.put("make", "Mango"); map.put("model", "Grape"); map.put("style", "Orange"); map.put("series", "Peach"); Log.d(TAG, "HELLO WORLD " + ma

[android-developers] Fwd: فراخوان فوري* براي ترخيص مادري به همراه دوقلوهايش ما را كمك كنيد

2012-04-04 Thread hosein bitaraf
-- Forwarded message -- From: خيريه همت Date: Wed, Apr 4, 2012 at 4:52 PM Subject: فراخوان فوري* براي ترخيص مادري به همراه دوقلوهايش ما را كمك كنيد To: -- * _* *بسم الله الرحمن الرحیم* براي ترخيص مادري به همراه دوقلوهايش ما را كمك كنيد

[android-developers] Fwd: گزارش عملكرد-66* اهداي 2 و نيم ميليون تومان مساعدت به خانواده محروم كنگاوري

2012-04-04 Thread hosein bitaraf
-- Forwarded message -- From: خيريه همت Date: Wed, Apr 4, 2012 at 4:35 PM Subject: گزارش عملكرد-66* اهداي 2 و نيم ميليون تومان مساعدت به خانواده محروم كنگاوري To: -- * _* *بسم الله الرحمن الرحیم* ** اللهم صل علي محمد و آل محمد و عجل فرجهم با سلام به م

[android-developers] Re: can i get a dynamically change user interface in android?

2012-04-04 Thread ramalakshmi
can u really do it? -- 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

[android-developers] Re: Someone use GridLayout (ADT-17) in v7?

2012-04-04 Thread Siddharth Menon
Hi, So finally give GridLayout support for older version. 1. Added GridLayout project from /extras/android/support/ v7/gridlayout 2. Added this project as lib to my working project (Target API 7 to 15) 3. Now in the XML when I use or I get the following error GridLayout (Chan

[android-developers] Re: can i get a dynamically change user interface in android?

2012-04-04 Thread ramalakshmi
Thank u.Actually I want the output as stock values. I get a table of values in the android screen. I want to change the values dynamically as the values in the stock changing? Did u understand me? ramalakshmi -- You received this message because you are subscribed to the Google Groups "Android

Re: [android-developers] Parsing JSON data

2012-04-04 Thread atul gangwar
String jsonString= " *{"id":315,"name":"Sagar Ratna","url":"http:\/\/ www.zomato.com\/ncr\/restaurants\/south-delhi\/mathura-road\/sagar-ratna-315","location":{"address":"B-1, A-11 Mohan Co-operative Ind Area, Mathura Road, New Delhi","locality":"Mathura Road","city":"Delhi","latitude":"28.5

Re: [android-developers] Re: branding existing app

2012-04-04 Thread Albert Rosa
You're looking to have two apps with the same code base, different package / app name. Releasing two apks. The only way I see this likely is to use two different projects with a core library containing the code that you'd like to reuse. sent from my mobile thoughts. On Apr 4, 2012 7:16 AM, "Mark"

Re: [android-developers] Re: can i get a dynamically change user interface in android?

2012-04-04 Thread Anirudh Loya
Yes I will write and give it to you for $1000 ! On Wed, Apr 4, 2012 at 7:29 AM, lbendlin wrote: > yes, yes you can. what do you mean by printing? > > On Wednesday, April 4, 2012 7:22:36 AM UTC-4, ramalakshmi wrote: > >> Hi! >>is there any way to get the dynamically changing user interfa

[android-developers] Re: map doesn't show

2012-04-04 Thread lbendlin
Go through the API registration process again. You will see that your key has changed. On Tuesday, April 3, 2012 9:25:22 PM UTC-4, cellurl wrote: > Hi, > > If one were to "hail-mary" fix a non-displaying google-map issue, > what would you suggest? > > Some background. > I had a map-app work

[android-developers] Re: can i get a dynamically change user interface in android?

2012-04-04 Thread lbendlin
yes, yes you can. what do you mean by printing? On Wednesday, April 4, 2012 7:22:36 AM UTC-4, ramalakshmi wrote: > Hi! >is there any way to get the dynamically changing user interface in > android.I am using setListAdapter for printing on the android ui. >Can u please help me...

[android-developers] Re: Disable screenshot within an app in ICS?

2012-04-04 Thread albnok
I check the SDK INT to be above 10 before setting the flag. Galaxy Tab 7 ignores it and HTC EVO 3D is garbled. On Apr 4, 8:05 am, Greg wrote: > So after seeing this work in the wild a bit, it seems like some phones > actually corrupt the view when they see this flag. I don't see it as part > of

[android-developers] Re: Uninstall application silently from device using MDM for android

2012-04-04 Thread lbendlin
Isn't that something that "Teh Google" does when they want to yank an app from the market and from devices? On Wednesday, April 4, 2012 3:47:26 AM UTC-4, Kristopher Micinski wrote: > No, you can't silently uninstall an app..., > > Why do you want to do so? > > Kris > > On Wed, Apr 4, 2012 at 3:4

[android-developers] can i get a dynamically change user interface in android?

2012-04-04 Thread ramalakshmi
Hi! is there any way to get the dynamically changing user interface in android.I am using setListAdapter for printing on the android ui. Can u please help me.!? -- ramalakshmi -- You received this message because you are subscribed to the Google Groups "Android Developers" gr

[android-developers] Re: branding existing app

2012-04-04 Thread Mark
themes don't quite seem to handle what's needed. i have one application or project that i want to deploy as 2 applications. build as app a, then build as app b. i can easily copy in / out a different resource folder, but that doesn't handle the application "package". each app in the "store" needs

Re: [android-developers] Re: ArrayIndexOutOfBoundsException

2012-04-04 Thread Badrinath Kulkarni
size of "items" ??? set it properly On Wed, Apr 4, 2012 at 3:32 PM, Chris Mawata wrote: > Because of > items = new String[0]; > > > On Apr 4, 3:48 am, Graham Bright wrote: > > Hi, > > > > I can't figure out why I am getting and out of bounds exception ? Any > > ideas > > > > Thanks > > > > pu

Re: [android-developers] setting Wallpaper in Android using button

2012-04-04 Thread Narendra Singh Rathore
On Tue, Apr 3, 2012 at 3:11 PM, baturanija1 wrote: > Please, send me some of your codes to see if it will > work.Thanke you very much > Refer the link as follows: http://blog.georgenguyen.info/index.php/2012/android-how-to-programmatically-set-android-wallpaper/ Its totally working. Even I trie

[android-developers] Re: help in using android USB host mode

2012-04-04 Thread ashish sharma
Hello, Thanks for the reply. I tried calling bulkTransfer multiple times, but I get the same values again. The code is as follows: byte[] buffer =new byte[2]; int length= 2; int TIMEOUT= 0; UsbDeviceConnection connection= ourUsbManager.openDevice(device); connection.claimInterface(intf, true); e

[android-developers] Re: ArrayIndexOutOfBoundsException

2012-04-04 Thread Chris Mawata
Because of items = new String[0]; On Apr 4, 3:48 am, Graham Bright wrote: > Hi, > > I can't figure out why I am getting and out of bounds exception ? Any > ideas > > Thanks > > public static String[] items = new String[0]; > >         public static  HashMap map = new HashMap String>(); > >      

Re: [android-developers] Re: Dynamically adding view in layout xml in android

2012-04-04 Thread Bilal Haider
You can try something like this. View mainlayout = (ScrollView) findViewById(R.id.ScrollView1); LayoutInflater inflater = (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE); View view = (View) inflater.inflate(R.layout.main, null); Tex

[android-developers] Android sdk-component: add support for gnustl_static in new sdk component (application)

2012-04-04 Thread hack_tick
I am creating a new SDK component (application) based on the sample device located at/device/sample the idea is to port an existing application written using C++, which utilizes lots of templates, RTTI, exceptions, STL; from the documentation it is clear that if I build my application with gnu

[android-developers] ArrayIndexOutOfBoundsException

2012-04-04 Thread Graham Bright
Hi, I can't figure out why I am getting and out of bounds exception ? Any ideas Thanks public static String[] items = new String[0]; public static HashMap map = new HashMap(); @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); //

[android-developers] Re: help in using android USB host mode

2012-04-04 Thread al
64 is the _max_ packet size. A single transfer may be shorter; it does not matter if the rest of the buffer is filled with zeros or some garbage since the "data" transfered is contained in just the first x bytes of the buffer where x is the return value from bulkTransfer. For continuous transfer

[android-developers] Re: Uninstall application silently from device using MDM for android

2012-04-04 Thread Kristopher Micinski
No, you can't silently uninstall an app..., Why do you want to do so? Kris On Wed, Apr 4, 2012 at 3:41 AM, Bunty syed wrote: > Hi, > > I want to delete application silently from device. > > But I found there is no way of doing it(except launching uninstaller > screen)  .. > > I read @ MDM in an

[android-developers] Uninstall application silently from device using MDM for android

2012-04-04 Thread Bunty syed
Hi, I want to delete application silently from device. But I found there is no way of doing it(except launching uninstaller screen) .. I read @ MDM in android using which we can wipe data,lock phone, etc... Can we uninstall app silently using MDM.. Thanks & Regards, Bunty Syed.. -- You rece

[android-developers] How to creating a custom HashMapAdapter

2012-04-04 Thread Graham Bright
Hi, If I have a hashmap containing the following how can I instantiate a custom adapter. The custom adapter should extend baseadapter. Hashmap contains (String,String) I need to combine both key and value so it looks something like "KEY+VALUE", "KEY+VALUE" and assign this to an array

Re: [android-developers] Difference between user-induced "screen on" and programmatically induced "screen on".

2012-04-04 Thread Put_tiMe
Sorry, a slight correction: If it's a code induced screen-on, I want to switch bluetooth on/off (toggle). If it's a user induced screen-on, I want to switch bluetooth on. Code induced screen-on is initiated from Alarm-manager. On Wednesday, April 4, 2012 12:26:49 PM UTC+5:30, Put_tiMe wro