[android-developers] Very easy to solve problem with SimpleXML. What i'm doing wrong?

2012-03-22 Thread saex
i'm working with Android and SimpleXML I need to parse this XML file with SimpleXML: magazine title=Número 1 id=1 descriptionyutyutyu/description miniaturehttp://web.com/scripts/getImage.php?idMagazine=1resource=miniature.jpg/miniature summary2/summary

[android-developers] Re: Dev Environment - maven-android-eclipse

2012-03-22 Thread b0b
On Thursday, 22 March 2012 15:55:43 UTC+1, Ricardo Gladwell wrote: Hi Ted This is possible, please see the Android Connector for M2E (Maven for Eclipse): http://rgladwell.github.com/m2e-android/ Regards... The thing is that it never worked too well as the eclipse ADT plugin and

Re: [android-developers] Re: Dev Environment - maven-android-eclipse

2012-03-22 Thread Michael Sims
Android + Maven + Eclipse is definitely possible, but speaking from experience, it's painful. Tedious to get working, builds are very very slow and fragile. You can do it, but it'll hurt. For what it's worth, IntelliJ + Android + Maven works wonderfully. Because I was working on a largish

Re: [android-developers] Very easy to solve problem with SimpleXML. What i'm doing wrong?

2012-03-22 Thread TreKing
On Thu, Mar 22, 2012 at 10:05 AM, saex elpablos...@gmail.com wrote: These are my java clases... ¿what is wrong? You're asking a question about SimpleXML on an Android Development forum. Try the SimpleXML site, forums, groups, etc, or whatever other resources are available for that library.

[android-developers] Re: Redirect my app to network setting if the device is not connected to any Network??

2012-03-22 Thread Chris Stratton
You could probably do it by sending an intent, for example ACTION_WIRELESS_SETTINGShttp://developer.android.com/reference/android/provider/Settings.html#ACTION_WIRELESS_SETTINGS On Thursday, March 22, 2012 4:20:50 AM UTC-4, muhamma...@hotmail.com wrote: Hi, Please help me, my

[android-developers] Re: Android adb permision error

2012-03-22 Thread Chris Stratton
On Thursday, March 22, 2012 3:22:50 AM UTC-4, liuyix wrote: Have the same problem on one of my android phones.But the other android phone I got doesn't have this problelm. Your udev rules file probably does not contain a rule matching the VID of that device. -- You received this message

Re: [android-developers] Re: How to use cp (Copy) command in system function in native C code on Android

