Re: [android-developers] Re: how to distribute a Library Project WITHOUT source code (as jar file) as some sort of SDK?

2012-01-27 Thread Klier Rainer
Am 26.01.2012 23:33, schrieb Mark Murphy: On Thu, Jan 26, 2012 at 5:25 PM, joebowbeerjoe.bowb...@gmail.com wrote: Mark Murphy writes: You have to rewrite your [library] code to avoid using R. values, as they will be wrong. The resource compiler was changed in r14 so that the identifiers

Re: [android-developers] how to achieve call-out in android

2012-01-27 Thread unicus unicus
you mean calling.. *More info*, http://androidbasic-answer.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers] Read XML file in android application

2012-01-27 Thread unicus unicus
put the xml file in asset folder and parse it to get result. *More info*, http://androidbasic-answer.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To

[android-developers] Hai all

2012-01-27 Thread chowdary nani
Hi All, I need help on taking the screen shoot using android code. i need to take screen hoot for particular portion of the screen only can any one help me in passing the parameters for the screen shoot here is my following code. View v1 = L1.getRootView();

[android-developers] Interface Designing

2012-01-27 Thread Brad Stintson
Hey all, How do I design better interface for my android application? Are there any software or tutorials available which would help in refining the interfaces? Regards, Brad Stintson -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Re: Hai all

2012-01-27 Thread skink
chowdary nani wrote: Hi All, I need help on taking the screen shoot using android code. i need to take screen hoot for particular portion of the screen only can any one help me in passing the parameters for the screen shoot here is my following code. View v1

Re: [android-developers] Interface Designing

2012-01-27 Thread iñaki
Hi Brad: this is awesome: http://developer.android.com/design/index.html Iñaki On 27 January 2012 11:10, Brad Stintson geek.bin...@gmail.com wrote: Hey all, How do I design better interface for my android application? Are there any software or tutorials available which would help in

RE: [android-developers] Re: Encoder???

2012-01-27 Thread Muhammad UMER
hi pskink, Thanks for your help,It gives more concept. Please can you show me the example that how can i implement these moov atom and ftyp while writing the file to the server side. Regards,umer Date: Thu, 26 Jan 2012 11:26:35 -0800 Subject: Re: [android-developers] Re:

[android-developers] BroadcastReceiver check Phone state

2012-01-27 Thread Wuffy
Hey Guys, I am able to read the following Phone states via intent.getExtras().getString(TelephonyManager.EXTRA_STATE) : - IDLE - RINGING - OFFHOOK Now i wanted to know if i could somehow check programmatically the Phone state indicating that a call on hold and an active call have been merged.

[android-developers] NDK set up

2012-01-27 Thread Narendra Bagade
Hi All, 1.How to set up development environment for NDK? 2.Once set up done ,how to run sample app of NDK? I have searched a lot about NDK but didn't get proper guidance. Please help to get into above two point -- Regards, Narendra . -- You received this message because you are subscribed

Re: [android-developers] Re: Encoder???

2012-01-27 Thread skink
Muhammad UMER wrote: hi pskink, Thanks for your help,It gives more concept. Please can you show me the example that how can i implement these moov atom and ftyp while writing the file to the server side.

[android-developers] Re: AlarmManager does not fire?

2012-01-27 Thread Rudolf Polzer
Yes, the receiver is an inner class of the activity. I changed the receiver line in the manifest file to receiver android:name=.PlanActivity$OnAlarmReceiver/receiver Then the alarm fires, but with an exception the debugger can't display. LogCat says: newInstance failed: no init() -- You

[android-developers] Re: AlarmManager does not fire?

2012-01-27 Thread Rudolf Polzer
This is the stack when the receiver crashes: ActivityThread.handleReceiver(ActivityThread$ReceiverData) line: 2616 ActivityThread.access$3100(ActivityThread, ActivityThread $ReceiverData) line: 119 ActivityThread$H.handleMessage(Message) line: 1913

Re: [android-developers] Re: AlarmManager does not fire?