2012-03-22 Thread Chris Stratton
On Thursday, March 22, 2012 1:02:20 AM UTC-4, Saurabh Patel wrote: Hi all Its resolved some problem of read write permission of my mounted directory Launching a process is still a very bad way to solve a problem on Android, which should only be resorted to when there is no alternative (for

[android-developers] Re: Instalation of FDTI Driver in Android

2012-03-22 Thread Chris Stratton
It's not on topic for this group as it is far outside the bounds of the SDK. Either contact FTDI and ask them to improve their terribly inadequate documentation, or do some searching as I think the question has come up on in other android forums and may have a solution. On Wednesday, March

Re: [android-developers] Re: How to use cp (Copy) command in system function in native C code on Android

2012-03-22 Thread Kristopher Micinski
Dianne gave you a very good alternative. Use it, as it will be more portable across devices, allow you to more easily detect failures, will not require a busybox install, and will be more likely to continue working on future Android versions. Even more than more likely I would think it would

Re: [android-developers] Re: Android Project development cost

2012-03-22 Thread Bob Plantz
On 3/22/2012 3:24 AM, Daniel Drozdzewski wrote: Recommendation2: Consider offers other than $x/hr, as those give the vendor incentive to be late. Divide the project into handful of stages, and pay for each completed stage, where both sides agree on 'completeness criteria'. It will encourage the

[android-developers] Re: Android build and target versions

2012-03-22 Thread Neilz
Thanks TreKing. I hoped this was the case, and for most of my apps this seemed to be what was happening. I've actually been meaning to ask this for some time... but what prompted me to ask now is that one app is not appearing in the market for users of ICS. There's nothing in the manifest of this

[android-developers] installing Play Store

2012-03-22 Thread bob
I have a device that has no Android Market (or Play Store) on it, and I need to download a Flash player to it to play flash from my Activity. Is there any way to do this? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: Removing an item from ListView

2012-03-22 Thread radhakrishna
My Problem was solved, anyway thank you for all. I need to edit getView() Method inside the EfficientAdapter class public View getView(final int position, View convertView, ViewGroup parent) { ViewHolder holder; if(convertView == null){ convertView =

Re: [android-developers] installing Play Store

2012-03-22 Thread Mark Murphy
It is possible Adobe makes the Flash Player for Android available for direct download from their Web site. On Thu, Mar 22, 2012 at 12:19 PM, bob b...@coolfone.comze.com wrote: I have a device that has no Android Market (or Play Store) on it, and I need to download a Flash player to it to play

Re: [android-developers] installing Play Store

2012-03-22 Thread TreKing
On Thu, Mar 22, 2012 at 11:19 AM, bob b...@coolfone.comze.com wrote: Is there any way to do this? http://www.justfuckinggoogleit.com/ download android flash player - TreKing

Re: [android-developers] Greetings

2012-03-22 Thread Marcin Orlowski
Good advice for novice like you. Prior asking any beginer's question here, google for your problem (i.e. error message from logcat) or subject you got problems with android tutorial (i.e. sql adapter android tutorial). In most cases you will find what you lack. Regards, Marcin Orlowski *Tray

Re: [android-developers] Re: Android Project development cost

2012-03-22 Thread Matthew Jacobs
I normally encourage potential clients to stick with one developer / team to get to mvp. Knowing what a lot of outsourced code looks like, if you do it in stages and get past the first or second stage, then in order to change developers you'll probably have to start again anyway. I'd prefer

[android-developers] R cannot be resolved to a variable error in intro example code

2012-03-22 Thread firebreather
when i try to run the intro example hello world code i get the error message R cannot be resolved to a variable, for the setContentView(R.layout.main) line of the intro code. since this bug is the the android adt's own intro example code everyone would encounter this error starting out, and when i

Re: [android-developers] SWF file

2012-03-22 Thread Justin Anderson
Great... Just realize that not all devices are going to have something that can play SWF files so you will need to safeguard against that. The easiest way that I know of is to use PackageManager.queryIntentActivities() and pass it your intent... This will return a list of ResolveInfo objects...

Re: [android-developers] R cannot be resolved to a variable error in intro example code

2012-03-22 Thread Justin Anderson
Do you have a file called res/layout/main.xml in your project? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Mar 22, 2012 at 11:00 AM, firebreather michaelirvingbr...@gmail.com wrote: when i try to run the intro example hello world code i get

Re: [android-developers] which framework is best for to develop cross platform mobile applications?

2012-03-22 Thread Justin Anderson
What made you say PhoneGap is good? Tell its merits? How about you actually do the research yourself and decide if it is a good fit for you? The people on this forum are not a substitute for your brain... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware

[android-developers] Re: R cannot be resolved to a variable error in intro example code

2012-03-22 Thread firebreather
yes, the res/layout/main.xml file in the hello world example code in the android adt reads as follows in eclipse for me: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent

Re: [android-developers] Hello everyone, i couldn't figure out what this error in the logcat means!!!

2012-03-22 Thread Justin Anderson
Did you bother to look at the documentation? An ArrayAdapter constructor takes more than just one argument... One of them happens to be the id of a text view: http://developer.android.com/reference/android/widget/ArrayAdapter.html#ArrayAdapter%28android.content.Context,%20int%29 Thanks, Justin

Re: [android-developers] R cannot be resolved to a variable error in intro example code

2012-03-22 Thread Rahul Vijay
On Thu, Mar 22, 2012 at 10:32 PM, Justin Anderson magouyaw...@gmail.comwrote: Do you have a file called res/layout/main.xml in your project? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Mar 22, 2012 at 11:00 AM, firebreather

Re: [android-developers] R cannot be resolved to a variable error in intro example code

2012-03-22 Thread Mark Murphy
On Thu, Mar 22, 2012 at 1:00 PM, firebreather michaelirvingbr...@gmail.com wrote: when i try to run the intro example hello world code i get the error message R cannot be resolved to a variable, for the setContentView(R.layout.main) line of the intro code. Usually, this means that there is a

Re: [android-developers] Hello everyone, i couldn't figure out what this error in the logcat means!!!

2012-03-22 Thread Justin Anderson
Sorry... Didn't notice your ArrayAdapter constructor... You have more the correct NUMBER of arguments, but you are specifying the layout... not the id of the textview. If your textview looks like this: textView android:id=@+id/my_textView / then the second parameter in your constructor should

[android-developers] Re: R cannot be resolved to a variable error in intro example code

2012-03-22 Thread firebreather
this is the MainActivity.java file in the Hello Android example code: package com.dummies.android.helloandroid; import android.app.Activity; import android.os.Bundle; public class MainActivity extends Activity { /** Called when the activity is first created. */ @Override public

[android-developers] android offline synchronizing app/tool

2012-03-22 Thread arkiver
Hello, I am looking for an offline synchronizing tool/app/client for android devices. It can be used to take backup of 1. Contacts 2.Messages 3.Photos Videos 4.Calender. It should be able to backup this data using one or more of these: 1.USB 2.WIFI 3.BLUETOOTH 4.HTTP Also, I am looking for such

[android-developers] Re: R cannot be resolved to a variable error in intro example code

2012-03-22 Thread firebreather
i got an email which solved the first R cannot be resolved to a variable from Chuck Krutsinger, who has been very patient with this newbie: The import you refer to is not technically a bug. The compiler is looking for a file named R, which it will find in the gen directory if your IDE has

Re: [android-developers] Re: Dev Environment - maven-android-eclipse

2012-03-22 Thread Ted Scott
On 3/22/2012 11:25 AM, Michael Sims wrote: Android + Maven + Eclipse is definitely possible, but speaking from experience, it's painful. Tedious to get working, builds are very very slow and fragile. You can do it, but it'll hurt. I think I had the pain part figured out ;) Slow, I wasn't too

Re: [android-developers] Dev Environment - maven-android-eclipse

2012-03-22 Thread Ted Scott
On 3/21/2012 8:59 PM, James Black wrote: I would expect that a problem is using other libraries. Are all of the jar files built for the Android? Good point. Yes, the android relevant libraries are built for android. The major malfunction that brought the question on is a problem when

[android-developers] Re: get the IP List of HotSpot Clients

2012-03-22 Thread Sonia Gupta
To get the IPAddress or MAC Address of the Local hotspot; you need to make a DHCP listener, that will listen to DHCP --- DHCPREQUEST and then DHCPACK will give you details that who requested for connection to hotspot and after that who got connected... You may use DatagramSocket to listen to the

Re: [android-developers] SWF file

2012-03-22 Thread bob
Thanks. I also wrote some code and got Flash working in a WebView: WebView wv = (WebView) findViewById(R.id.webView1); wv.getSettings().setPluginState(PluginState.ON); wv.setWebViewClient(new WebViewClient() { @Override public boolean shouldOverrideUrlLoading(WebView view, String

[android-developers] Re: Please Help me! I have SQLiteDatabaseCorruption Error

2012-03-22 Thread Halil Enver Soylu
so what would you suggest? I checked if all bytes of db copied, any yes it copies all of it. what should I do now? how can I load my prefilled 5MB database? On Tuesday, March 13, 2012 11:30:11 AM UTC+2, Zsolt Vasvari wrote: I would very strongly advise you against doing this. There is no

[android-developers] Re: Please Help me! I have SQLiteDatabaseCorruption Error

2012-03-22 Thread Halil Enver Soylu
so what would you suggest? I checked if all bytes of db copied, and yes it copies all of it. what should I do now? how can I load my prefilled 5MB database? On Tuesday, March 13, 2012 11:30:11 AM UTC+2, Zsolt Vasvari wrote: I would very strongly advise you against doing this. There is no

[android-developers] Re: Please Help me! I have SQLiteDatabaseCorruption Error

2012-03-22 Thread Nadeem Hasan
How are you ensuring that they are being reassembled in the same order? From the code, it looks like you just get a list of all the files in the assets directory and concatenate them in the order they were returned by the API. This order may or may not be the same as the natural order of these

[android-developers] Re: Please Help me! I have SQLiteDatabaseCorruption Error

2012-03-22 Thread Halil Enver Soylu
nope, I can check which file read in which order by logs. They are in order. if they were not in order, it would not work in any phone. On Thursday, March 22, 2012 8:35:58 PM UTC+2, Nadeem Hasan wrote: How are you ensuring that they are being reassembled in the same order? From the code, it

Re: [android-developers] Re: Dev Environment - maven-android-eclipse

2012-03-22 Thread Ted Scott
Hi Ricardo, First let me thank you for doing the m2e-android plugin! Thank you for pointing out that it exists, I was very generic in my questions. That was part of the path that got me asking about this. I started with trying to use ActionBarSherlock in my project and saw they seemed to be

Re: [android-developers] ANDROID APP FOR YOUTUBE

2012-03-22 Thread TreKing
On Wed, Mar 21, 2012 at 2:49 PM, BADDY247 smithbharad...@gmail.com wrote: I am an aspiring android developer. I would like to know information regarding making the 'youtube' app for andorid. Any material or help regarding this would be really great.

[android-developers] Re: Accessing skydrive from Android app

2012-03-22 Thread Anand kishore
Magouyaware: I'm getting a problem while accessing the skydrive file. My android app is getting closed automatically. I think there is an error in ClientID . Could you please help me out? I can send my app. Thank you:) On Monday, 19 March 2012 11:37:01 UTC+5:30, Anand kishore wrote: Hie

[android-developers] Re: Offline SDK installation

2012-03-22 Thread VenomVendor™
Might be Late Reply, Very late reply, but surely will help u, Check out this Link Offline Installation of Android SDK'shttp://venomvendor.blogspot.in/2012/03/how-to-download-install-android-sdk.html -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Please Help me! I have SQLiteDatabaseCorruption Error

2012-03-22 Thread Nadeem Hasan
Then copy the corrupted file to your desktop and do a binary compare with the original. This may give you some clues about what is going wrong. -- 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] Re: Offline SDK installation

2012-03-22 Thread VenomVendor™
Might be Late Reply, Very late reply, but surely will help u, Check out this Link Offline Installation of Android SDK'shttp://venomvendor.blogspot.in/2012/03/how-to-download-install-android-sdk.html -- You received this message because you are subscribed to the Google Groups Android Developers

Re: [android-developers] android UI : How to make 3 tap bars ?

2012-03-22 Thread TreKing
On Wed, Mar 21, 2012 at 7:41 AM, Mohammed Elsabry mohammed.elsa...@nazzelha.com wrote: i would like to know the perfect way to make a 3 tap bars like the image in the following linkhttp://www.freeimagehosting.net/b3wva If you want the perfect way, you're going to be waiting forever. when

Re: [android-developers] How to set state_selected for initially selected item in gallery

2012-03-22 Thread TreKing
On Wed, Mar 21, 2012 at 2:51 AM, Joachim joachims...@gmail.com wrote: Even textview.setSelection(n) doesn't help. TextView.setSelection() does not exist. That might be a problem. - TreKing

Re: [android-developers] Automatic error report feature in android not working?

2012-03-22 Thread TreKing
On Wed, Mar 21, 2012 at 1:33 PM, Fabian fabiankaj...@googlemail.com wrote: Why is the feature not working on this error? Does it work on other apps? It might not be the error but the device. -

RE: [android-developers] one time Registration after installation of an application??

2012-03-22 Thread Muhammad UMER
Thanks Treking, My registration activity show only one time, how can i hide this activity after when the user registered to the application mean this activity will not show to user. Regards, umer From: treking...@gmail.com Date: Thu, 22 Mar 2012 09:26:15 -0500

Re: [android-developers] Re: On Reciving SMS Calling Web Service.

2012-03-22 Thread Kristopher Micinski
Providing a few hundred lines of code and asking people to debug it for you won't get much help. Something in your program is null, it shouldn't be null, make it not null. Give a stack trace, by doing an adb logcat, which will tell you the trace of how your program got there, (seems you might

Re: [android-developers] one time Registration after installation of an application??

2012-03-22 Thread TreKing
On Thu, Mar 22, 2012 at 3:07 PM, Muhammad UMER muhammad.ume...@hotmail.comwrote: My registration activity show only one time, how can i hide this activity after when the user registered to the application mean this activity will not show to user. Save a preference to indicate whether to show

[android-developers] Re: Hello everyone, i couldn't figure out what this error in the logcat means!!!

2012-03-22 Thread Soyer
Hello Justin, thanks for the reply... yes it is in that form, extView newDevicesListView = (TextView) findViewById(R.id.title_paired_devices); On Mar 22, 9:17 pm, Justin Anderson magouyaw...@gmail.com wrote: Sorry... Didn't notice your ArrayAdapter constructor... You have more the correct

[android-developers] Re: Thread started inside Service is killed?

2012-03-22 Thread svl
Thanks for the reply TreKing. Actually I now tried to use startForeground(). Notification icon is hanging in the bar, but whenever I send an intent to a Service it doesnt seem to receive it, does it mean its dead? On Mar 19, 6:30 am, TreKing treking...@gmail.com wrote: On Sun, Mar 18, 2012 at

Re: [android-developers] Re: Thread started inside Service is killed?

2012-03-22 Thread TreKing
On Thu, Mar 22, 2012 at 3:40 PM, svl s.i.vladimi...@googlemail.com wrote: Notification icon is hanging in the bar, I don't know what hanging in the bar means. It's getting drunk? but whenever I send an intent to a Service it doesnt seem to receive it, does it mean its dead? No, it means

[android-developers] Re: Sync Android app with Outlook

2012-03-22 Thread Ali Chousein
Try to find out which interfaces are available for accessing data in Outlook. Studying the Outlook interfaces should be your starting point. Your question is not Android SDK specific. - Ali Chousein

[android-developers] Re: Automatic error report feature in android not working?

2012-03-22 Thread lbendlin
The real question is - does the bug eventually show up on the market pages or not? For what it's worth - you could also roll your own crash handler, and send the crash reports to your email address. That way you may have better control over the process. Works for me. On Wednesday, March 21,

Re: [android-developers] how to make a button stay in state_pressed style

2012-03-22 Thread TreKing
On Wed, Mar 21, 2012 at 7:20 AM, Alisson Wilker alissonwil...@gmail.comwrote: The problem is: how can I get the button to stay in state_pressed, getting the style from the current theme? Don't use Button. See: http://developer.android.com/reference/android/widget/CompoundButton.html and its

[android-developers] How do I create an editable browser window?

2012-03-22 Thread FractalBob
I'm building an app, based on the mail client K-9 Mail, that requires an editable View object that renders full HTML; something like WebView, but editable. Does anyone know what I can use or how to proceed? TIA! -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] How do I create an editable browser window?

2012-03-22 Thread Mark Murphy
Use EditText, which can edit Spannable objects. Or, build your own full HTML editor from scratch. On Thu, Mar 22, 2012 at 5:09 PM, FractalBob ruom...@gmail.com wrote: I'm building an app, based on the mail client K-9 Mail, that requires an editable View object that renders full HTML; something

Re: [android-developers] Custom Dialog for Force Closed Android

2012-03-22 Thread TreKing
On Wed, Mar 21, 2012 at 11:44 PM, Vivek Khandelwal vivek.b.khandel...@gmail.com wrote: I want my Application to show Custom Dialog When an Uncatch Exception occur. Why? And Try to show the Toast. But My Toast is not Displayed because my Main Looper (i.e My Main Thread) is being stopped

Re: [android-developers] How to place controls properly inside of a custom list view.

2012-03-22 Thread TreKing
On Thu, Mar 22, 2012 at 2:58 AM, Put_tiMe putt...@gmail.com wrote: how can I fix this issue? How can I place the image to the extreme RHS of the list view row. That should work. What does it look like now? Have you used http://developer.android.com/guide/developing/tools/hierarchy-viewer.html

[android-developers] Re: How do I create an editable browser window?

2012-03-22 Thread FractalBob
Unfortunately, EditText can only render a small subset of HTML, like b, i and a few others. On Mar 22, 2:11 pm, Mark Murphy mmur...@commonsware.com wrote: Use EditText, which can edit Spannable objects. Or, build your own full HTML editor from scratch. On Thu, Mar 22, 2012 at 5:09 PM,

Re: [android-developers] Re: new 50mb expansion pack functionality, api 11... no easy dice?

2012-03-22 Thread B Lyon
thanks for the info, folks! On Mon, Mar 19, 2012 at 9:56 AM, David Schreiber flashmasterd...@gmail.com wrote: Hello, The APK expansion downloader comes with sources and we did make our own fix to make downloader running. I have also already filed a bug report as recommended by Mark Murphy.

Re: [android-developers] Re: How do I create an editable browser window?

2012-03-22 Thread Mark Murphy
On Thu, Mar 22, 2012 at 5:44 PM, FractalBob ruom...@gmail.com wrote: Unfortunately, EditText can only render a small subset of HTML, like b, i and a few others. If by few you mean ~20 tags, then yes, it's few. a href=... b big blockquote br cite dfn div align=... em font size=... color=...

Re: [android-developers] Sending GPS coordinates to a server

2012-03-22 Thread TreKing
On Thu, Mar 22, 2012 at 1:04 AM, bhuvan bhuvanchandr...@gmail.com wrote: Iam very much new to android developing, so i was hoping whether anyone could help me in this regard http://developer.android.com/guide/index.html https://www.google.com/ http://catb.org/esr/faqs/smart-questions.html

Re: [android-developers] Setting a daily Alarm via a BootReceiver

2012-03-22 Thread TreKing
On Thu, Mar 22, 2012 at 12:39 AM, Anuj Goyal anuj.go...@gmail.com wrote: Is this the correct way to set a daily (inexact) alarm via a BootReceiver? Test it. Does it work? If the answer is yes, it works, then yes, it's the correct way. If the answer is no, it does not work, then no, it is not

[android-developers] Re: How to detect motion on android device

2012-03-22 Thread Hery Irawan
It doest work, the program doest detect motion On Mar 22, 9:45 pm, TreKing treking...@gmail.com wrote: On Thu, Mar 22, 2012 at 9:32 AM, Hery Irawan irawanfi...@gmail.com wrote: I want to create motion detection app, but I still have a problem with my code And what is this problem? You

[android-developers] Re: How to detect motion on android device

2012-03-22 Thread Hery Irawan
It doesnt work, program doesnt detect motion On Mar 22, 9:45 pm, TreKing treking...@gmail.com wrote: On Thu, Mar 22, 2012 at 9:32 AM, Hery Irawan irawanfi...@gmail.com wrote: I want to create motion detection app, but I still have a problem with my code And what is this problem? You

Re: [android-developers] Re: How to detect motion on android device

2012-03-22 Thread TreKing
On Thu, Mar 22, 2012 at 6:20 PM, Hery Irawan irawanfi...@gmail.com wrote: It doesnt work, program doesnt detect motion OK. Sorry to hear that. What have you done to debug this and solve the problem? Again, no one is going to read through that giant blob of text and debug your app for you with

[android-developers] Question About LatinIME/SoftKeyboard - anyone using it?

2012-03-22 Thread Mark Phillips
I am working on a app that needs a fair amount of user input, both text and numbers. The input paradigm has to be very fast - there is little time to jump between several screens to complete the input before a new set of data input has to be made. Fast may not the the right wordin this

[android-developers] Having ton of issues with SDK 17 - is 16 still available somewhere?

2012-03-22 Thread Sekhar
I updated to SDK 17 this morning and have been struggling ever since with a ton of problems: library errors, run time issues, etc. Is there a way to revert to 16? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: Question About LatinIME/SoftKeyboard - anyone using it?

2012-03-22 Thread tsukishiro
You can modify the qwerty.xml keyboard xml file in the SoftKeyboard sample to suit your needs. As for dynamically changing the layout, you can either check the type of input field you are working with (for example, check if it requires only numbers) then display the appropriate keyboard by

[android-developers] Re: How to detect motion on android device

2012-03-22 Thread Lew
Hery Irawan wrote: Hi, I want to create motion detection app, but I still have a problem with my code You have many problems with your code. I think you're getting 'NullPointerException' (NPE). Do you see this in your logcat? As TreKing has told you (twice!) you must tell us what is

[android-developers] Get an app's api level programmatically

2012-03-22 Thread exiquio
I see that almost everything from an apps AndroidManifest.xml file get be retrieved programmatically. What I do see is how to pull the apps min and max API levels for the SDK as in: uses-sdk android:targetSdkVersion=15 / uses-sdk android:minSdkVersion=7 / Is it possible and can anyone

Re: [android-developers] Having ton of issues with SDK 17 - is 16 still available somewhere?

2012-03-22 Thread Nikolay Elenkov
On Fri, Mar 23, 2012 at 9:14 AM, Sekhar allur...@gmail.com wrote: I updated to SDK 17 this morning and have been struggling ever since with a ton of problems: library errors, run time issues, etc. Is there a way to revert to 16? Eclipse save old versions of plugins, so you could probably

[android-developers] Re: Custom Dialog for Force Closed Android

2012-03-22 Thread mcterry
Hello Vivek - it sounds like you're on the right path. When you override the uncaughtException() method, add in a Thread.sleep() in order to keep your Activity from getting closed immediately. Below is an example of what your uncaughtException() method might look like... @Override public void

[android-developers] Re: Custom Dialog for Force Closed Android

2012-03-22 Thread mcterry
Additionally, you might check out this open source library called ACRA... http://code.google.com/p/acra/ -Matt www.sep.com/mcterry On Thursday, March 22, 2012 9:59:25 PM UTC-4, mcterry wrote: Hello Vivek - it sounds like you're on the right path. When you override the uncaughtException()

Re: [android-developers] Get an app's api level programmatically

2012-03-22 Thread Dianne Hackborn
You can only easily get targetSdkVersion, from here: http://developer.android.com/reference/android/content/pm/ApplicationInfo.html#targetSdkVersion There generally isn't a reason to what minSdkVersion. (Or really targetSdkVersion unless you are writing compatibility code within the platform.)

[android-developers] Re: Thread started inside Service is killed?

2012-03-22 Thread mcterry
Hey SVL, it sounds like you are running into issues where your Service is blocking the UI Thread. As TreKing mentioned, the Service runs in the UI Thread by default. This means that your Service will block the UI. If your application blocks the UI for 15 seconds, or more, then the

[android-developers] Listview of programmatically created Drawables

2012-03-22 Thread Gene
I have a pretty intricate custom Drawable for military map symbols. These are stroked and labeled programmatically. The Symbol class provides a few enums that control appearance. So the API looks something like: // Symbol inherits class Drawable Symbol.Affiliation a = ...; Symbol.Size s = ... ;

Re: [android-developers] Get an app's api level programmatically

2012-03-22 Thread exiquio
I am not looking for the min sdk. I should have made that clear. My intent is to write and app that pulls the targetSdkVersion from all of a user's installed apps in order to present them with a clear picture of what should and should not run on their device in the event that they update to a

Re: [android-developers] Re: Custom Dialog for Force Closed Android

2012-03-22 Thread TreKing
On Thu, Mar 22, 2012 at 8:59 PM, mcterry macte...@gmail.com wrote: When you override the uncaughtException() method, add in a Thread.sleep() in order to keep your Activity from getting closed immediately. That would cause the main thread to block, preventing the error message from being

[android-developers] Re: onActivityResult not being called

2012-03-22 Thread mcterry
Hey Joey - first off, it looks like you are testing for the resultCode == 0 in your onActivityResult() method. You should be looking for whatever you set your result to in your BaseIngredient Activity (looks like you're using RESULT_OK). In addition, if you've changed the launchMode of an

[android-developers] Re: Android instrumentation testing, how to start with clean database all the time

2012-03-22 Thread mcterry
Ideally you wouldn't be using a real database in your tests. Let me know if you'd like more information on how to create Dummy classes to avoid using the live database. -Matt www.sep.com/mcterry On Thursday, March 22, 2012 9:50:12 AM UTC-4, Dirk Vranckaert wrote: I did not really found the

[android-developers] Re: Handler vs custom CallBack class

2012-03-22 Thread mcterry
When appropriate simply means that it will, literally, queue up the messages. A queue by definition is a collection of items that get handled in a FIFO order (First In, First Out). The Handler is really nice because you can use it to still send messages to your UI (and therefore, update your

Re: [android-developers] Setting a daily Alarm via a BootReceiver

2012-03-22 Thread mcterry
Are you asking how to schedule an alarm to occur at roughly the same time each day? Or what? Let me know how I can help... -Matt www.sep.com/mcterry On Thursday, March 22, 2012 3:35:09 AM UTC-4, asheesh arya wrote: possibly u r ryt probably not!!! -- You received this message because you

[android-developers] Re: Can a service have an ui?

2012-03-22 Thread mcterry
Hello Guich - typically a Service doesn't have a UI directly attached to it. I think what might help you is to keep your Service and have it checking for messages. When it gets a message, use a BroadcastReceiver to tell one of your Activities to display. These are the most simple messages

[android-developers] Re: How to wait for file scanning finished before starting the launcher app

2012-03-22 Thread mcterry
Hello Chuan, The AsyncTask class is very helpful for executing some code after doing some long operation. Without knowing your exact domain/product, I recommend using a splash screen approach. This should be the Activity that is defined as the Launcher Activity in your AndroidManifest.xml

[android-developers] Re: Webview masking onclick events

2012-03-22 Thread mcterry
that is interesting! I can't say I've personally seen this issue. You may want to make sure that the WebView container has the focusable attributes set to true. http://developer.android.com/reference/android/view/View.html#attr_android:focusable Hope this helps! -Matt www.sep.com/mcterry

Re: [android-developers] Having ton of issues with SDK 17 - is 16 still available somewhere?

2012-03-22 Thread Sekhar
Thanks, I've finally resolved the issues...my problems were to do with using Google's RequestFactory and the related dependencies: I have a GWT project using RequestFactory, and my Android project depended on the proxy declarations in that project. For others in a similar situation, if you're

Re: [android-developers] Re: Custom Dialog for Force Closed Android

2012-03-22 Thread mcterry
You're absolutely correct TreKing. I forgot to include the key piece of information for the Toast message. You have to make use of the Looper class from Android. For example, here is the code from the displayErrorMessageToast() method I previously mentioned... private void

Re: [android-developers] how to make a button stay in state_pressed style

2012-03-22 Thread mcterry
Yes, the CompoundButton sounds like what you are looking for. A specific instance of the CompoundButton is the ToggleButton. Here is an example of the ToggleButton... http://developer.android.com/resources/tutorials/views/hello-formstuff.html#ToggleButton However, if you want to do

Re: [android-developers] Re: Android Project development cost

2012-03-22 Thread Anirudh Loya
If this group is not for those purpose then why did the Admin allowed Post it? He should have barred it before posting only. On Thu, Mar 22, 2012 at 7:43 PM, Kristopher Micinski krismicin...@gmail.com wrote: On Thu, Mar 22, 2012 at 9:39 AM, Anirudh Loya loya.anir...@gmail.com wrote: How

Re: [android-developers] which framework is best for to develop cross platform mobile applications?

2012-03-22 Thread Anirudh Loya
No one is asking about My brain !! Loll !! Wht made hi feel say PhoneGap was my question ? Read it coolly Boss!! On Thu, Mar 22, 2012 at 10:35 PM, Justin Anderson magouyaw...@gmail.comwrote: What made you say PhoneGap is good? Tell its merits? How about you actually do the research yourself

[android-developers] AdMob with my own Ad Server

2012-03-22 Thread Hemant Chaudhari
Hello, I want to integrate AdMob SDK with my Ad Server. Is it possible? Or is there any property or method with AdView/AdRequest class which will tell AdMob to fetch Ad's from Ad server like Openx or Ad manager pro? -Thanks Hemant -- You received this message because you are subscribed to

[android-developers] Android Library Project Changes

2012-03-22 Thread Harshad
Hi, I am trying to migrate to the newly released SDK and ADT 17 from my earlier setup of SDK 12. (I couldn't use the intermediate SDK releases because of some problems that were fixed only in SDK 17). One of the problems I am facing now is that Projects which use an Android Library Project are

Re: [android-developers] Re: Android Project development cost

2012-03-22 Thread Farhan Tariq
If you are looking for developers to outsource your projects to, you should check out oDesk.com, elance.com, freelancer.com, rentacoder.com, liveperson.com... ETC ETC On Fri, Mar 23, 2012 at 9:43 AM, Anirudh Loya loya.anir...@gmail.comwrote: If this group is not for those purpose then why did

Re: [android-developers] Re: Android Project development cost

2012-03-22 Thread Kristopher Micinski
On Fri, Mar 23, 2012 at 12:43 AM, Anirudh Loya loya.anir...@gmail.com wrote: If this group is not for those purpose then why did the Admin allowed Post it? He should have barred it before posting only. Because the group is not policed by administrators for content like this, it's mostly

[android-developers] Re: Android instrumentation testing, how to start with clean database all the time

2012-03-22 Thread Diego Torres Milano
This may give you some ideas: http://dtmilano.blogspot.ca/2009/12/android-testing-contentprovider.html On Wednesday, 21 March 2012 04:26:56 UTC-4, Dirk Vranckaert wrote: I'm testing my application with Android Instrumentation tests. So I have a test-class extending

Re: [android-developers] Re: Android Project development cost

2012-03-22 Thread Ajmer Singh
Hi I charge $8 per/hour. On Fri, Mar 23, 2012 at 10:21 AM, Kristopher Micinski krismicin...@gmail.com wrote: On Fri, Mar 23, 2012 at 12:43 AM, Anirudh Loya loya.anir...@gmail.com wrote: If this group is not for those purpose then why did the Admin allowed Post it? He should have

Re: [android-developers] Android Library Project Changes

2012-03-22 Thread Nikolay Elenkov
On Fri, Mar 23, 2012 at 1:50 PM, Harshad harshad...@gmail.com wrote: From what I understand, in the newer SDKs, the Library project needs to be compilable by itself, while in earlier versions that was not necessary. In earlier versions, the source code from the library projects was merged

Re: [android-developers] Listview of programmatically created Drawables

2012-03-22 Thread TreKing
On Thu, Mar 22, 2012 at 9:42 PM, Gene gene.ress...@gmail.com wrote: ListView seems to be the way to go, but I can't grok how to make other-than-bitmaps appear in ListView items. No Canvas is in sight. You might want to elaborate and clarify - I, for one, have no clue what you're getting at.

<    1   2   3   >