2012-01-27 Thread Mark Murphy
It would need to be a static public inner class. On Fri, Jan 27, 2012 at 6:54 AM, Rudolf Polzer rudolf.pol...@i-r-p.de wrote: Yes, the receiver is an inner class of the activity. I changed the receiver line in the manifest file to    receiver

[android-developers] sqlite performance

2012-01-27 Thread Live Happy
i have android application that it save transaction history in database file (sqlite) on the sdcard but there is a lot of records and after number of records done or size application create another similar database file to save in. so can anyone tell me after how many record numbers or

Re: [android-developers] Re: android accelerometer to measure distance

2012-01-27 Thread TomL
Not all Android devices have the proximity sensor. In the ones that do, most only give a yes/no response to whether something is near the sensor, so not really suitable for accurately measuring distance. What exactly are you trying to do? Tom -- You received this message because you are

[android-developers] Re: NDK set up

2012-01-27 Thread Oli Wright
If you had searched even a little bit you would have found this page: http://developer.android.com/sdk/ndk/index.html As it says, the group to ask questions is android-ndk, not this one. -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] How to open the ms word documents in android mobile through programming

2012-01-27 Thread Seshu
Hi All, I want to open the ms-word/ms-excel sheet documents in my application. and i implemented reading of pdf files and text files but i am unable to open the ms-word/ms-excel sheet documents. Can anyone tell how to implemented?? Thanks in advance?? and my mail id is s.seshu...@gmail.com

Re: [android-developers] Unfortunately the activity has stopped

2012-01-27 Thread TreKing
On Fri, Jan 27, 2012 at 12:09 AM, newtoandroid shobana...@gmail.com wrote: ünfortunately,the activity has stopped with an ok button. If you're referring to a force close message, read the stack trace given in the LogCat and find the Caused by... line.

[android-developers] Re: My First android programming

2012-01-27 Thread Seshu
Hi Sahar, U can install the android apk files in 2 ways, 1) Connect the device to System. Now Open the command prompt then do these steps: a) Locate the android SDK folder i.e., where did u copied the android- sdk-windows. For example: D:\ cd android-sdk-windows.. enter D:\ cd

Re: [android-developers] Unfortunately the activity has stopped

2012-01-27 Thread arun kumar
you create repeated the button id two times that's the problem. btnLogin=(Button)this.findViewById(R.id.btnLogin); btnLogin=(Button)this.findViewById(R.id.btnLogin); On Fri, Jan 27, 2012 at 11:39 AM, newtoandroid shobana...@gmail.com wrote: i tried a simple login page which gets

Re: [android-developers] How can I install a CA root certificate on Android 2.3.4?

2012-01-27 Thread Nikolay Elenkov
On Wed, Jan 25, 2012 at 4:56 AM, Rene rtrev...@gmail.com wrote: Hi. Where I work use an internal CA root. One service attached to this CA is the exchange, then I need to sync my android device with email, calendar, contacts, etc. How can I install a CA root certificate on Android 2.3.4?

[android-developers] Re: Best Application Data Backup solution?

2012-01-27 Thread gcstang
I know there are solutions such as : Amazon S3 Google Storage Sending data to my own server etc... What I'm wondering is what is the implementations that have been tried and are working for others? On Jan 25, 7:09 am, gcstang gcst...@gmail.com wrote: What is thebestsolution to integratebackup,

[android-developers] Re: AlarmManager does not fire?

2012-01-27 Thread Anieeh
I think you have not registered Receiver in Activity with receiver object and intentFilter registerReceiver(android.content.BroadcastReceiver receiver, android.content.IntentFilter filter) Animesh S. Sinha. On Jan 27, 5:00 pm, Rudolf Polzer rudolf.pol...@i-r-p.de wrote: This is the stack when

Re: [android-developers] Re: AlarmManager does not fire?

2012-01-27 Thread Kostya Vasilyev
No, that's because the inner class is not static - which is wrong for a manifest-registered receiver. A non-static inner class object can only be instantiated inside an instance of the enclosing class, therefore, when the intent fires, the Android framework is unable to instantiate the

Re: [android-developers] Dynamically populating LinearLayout in an AppWidget

2012-01-27 Thread Kostya Vasilyev
I don't see anything in the source for RemoteViews that would do that, maybe I'm not looking well enough. My suggestion would be -- for debugging purposes only -- to simulate a RemoteViews update cycle within your own application, checking the result, and stepping through the code if

[android-developers] Re: SQLiteDatabase.execSQL() not behaving as expected

2012-01-27 Thread Robert Hawkey
Yes you would be right if I was using MATCH for the SELECT from the temporary SearchResults table; however, I'm not doing that. I just select all the rows from that table as it is not an FTS3 table. Yes you're also correct, neither iOS nor Android seem to support FTS4 tables at the moment. My

Re: [android-developers] Dynamically populating LinearLayout in an AppWidget

2012-01-27 Thread TreKing
On Fri, Jan 27, 2012 at 8:31 AM, Kostya Vasilyev kmans...@gmail.com wrote: I don't see anything in the source for RemoteViews that would do that, maybe I'm not looking well enough. Yeah, I briefly stepped through the source and didn't see anything obvious. But then my eyes glazed over =) I

[android-developers] Re: Multi Language Tool

2012-01-27 Thread Eurig Jones
Due to the fact that Google Translate API is now a closed shop and not available I don't think it's possible. I've tried all sorts of plugins that probably used to work before this happened but now they don't. I found this guy who translated my app for me probably using google translate, but he

Re: [android-developers] Dynamically populating LinearLayout in an AppWidget

2012-01-27 Thread Mark Murphy
On Thu, Jan 26, 2012 at 11:37 PM, TreKing treking...@gmail.com wrote: If I manually add instances of the layout (the one I'm inflating) to the linear layout via the designer, they show up. If I dynamically add instances of different layouts to the LinearLayout one after the other, they show

Re: [android-developers] Dynamically populating LinearLayout in an AppWidget

2012-01-27 Thread TreKing
On Fri, Jan 27, 2012 at 9:44 AM, Mark Murphy mmur...@commonsware.comwrote: Try calling setId() on LinearLayout before passing it to addView(), giving it a unique ID value, and see if that helps. Actually, I had that idea. I forget the exact message, but it yelled at me that I can't call that

[android-developers] Re: Creating an application to edit photos

2012-01-27 Thread JackN
Might be hard to find a virtual makeup studio api, but you could check this out for ideas https://market.android.com/details?id=com.jnn.jw.lookhl=en On Jan 26, 1:53 pm, TreKing treking...@gmail.com wrote: On Tue, Jan 24, 2012 at 11:52 PM, Soorie sapient.sur...@gmail.com wrote: I request you

[android-developers] Re: AlarmManager does not fire?

2012-01-27 Thread Rudolf Polzer
I removed the inner classes: I put the classes WakefulIntentService, OnAlarmReceiver and AppService into separate files and now the alarm manager is working. Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] I can't get onLongClick on Button to be passed to enclosing TableRow.

2012-01-27 Thread Jan Skarvall
Hi This feels kind of embarrassing. Have I misunderstood the basics? I want a Button to take care of Clicks, but to pass on LongClicks to an enclosing View, in this case a TableRow. I just can't get it work. I simplified the code down to what is shown below without luck. package my.namespace;

Re: [android-developers] Dynamically populating LinearLayout in an AppWidget

2012-01-27 Thread Kostya Vasilyev
27.01.2012 19:20, TreKing пишет: Well, I do update them in 3 places: onUpdate() to set up the widgets from configured data when necessary; in the configuration Activity when I'm done setting up the widget to initialize it; and then in this IntentService when it's called on tapping the

[android-developers] null returned: 139

2012-01-27 Thread Dennis
Hi when i build with ant ( ant debug install) i get the following error. -package-resources: [aapt] Creating full resource package... BUILD FAILED /home/dennis/android-sdk-linux/tools/ant/build.xml:792: The following error occurred while executing this line:

Re: [android-developers] Interface Designing

2012-01-27 Thread Brad Stintson
Hi all, Thanks Inaki. It really is awesome. But my problem is, I am looking for some help or some software or tutorials for designing a better UI for Android 2.1+. Something that would make my task easier. As for an example if anyone does know how they design the custom layouts for apps like Go

[android-developers] AccessibilityEvent in monkey

2012-01-27 Thread avi
All, I am trying to develop an UI based automation system and I was exploring AccessibilityEvent option in Monkey. Following are the steps that I did (i) Launched monkey server socket (ii) Opened Settings app (tried other on board apps as well) (iii) Created a client socket from host machine and

[android-developers] Re: Possible TabHost bug on samsung galaxy 10.1 tab running 3.2

2012-01-27 Thread Jim Andresakis
After looking at my code over a couple of days and comparing it to other examples I found that I had been using the following code in my set up which the galaxy tab didnt seem to like: TabHost xmlns:android=http://schemas.android.com/ apk/res/android android:id=@+id/my_tabhost

[android-developers] EditText in ListView footer not visible when the soft keyboard is present

2012-01-27 Thread ivan
I have a ListView and I'm placing an EditText view in its footer, but the soft keyboard blocks the EditText view when it pops up. My AndroidManifest has: activity android:name=com.myapp.views.activities.StoresSearchActivity android:label=@string/appName

[android-developers] How to get utf-8 encode page with HTTP request?

2012-01-27 Thread TurboMan
Hi, I've been bogging down for a while but no like. I am trying to get a page with HTTP request, but it has non-ascii characters such as Ç, Ş, İ, Ö, Ğ. But, I see other characters without any problem except those kind of characters. I use the following code, got it through google search. It

Re: [android-developers] How to get utf-8 encode page with HTTP request?

2012-01-27 Thread Mark Murphy
http://stackoverflow.com/questions/4480363/android-java-utf-8-httpclient-problem http://stackoverflow.com/questions/1900409/how-to-read-non-english-texts-in-java-they-are-represented-in-wrong-encoding On Fri, Jan 27, 2012 at 4:30 PM, TurboMan yusufce...@gmail.com wrote: Hi, I've been bogging

[android-developers] Re: Scroll View

2012-01-27 Thread Oliviu Vais
I still want to scroll the view to the right or left using two buttons in my app. I got this far, but this doesn't work. Please help!! public boolean onTouch(View v, MotionEvent event) { // TODO Auto-generated method stub if(v.getId() ==

Re: [android-developers] Re: NFC Secure Element

2012-01-27 Thread Michael Roland
Hallo Saurabh, What is the significance of this : I just looked through my code and found that I also explicitly disabled ISO 14443-4 activation (before polling) using this command: FF0003D41224 See page 9 of the reader API manual: Some Type A Tags may support both ISO14443-3 Type A

[android-developers] How to test if something is a PopupWindow

2012-01-27 Thread plnelson
(I posted this on Stack Overflow but as of this writing I've received no response) I'm writing code that starts with a View object in a layout hierarchy and iteratively walks up the tree to the view root, using *getParent()*, displaying information about each level as it goes. Everything is

Re: [android-developers] How to test if something is a PopupWindow

2012-01-27 Thread Mark Murphy
Test getClass().getName() to see if it is android.widget.PopupWindow$PopupViewContainer, presumably. Of course, there may be a better solution for whatever it is you are trying to do, but your rationale behind walking the view hierarchy this way escapes me. On Fri, Jan 27, 2012 at 5:14 PM,

Re: [android-developers] Dynamically populating LinearLayout in an AppWidget

2012-01-27 Thread YuviDroid
Hey, I think I had a similar problem some time ago...unfortunately I don't remember exactly how I solved. However I think I used RemoteViews.removeAllViews(). I would try: RemoteViews views = new RemoteViews(getPackageName(), R.layout.widget_layout); views.removeAllViews(R.id.ll_widget); ...

[android-developers] Re: Logcat is broken every time phone is unplugged

2012-01-27 Thread Indicator Veritatis
Although I dont' remember encountering exaclty the same problem, the unreliability of logcat display from inside Eclipse is the reason I long ago got into the habit of runnig logcat in a Terminal window (I run Eclipse under Linux, not Windows) instead. But even then, when I disconnect the USB

[android-developers] No resource identifier found for attribute 'tabLayout' in package 'android'

2012-01-27 Thread Grantland
Is there any reason that the attribute android:tablayout isn't publicly available? I can find it in the source here: https://github.com/android/platform_frameworks_base/blob/master/core/res/res/values/attrs.xml#L2912 but it doesn't show up in the docs here:

Re: [android-developers] No resource identifier found for attribute 'tabLayout' in package 'android'

2012-01-27 Thread Tor Norbye
The file public.xml in the same folder defines which attributes are API. -- Tor On Fri, Jan 27, 2012 at 6:13 PM, Grantland grantlandc...@gmail.com wrote: Is there any reason that the attribute android:tablayout isn't publicly available? I can find it in the source here:

[android-developers] Unable to force stop apps which are device administrators on ICS

2012-01-27 Thread Jacob
[This is cross posted from android-platform, where it didn't get any answers] On my Nexus S running Android 4.0.3, I don't seem to be able to force stop device admin apps. Specifically, Settings-Apps-All tab-My Device Admin App leads to a display with the Force Stop button grayed out/unavailable.

[android-developers] I have a waring error

2012-01-27 Thread nashuwu
error is [2012-01-28 09:32:24 - Emulator] WARNING: SD Card image already in use: C:\Documents and Settings\hp\.android\avd\Gingerbread.avd/ sdcard.img -- 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] How to parse Json file (Which is output of http://maps.googleapis.com/maps/api/geocode/json.....)

2012-01-27 Thread Dhaval Varia
Dear All I am using GEO-CODER for getting Address of place by Lat-Long. But some times, i get Unable to parse output from server . So i have decided to use following web service: http://maps.googleapis.com/maps/api/geocode/json?latlng=22.508507985602836,73.474991977022533sensor=false SO my

Re: [android-developers] How to parse Json file (Which is output of http://maps.googleapis.com/maps/api/geocode/json.....)

2012-01-27 Thread Shubhangi
hello first of all let me tell u regarding ur track for JSON parsing and getting address using a web service is right.. now here I'm sending u code that how I am used to parse the JSON data.. All you have to do is check this specified URL and change the rest of the code according your

[android-developers] AutoScroll ListView at specified intervals without user intervention

2012-01-27 Thread Giants203
I would like to auto scroll list view at specified time intervals without user intervention. The time intervals will be supplied in an array on integers say 1000, 4000, 5000 in millisecs I want to show the first list item as soon as the list launches and then wait 10 sec to show the next list

[android-developers] Re: android help

2012-01-27 Thread ajay talreja
Is that “View.OnClickListener” listener only restricted to Layouts i.e. button Events etc or it can be used to application click event…….example when application is double clicked ,dialer gets opened and when same application is single clicked , should get open...is it possible…if yes….kindly

Re: [android-developers] Dynamically populating LinearLayout in an AppWidget

2012-01-27 Thread TreKing
On Fri, Jan 27, 2012 at 6:00 PM, YuviDroid yuvidr...@gmail.com wrote: I think I had a similar problem some time ago...unfortunately I don't remember exactly how I solved. However I think I used RemoteViews.removeAllViews(). Thanks. That didn't work (actually led to the default could not load

Re: [android-developers] Re: android help

2012-01-27 Thread TreKing
On Sat, Jan 28, 2012 at 12:04 AM, ajay talreja ajayt...@gmail.com wrote: Is that “View.OnClickListener” listener only restricted to Layouts i.e. button Events etc Yes. You can look through the docs to see where it's used. or it can be used to application click event…….example when

Re: [android-developers] Re: Scroll View

2012-01-27 Thread TreKing
On Fri, Jan 27, 2012 at 3:38 PM, Oliviu Vais oliviu.v...@gmail.com wrote: I got this far, but this doesn't work. You should generally explain what doesn't work means, but I can tell from your code that you're locking the UI and getting an ANR, right? You can't just do while (some condition