[android-developers] TabWidget with a gap in the middle

2012-04-09 Thread nadam
Due to a special design I need a TabWidget with a four tabs and a gap in the middle, i.e. two tabs to the left, then a 31dp space and then two tabs to the right. I've thought about adding a dummy tab, but that doesn't work with ViewPager for swiping from the second to the third tab. I've also

[android-developers] Re: Directory structure for project related files

2012-01-15 Thread nadam
, and in version control, for the same reasons you do. On Sat, Jan 14, 2012 at 12:44 PM, nadam a...@anyro.se wrote: All of my android projects usually have a /tmp folder where I dump all the stuff that isn't necessary for building the apk, such as psd/xcf files, the 512x512 icon, screenshots

[android-developers] Directory structure for project related files

2012-01-14 Thread nadam
All of my android projects usually have a /tmp folder where I dump all the stuff that isn't necessary for building the apk, such as psd/xcf files, the 512x512 icon, screenshots and the signed apk that will be uploaded to the market. I'm also considering adding these files to my version control

[android-developers] Re: Html-style links inside ListView items

2011-10-29 Thread nadam
I never found a solution. I think the only way is to skip ListView and build your own list somehow. On Oct 27, 11:45 pm, LS xl...@hotmail.com wrote: Did you find any solution to this ? I'm also trying to havehtmlstylelinkswithin clickable list items. But only one click works - either the link

[android-developers] Re: Html-style links inside ListView items

2011-10-29 Thread nadam
Nope. Tried that already. On Oct 29, 4:58 pm, Kristopher Micinski krismicin...@gmail.com wrote: Not that this is a solution, but might this work: http://developer.android.com/reference/android/text/util/Linkify.html On Sat, Oct 29, 2011 at 10:55 AM, nadam a...@anyro.se wrote: I never

[android-developers] Android unconferences/BarCamps

2011-09-25 Thread nadam
Sorry if this is not directly about android programming, but I hope it's considered on topic anyway... Other open source communities have instructions and names for local unconferences, for instance Drupal with DrupalCamp (http:// groups.drupal.org/node/136494). We're about to organize a small

[android-developers] Re: Textview from thread

2011-09-11 Thread nadam
I would use an AsyncTask for that, but Handler works too. Both are explained with examples here: http://www.vogella.de/articles/AndroidPerformance/article.html#concurrency On 10 Sep, 12:23, Kristoffer kris.isak.v...@gmail.com wrote: Hello. I have been searching for answer how to update a

[android-developers] Re: Live wallpaper thumbnail 208x192?

2011-09-08 Thread nadam
padding? On Sep 8, 1:25 am, nadam a...@anyro.se wrote: I can't find any documentation or examples oflivewallpaperthumbnail sizes. On my Motorola Xoom the thumbnails are displayed as 208x192, but other mdpi-devices (phones) use much smaller thumbnails. What are the recommended sizes

[android-developers] Re: How to detect programatically the android device is nfc enabled or not?

2011-09-07 Thread nadam
Since 2.3.3 you can also use NfcAdapter.getDefaultAdapter() to get the adapter (if available) and call its isEnabled() method to check whether NFC is currently turned on. /Adam On 6 Sep, 14:34, Mark Murphy mmur...@commonsware.com wrote: On Tue, Sep 6, 2011 at 8:29 AM, Adiga jakad...@gmail.com

[android-developers] Live wallpaper thumbnail 208x192?

2011-09-07 Thread nadam
I can't find any documentation or examples of live wallpaper thumbnail sizes. On my Motorola Xoom the thumbnails are displayed as 208x192, but other mdpi-devices (phones) use much smaller thumbnails. What are the recommended sizes for ldpi, mdpi, hdpi and xhdpi? -- You received this message

[android-developers] Re: Programming in Android

2011-09-04 Thread nadam
http://lmgtfy.com/?q=android+programming On 4 Sep, 08:41, Tareq Al-Ma'mari tariq.mam...@gmail.com wrote: Hi guys, Good morning , I'm proud that I'm a member in this great group I need your help to start programming in Android,just the beginning . Thanks in advance, hope to hear from you,

[android-developers] Re: project contains many error

2011-09-04 Thread nadam
Go to the menu Window - Show View - Problems to see what the problem is. On 2 Sep, 11:25, dhanaraj chaudhari dbchaudhari...@gmail.com wrote: Hello, I am new andriod developer, I have developed new project in Eclips. There are many .java files some of the xml layout  files all these files

[android-developers] Re: Nexus Prime, 1280x720 display, huge resolution.

2011-09-04 Thread nadam
You can just let Android scale the images automatically to start with, so no panic yet. Once such a device is available you can test your app and decide if it's worth to generate xhdpi drawables (if that's what the device is using). On 4 Sep, 18:26, sblantipodi perini.dav...@dpsoftware.org wrote:

[android-developers] Re: AbsoluteLayout

2011-08-31 Thread nadam
Once you publish the app on the Android Market you will get complaints from people who have devices with other screen resolutions. Then you can go back to Eclipse and see exactly where the problems are since those classes are crossed out. To prevent these complaints read

[android-developers] Re: How to P2P between with the phone and reader?

2011-08-31 Thread nadam
See http://groups.google.com/group/android-developers/browse_frm/thread/8afb4b3dff5461f7 On 31 Aug, 03:43, xiaodai zsbitxiao...@163.com wrote: Can you tell me how to enter NFC state for the Reader?? On 8月29日, 下午11时14分, rich friedel rich.frie...@gmail.com wrote: Check out the NFCDemo

[android-developers] Re: Guide Help:How to trace the internal mechanism of android.Context.java and android.os.Binder.java

2011-08-30 Thread nadam
I think the easiest way is to install the Android Sources Eclipse plugin http://code.google.com/p/adt-addons On 29 Aug, 03:43, AndroidHolder skybrea...@yahoo.cn wrote: As far as I know, the base class for android.Context.java and android.os.Binder.java are implemented on Android system OS

[android-developers] Re: Accelerometer vs Gravity Sensor in game code?

2011-08-28 Thread nadam
They could be referring to a gyroscope sensor. Probably not. G-sensor is usually referring to the accelerometer and has to do with measuring the gravity combined with the linear acceleration of the device. The gyroscope is for measuring rotational speed. For tilt based games such as Doodle Jump

[android-developers] Re: Reading a MIFARE 1k TAG from 2.3.4 Nexus S

2011-08-27 Thread nadam
http://mifareclassicdetectiononandroid.blogspot.com On 26 Aug, 09:14, Ankit Maheshwari lkoan...@gmail.com wrote: Hey all , can any body please help me with the code to read a MIFARE 1k CARD, i.e it UID and data from a specific blocks .. asuming that i know both the keys , any kinda help will

[android-developers] Re: How can I best identify my App?

2011-08-25 Thread nadam
I don't have any problem with this. Just use the same name and adjust it to the naming conventions for each place, for instance if you have an app called Foo Bar: App name (android:label in manifest): Foo Bar App name (Title in market): Foo Bar Package: com.example.foobar or com.exemple.foo_bar

[android-developers] Re: Android 2.3 for X10 Mini Pro

2011-08-25 Thread nadam
Begging here won't help. 2.3 for X10 Mini Pro can be found at http://forum.xda-developers.com/showthread.php?t=1201116 On 24 Aug, 13:19, thepaul...@gmail.com thepaul...@gmail.com wrote: Hello! Please start the development of Android 2.3 for X10 mini pro and others. Because without the support

[android-developers] Re: Access to gyroscope under Froyo?

2011-08-23 Thread nadam
Sensor.TYPE_GYROSCOPE is the only way to use the gyroscope in Android. This constant was added before Gingerbread, but you still need Gingerbread in order to use it. The fact that Optimus 2X is still on FroYo is a really bad sign. Just buy one of the other phones that have both gyroscope and

[android-developers] Re: Native SIP Client Device Support List?

2011-08-23 Thread nadam
Is there a list of currently supported devices I don't know how reliable this is, but you could write a dummy app with a manifest indicating that sip is required. Then upload it in the Android Market Developer Console, but don't publish it, just save it. Scroll down to Supported Devices and click

[android-developers] Re: Activity Start Performance Improvement - how to dealt with loading the data while the UI continues to be displayed

2011-08-17 Thread nadam
That's exactly what AsyncTask is designed to do. Just call publishProgress() in your doInBackground() and update the UI in your onProgressUpdate(). Code snippet is part of the documentation: http://developer.android.com/reference/android/os/AsyncTask.html AsyncTask uses a Handler internally to

[android-developers] Re: Does the Nexus S phone and Reader support pear to pear ?

2011-08-17 Thread nadam
Yes, P2P is supported using NDEF Push. http://developer.android.com/guide/topics/nfc/index.html#p2p http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/nfc On 17 Aug, 10:59, xiaodai...@163.com zsbitxiao...@163.com wrote: Hello,everyone! Recently,I started to

[android-developers] Re: Just to nag about inconsistency in Android api and lack of enough documentation

2011-08-17 Thread nadam
Guess what are the differences between TextView.setText(int) and TextView.setTextColor(int) The name of the arguments are different (resId vs. color). If all int arguments in the api were resource IDs that would really suck. On 17 Aug, 11:40, Reza Mohammadi remohamm...@gmail.com wrote: Guess

[android-developers] Re: enableForegroundNdefPush not working

2011-08-15 Thread nadam
an word and send it to the othe phone? On Aug 13, 7:06 am, nadam a...@anyro.se wrote: Strange. Here's a direct link.https://market.android.com/details?id=se.anyro.nfc_reader On 12 Aug, 18:13, musfiq musfiqu...@gmail.com wrote: Normal tag sharing works. But foregroundNDEFPush

[android-developers] Re: enableForegroundNdefPush not working

2011-08-13 Thread nadam
. On Aug 11, 12:35 pm, nadam a...@anyro.se wrote: That description seems to cover everything you need (except holding the two phones together back-to-back, but I assume you've done that too). You can also check for error messages in logcat. I can't think of anything going wrong

[android-developers] Re: Activity Start Performance Improvement - how to dealt with loading the data while the UI continues to be displayed

2011-08-13 Thread nadam
Use AsyncTask. http://developer.android.com/reference/android/os/AsyncTask.html On 12 Aug, 06:21, gml gml.check.t...@gmail.com wrote: Hi guys, I have simple application that loading the data needed upon the Activity starts which it consume about 2-3 minutes. Then, the UI displayed after that

[android-developers] Re: How to close an activity A and sub activity B that runs in the background?

2011-08-12 Thread nadam
Activity B is not running in the background. It's already stopped, so you just need to call finish() to stop Activity A. But since you already do that I assume that there is some other problem. Maybe you call startActivity() to get back to Activity A from Activity B? Call finish() instead in

[android-developers] Re: Problem installing USB driver for Nexus S

2011-08-12 Thread nadam
The right drivers seems to be part of PdaNet, so that's what many people recommend as the easiest way to solve this problem. http://junefabrics.com/android/download.php On 10 Aug, 02:02, David dfket...@gmail.com wrote: Hi! I've installed the SDK and AVD Manager (successfully, I believe), and

[android-developers] Re: Query...

2011-08-12 Thread nadam
http://developer.android.com/guide/topics/data/data-storage.html On 11 Aug, 13:01, ISHAN THAPAR ishanthapar...@gmail.com wrote: But can you give me some example with code to unnderstand!!! On Thu, Aug 11, 2011 at 3:56 AM, Nico Balestra nicobales...@gmail.com wrote: Probably bits

[android-developers] Re: How to parse a text data in an xml,if the text data in xml contains spaces ?

2011-08-12 Thread nadam
The characters() method may be called several times, so you need to use a StringBuilder to append all the information. See the following links: http://stackoverflow.com/questions/2838099/android-sax-parser-not-getting-full-text-from-between-tags

[android-developers] Re: enableForegroundNdefPush not working

2011-08-11 Thread nadam
That description seems to cover everything you need (except holding the two phones together back-to-back, but I assume you've done that too). You can also check for error messages in logcat. I can't think of anything going wrong with uploading the api demo example, but just to double check you

[android-developers] Re: Html-style links inside ListView items

2011-08-11 Thread nadam
...and setMovementMethod() makes the html-link work while removing the possibility to click the rest of the list item. I've also tried android:onClick on the TextView I use as a list item. This works except that when clicking a link both events happen at the same time. On 11 Aug, 00:07, nadam

[android-developers] Re: how best to access string resources from AsyncTask.doInBackground

2011-08-10 Thread nadam
Renaming helps sometimes to prevent such accidents, for instance if you know the task should always be created from an activity you can do like this: *public class MyAsyncTask extends AsyncTask... {* * private Context appContext;* * * public MyAsyncTask(Activity activity) {* *appContext =

[android-developers] Re: enableForegroundNdefPush not working

2011-08-10 Thread nadam
Check out the sticky notes example at https://nfc.android.com On 9 Aug, 03:46, musfiq musfiqu...@gmail.com wrote: Hi: I am trying to share a string between mobile phones using NFC. I want the same application to send the tag and another to receive the tag in two different role (Sender and

[android-developers] Re: What is the right way to get updates from REST service by timer in Android?

2011-08-10 Thread nadam
...and possibly AlarmManager http://developer.android.com/reference/android/app/AlarmManager.html On 10 Aug, 08:32, Miguel Morales therevolti...@gmail.com wrote: You may want to use a service:http://developer.android.com/guide/topics/fundamentals/services.html On Tue, Aug 9, 2011 at 9:26 PM,

[android-developers] Divider below ListView header

2011-08-10 Thread nadam
ListView lets you add a header using addHeaderView(). Is there any way to make the ListView draw a divider between the header and the rest of the list, i.e. the same divider that is drawn between individual list items? I've tried calling setHeaderDividersEnabled(true), but that doesn't help. I've

[android-developers] Re: rotating textview

2011-08-10 Thread nadam
You could create your own view for that. Something like this: http://www.pocketmagic.net/?p=1625 I'm not sure that solves your problem though, but it's a start. On 9 Aug, 06:11, ram ramgun...@gmail.com wrote: Hi, In my project i want to display a textview in vertical view (from top to bottom).

[android-developers] Re: Hidden WebView

2011-08-10 Thread nadam
I haven't tried this, but i think you can just put the WebView behind the main view using FrameLayout or hide it using visibility GONE. See http://groups.google.com/group/android-developers/browse_frm/thread/d8ceaf78b1e4d27c On 9 Aug, 15:25, yakobom yako...@gmail.com wrote: Hi, I'm kinda new to

[android-developers] Re: Html-style links inside ListView items

2011-08-10 Thread nadam
Is this a bug in Android with no known work-around? On 2 Juli, 20:45, nadam a...@anyro.se wrote: I've read many posts about the problem with having links insideListViewitems. The suggestions include: - setText(Html.fromHtml(textWithHtmlLinks)) - setAutoLinkMask(Linkify.WEB_URLS

[android-developers] Re: Html-style links inside ListView items

2011-08-10 Thread nadam
it off the top of my head. On Wed, Aug 10, 2011 at 3:32 PM, nadam a...@anyro.se wrote: Is this a bug in Android with no known work-around? On 2 Juli, 20:45, nadam a...@anyro.se wrote: I've read many posts about the problem with having links insideListViewitems. The suggestions

[android-developers] Re: Splash + Background loading design pattern

2011-08-09 Thread nadam
You can create a subclass of Application and start the loading in its onCreate() method. When the second activity is started it can check if the loading is completed. If it's not completed yet it can register itself as a listener that will be called by the AsyncTask. However, as a user I would

[android-developers] Re: multilanguage support on Developer Console

2011-08-07 Thread nadam
Just click the link for each language at the top of the Listing details. For instance, you can have a title of up to 30 characters for each language. Similar for the other text fields. Can't do the same for graphics though, so try to avoid text in graphics for multi language apps. On 4 Aug,

[android-developers] Re: Error reporting

2011-08-07 Thread nadam
http://stackoverflow.com/questions/5994026/failed-to-install-helloandroid-apk-on-device-emulator-5554 If that doesn't help and you're using Honeycomb for the emulator, try an earlier version of Android. On 4 Aug, 07:43, kalaiprabha prabhalingap...@gmail.com wrote: I'm getting this error message

[android-developers] Re: Intent

2011-08-07 Thread nadam
Check logcat to find the reason for force close. I think you need to add tel: in front of the phone number. On 6 Aug, 07:37, jagadeesh mjagadeeshb...@gmail.com wrote: Hi see the below code: Intent myintent=new Intent(Intent.ACTION_DIAL,Uri.parse(100));         startActivity(myintent); I

[android-developers] Re:

2011-08-07 Thread nadam
http://developer.android.com/guide/topics/ui/declaring-layout.html On 5 Aug, 19:52, adithya holla adithyaho...@gmail.com wrote: how to use android id effectively ?? everytime i use it the error flashes in eclipse saying id cannot be resolved -- You received this message because you are

[android-developers] Re: Publish .APK on a website, not in Android Market?

2011-08-03 Thread nadam
You can easily test this yourself. Just put the apk on your webserver and point your mobile browser to that link. On your site you might want to include information that the user needs to make sure Unknown sources is enabled in the Settings- Applications. On 2 Aug, 01:15, Molly_G

[android-developers] Re: Regarding NFC Demo

2011-08-03 Thread nadam
You don't have to copy anything manually like that when using Eclipse. Just create a new Android project and in the wizard select build target Android 2.3 (or higher) and then selecte Create project from existing sample and select NFCDemo. You can run your app directly from Eclipse:

[android-developers] Re: How to make an ordinary view to have rounded corners in code without xml

2011-08-03 Thread nadam
...and the background drawable could be a GradientDrawable, which has built-in support for rounded corners. On 2 Aug, 16:50, nEx.Software email.nex.softw...@gmail.com wrote: Just provide a background drawable that has rounded corners. There is no magic there. The View will still have a

[android-developers] Re: How do we get Google's attention regarding the problems around randomly sorting comments in the Android Market?

2011-08-01 Thread nadam
That would really suck. Someone gives a crappy app 5 stars and then the second rater has to give it 4 or 5? A better solution could be to skip the 5-star rating and replace it with something like +1, which is already used in other Google services. On 1 Aug, 06:50, AndroidYourself mon...@2aba.de

[android-developers] Re: Motion Sensor in Android

2011-08-01 Thread nadam
No. However, you usually have accelerometer and compass for detecting motion of the device. Some devices also have gyroscope and front- facing camera that you could experiment with. On 1 Aug, 03:27, ndiiie 90 rnd...@gmail.com wrote: HI guys, this is a random question in my mind. Does Android

[android-developers] Re: How to make an alarm live even when the application which set it is killed?

2011-08-01 Thread nadam
It's straight-forward if you have a device with Android 2.2 or higher. Just download a task manager from the market and use it instead of Manage Applications. On 31 Juli, 15:19, Ali Chousein ali.chous...@gmail.com wrote: Thank you for the information Mark, that's very helpful. Apparently

[android-developers] Re: Xml Parsing

2011-08-01 Thread nadam
There are at least 3 ways to parse XML in Android. http://www.ibm.com/developerworks/opensource/library/x-android/ I recommend SAX or Pull, since the DOM parsing has given me weird OutOfMemory exceptions even with quite small XML-files. On 1 Aug, 09:29, Hari hariluv...@gmail.com wrote: Plz,

[android-developers] Re: Two Newbie Questions

2011-08-01 Thread nadam
1.) Is there a way to make a button load another layout XML by android:onClick in XML? No, you have to use Java too. Android:onClick can only reference a Java method in your activity and this method could do setContentView() to replace the layout. 2.) In my other XML, I have a WebView that

[android-developers] Re: Converting to xlarge layouts

2011-07-31 Thread nadam
Using drawable-xlarge is probably a bad idea. It might work for the current wave of 1280x800 10 tablets, but what about xlarge tablets with other resolutions? Android is not designed to simply scale up the user interface. Your dialogs probably look just fine one a real tablet. You can compare

[android-developers] Re: 2D Live Wallpaper Tutorial

2011-07-31 Thread nadam
You can use the sample from the SDK. http://developer.android.com/resources/samples/CubeLiveWallpaper/index.html Yes, it's a cube which is 3D, but it's actually using the ordinary 2D graphics features of Android (http://developer.android.com/guide/ topics/graphics/2d-graphics.html), so it's

[android-developers] Re: ListFragment doesn't save the bundle in onSaveInstanceState()

2011-07-30 Thread nadam
I can't see anything wrong with the code. Do you get the same problem in TitlesFragment.java when running the honneycomb-gallery sample included in the SDK? On 28 Juli, 11:54, Maria D. dobr...@gmail.com wrote: I'm new to android and I'm facing the following problem. I'm developing for both,

[android-developers] Re: Photo Gallery in Android App

2011-07-29 Thread nadam
http://developer.android.com/guide/tutorials/views/hello-gallery.html On 26 Juli, 18:47, Laxmi Verma laxmiverma.andr...@gmail.com wrote: Hi, Anybody please help me regarding how to create photo gallery in android application. Thanks in advance. Thanks Regards, Laxmi Verma -- You

[android-developers] Re: installLocation Doesn't Seem To Apply

2011-07-29 Thread nadam
The only thing I can think of is that you have some typo in the manifest. Should look something like this: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=your.package.name android:installLocation=auto android:versionCode=1

[android-developers] Re: Why up-scaling a smaller image into an ImageView does not work?

2011-07-28 Thread nadam
I think it's because you have android:layout_height=wrap_content. Try android:layout_height=200dp. On 23 Juli, 15:56, tiba till.baumgaer...@googlemail.com wrote: Hey all, does anybody have a clue what I do wrong? There's an image guy.png size 50x50 pixels and I'd like to get this up-scaled.

[android-developers] Re: Inflated Window has unwanted background

2011-07-28 Thread nadam
Have you tested this on a device as well as on the emulator? Do you get the same problem in both? On 26 Juli, 06:30, Skyre ksmic...@gmail.com wrote: In one spot of my app, I use a LayoutInflater to create a little settings window.  On versions of Android prior to Gingerbread this works

[android-developers] Re: How to add header in ListFragment?

2011-07-28 Thread nadam
You can supply your own XML including a ListView. From the documentation of ListFragment: ListFragment has a default layout that consists of a single list view. However, if you desire, you can customize the fragment layout by returning your own view hierarchy from onCreateView(LayoutInflater,

[android-developers] Re: Is there a way to display fragments in TabHost?

2011-07-28 Thread nadam
I think you should go with option B. Why do you need to access the original parent Activity? On 26 Juli, 11:13, Zsombor scythe...@gmail.com wrote: I'd like to show a different fragment in a TabHost, for every tab. But it seems that there's no easy way to do this. TabHost can only accept A.

[android-developers] Re: how to force restart activity from intent

2011-07-28 Thread nadam
Just override onNewIntent(). http://developer.android.com/reference/android/app/Activity.html#onNewIntent(android.content.Intent) On 26 Juli, 11:01, jjoe64 g.jjo...@googlemail.com wrote: hello. my MainActivity has the lauchMode=singleTask now I want to start the activity from a notification

[android-developers] Re: Inflated Window has unwanted background

2011-07-28 Thread nadam
to include that information. I have tested both on the emulator, as well as my 2.3.3 Droid X device, and both have the same issue. On Jul 28, 11:12 am, nadam a...@anyro.se wrote: Have you tested this on a device as well as on the emulator? Do you get the same problem in both

[android-developers] Re: Why two fragments instead of one?

2011-07-24 Thread nadam
Of course, you could just use a List*View* as well (e.g through an include, but that is just re-using the view, not any extra code supporting it. I finally got around to testing this using include. Works great. The extra code supporting it will end up in ActivityA both for single and dual

[android-developers] Re: version-specific attributes in AndroidManifest.xml

2011-07-22 Thread nadam
I don't think there is any way to do that in the manifest. However, you can remove android:screenOrientation from the manifest and set it in the activity's onCreate() method instead: if (Build.VERSION.SDK_INT Build.VERSION_CODES.GINGERBREAD)

[android-developers] Re: fragment activity management

2011-07-22 Thread nadam
If Activity2 is started from Activity1 all you need to do is to finish it to return to Activity1 where you get the layout you want. So in Activity2.onCreate(): if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) { finish(); return; } Dianne is

[android-developers] Re: restart application after Android's killed it

2011-07-21 Thread nadam
That depends on how the user goes back to the application. If they click on the launcher icon, they will go to the launcher activity. If they navigated back to the destroyed activity via the BACK button or something like that, they will go to that specified activity. This is not true for my

[android-developers] Re: App behaves wired after the task is killed by a TaskKiller

2011-07-14 Thread nadam
You should not assume that the app always starts with the same activity. Many developers make this mistake, for instance by initializing global data in the onCreate() method of the first activity. There are several ways to solve your problem depending on the type of your application. - Make sure

[android-developers] Re: read image as text

2011-07-13 Thread nadam
perhaps this one http://sourceforge.net/projects/javaocr On 12 Juli, 11:48, Lwe luaisul...@gmail.com wrote: how to read image as text -- 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: Android partially destroying an app?

2011-07-11 Thread nadam
()| method), or simply killing its process. IIRC, the emulator has a setting / button somewhere to trigger the destruction of unused activities without killing the process, so there is a way to test this case. More below: 10.07.2011 19:17, nadam ?: In a low memory situation Android

[android-developers] Re: Android partially destroying an app?

2011-07-11 Thread nadam
before encountering this (and don't have significantly deep stacks), so are unlikely to encounter it. On Sun, Jul 10, 2011 at 8:17 AM, nadam a...@anyro.se wrote: In a low memory situation Android can shut down apps and has some logic to prioritize which apps to shut down first. I have

[android-developers] Re: Android partially destroying an app?

2011-07-11 Thread nadam
for the clarifications. Now I know what to tell my fellow developers when they think that Android killed just one of their activities. On 11 Juli, 20:49, Kostya Vasilyev kmans...@gmail.com wrote: 11.07.2011 22:36, nadam пишет: The docs says this:  http://developer.android.com/guide/topics

[android-developers] Android partially destroying an app?

2011-07-10 Thread nadam
In a low memory situation Android can shut down apps and has some logic to prioritize which apps to shut down first. I have read some comments that Android can also partially destroy an app by destroying Activities that are not currently used. Since I haven't found any documentation about this, I

[android-developers] Re: Galaxy Tab and Market filtering

2011-07-09 Thread nadam
slow. That's off-topic though. The topic of this thread is to find out how the Device Availability dialog in the Developer Console (and Android Market in general) deals with the compatible-screens tag. On 9 Juli, 10:51, Doug beafd...@gmail.com wrote: On Jul 7, 11:47 pm, nadam a...@anyro.se wrote

[android-developers] Re: App not visible from Android Market on the device

2011-07-09 Thread nadam
Android Market has behaved a bit strangely lately. I uploaded an update to one of my apps as well as an updated screenshot. The screenshot got updated immediately on the market while the app took some hours to appear. On 7 Juli, 20:31, Manuel R. Ciosici manuelrcios...@gmail.com wrote: All of a

[android-developers] Galaxy Tab and Market filtering

2011-07-08 Thread nadam
The old Galaxy Tab 7 is said to be a large mdpi device but it uses hdpi drawables. I did an experiment to create an app with the following restrictions in the manifest. uses-sdk android:minSdkVersion=1 / uses-feature android:name=android.hardware.touchscreen android:required=false /

[android-developers] Re: Galaxy Tab and Market filtering

2011-07-08 Thread nadam
'too old'. Not very scientific but works for me. :) On Jul 8, 7:47 am, nadam a...@anyro.se wrote: The oldGalaxyTab7 is said to be a large mdpi device but it uses hdpi drawables. I did an experiment to create an app with the following restrictions in the manifest.     uses-sdk

[android-developers] Re: Force hdpi drawables on mdpi-xlarge devices

2011-07-04 Thread nadam
hack...@android.com wrote: Yes as I said this is some initial work on doing mipmaps, and oh hey look at that if you are doing a mipmap there is a larger bitmap there that can be used if you want a larger size image. On Sun, Jul 3, 2011 at 2:16 PM, nadam a...@anyro.se wrote: Just

[android-developers] Re: Force hdpi drawables on mdpi-xlarge devices

2011-07-03 Thread nadam
Just tested this on my Motorola XOOM with Android 3.0.1 and it is using the icon.png from res/drawable-hdpi even though the device is mdpi. On 3 Juli, 10:05, Federico Carnales fedecarna...@gmail.com wrote: On May 23, 7:49 pm, Dianne Hackborn hack...@android.com wrote: Don't force the Xoom to

[android-developers] Html-style links inside ListView items

2011-07-02 Thread nadam
I've read many posts about the problem with having links inside ListView items. The suggestions include: - setText(Html.fromHtml(textWithHtmlLinks)) - setAutoLinkMask(Linkify.WEB_URLS) - setMovementMethod(LinkMovementMethod.getInstance()) However, I can't get any combination of the above to

[android-developers] Re: Android Libray projects can not be launched

2011-07-01 Thread nadam
If you're using Eclipse just go to the project properties, click Android and then uncheck the Is Library checkbox. Should look something like this: http://hi-android.info/docs/images/developing/adt-props-libRef.png On 1 Juli, 09:09, bhaskar bommala bhaskar...@gmail.com wrote: Hi Gopala, I have

[android-developers] Re: Scaling text up to be relative to screen pixels

2011-07-01 Thread nadam
You don't need to make lots of layouts for the text size. Just put the size in separate res/values directories, e.g. res/values-mdpi-xlarge/ dimens.xml. For pixel-perfect scaling games I suggest using Open GL. On 1 Juli, 05:57, keyeslabs keyes...@gmail.com wrote: Struggling with the same thing.  

[android-developers] Alternative to radio buttons?

2011-06-30 Thread nadam
Is there any obvious Android alternative to iPhone toggles like this (DHCP/BootP/Static)? http://www.coderetard.com/wp-content/uploads/2008/06/iphone_ip.jpg Need it on the top of a listview to let the user choose how the list is sorted. Placing three radiobuttons side by side doesn't look good

[android-developers] Re: Alternative to radio buttons?

2011-06-30 Thread nadam
the states in a runnable which fires about 100millis after the press, so that the default button 'up' action doesn't undo your work. On Jun 30, 6:07 pm, nadam a...@anyro.se wrote: Is there any obvious Android alternative to iPhone toggles like this (DHCP/BootP/Static)?http

[android-developers] Re: Alternative to radio buttons?

2011-06-30 Thread nadam
:07 PM, nadam a...@anyro.se wrote: Placing three radiobuttons side by side doesn't look good Then style them so they do. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago

[android-developers] Re: Alternative to radio buttons?

2011-06-30 Thread nadam
Didn't work. btn_default_selected/pressed are not public. Probably a good reason for that. style=@android:style/Widget.Button.Toggle works though. On 30 Juni, 21:24, nadam a...@anyro.se wrote: Right, was just hoping for something to give a native look. I guess I could style

[android-developers] TabWidget on HTC Hero with Android 2.1

2011-06-26 Thread nadam
The TabWidget on HTC Hero with Android 2.1 looks more like the one in Android 1.6, so using drawable-v5 style tab icons looks wrong and the text is invisible on the selected tab. Is there any work-around for this? -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: TabActivity and NewIntent (with NFC read tag)

2011-06-24 Thread nadam
Which of the three activities have you implemented onNewIntent and onResume in? I would try adding them to all three and set breakpoints in all of them to se which ones get called in these scenarios. On 22 Juni, 13:20, benza luca.schia...@gmail.com wrote: Dear all, I am working on an

[android-developers] Re: Why two fragments instead of one?

2011-06-22 Thread nadam
. But the “Android Compatibility package” hasn't been open sourced yet, right? On 22 Juni, 12:57, Mark Murphy mmur...@commonsware.com wrote: On Wed, Jun 22, 2011 at 5:54 AM, nadam a...@anyro.se wrote: if you want to take advantage of defining the ListView once and using it across multiple activities

[android-developers] Why two fragments instead of one?

2011-06-21 Thread nadam
In most Fragment exemples there are two fragments, for instance a list to the left and a content area to the right where you see things you have selected in the list. Do you really need two fragments for this or could the left part be a simple ListView instead? I'm also confused about the example

[android-developers] Re: Hold the NFC Foreground Dispatch

2011-06-18 Thread nadam
You need to specify a more specific filter in the manifest using android.nfc.action.NDEF_DISCOVERED or android.nfc.action.TECH_DISCOVERED (see http://developer.android.com/guide/topics/nfc/index.html#manifest). On 14 Juni, 12:48, Rafael Porras Lucena rporr...@gmail.com wrote: Hello! I want to

[android-developers] Alternatives to SQLite for static data

2011-06-09 Thread nadam
Say you're reading an xml or json file from within your app (resources/ raw or assets) and then want to show this data to the user and enable sorting and simple filtering. Of course you can save the data to an SQLite table and use sql (where and order by), but it seems to be overkill when dealing

[android-developers] Re: Alternatives to SQLite for static data

2011-06-09 Thread nadam
:35 am, nadam a...@anyro.se wrote: Say you're reading an xml or json file from within your app (resources/ raw or assets) and then want to show this data to the user and enable sorting and simple filtering. Of course you can save the data to an SQLite table and use sql (where and order

[android-developers] Re: how to geting start android NFC program

2011-06-03 Thread nadam
- NFCDemo code example http://developer.android.com/resources/samples/NFCDemo - Talk from Google I/O 2011 http://www.youtube.com/watch?v=49L7z3rxz4Q - StickyNotes code example from the Google I/O talk https://nfc.android.com - A tutorial I found by googling for NFC Android Tutorial...

[android-developers] Re: Force hdpi drawables on mdpi-xlarge devices

2011-06-01 Thread nadam
wrote: On Thu, May 26, 2011 at 3:35 PM, nadam a...@anyro.se wrote: I want to do this because it's what my client tells me to do. Not my decision. They have designed the app for phone size only and want it to scale up for larger devices (or not run on larger devices at all). The app contains

[android-developers] Re: Force hdpi drawables on mdpi-xlarge devices

2011-05-26 Thread nadam
this is only going to lead to pain.  Use the density the device reports. On Sun, May 22, 2011 at 11:37 PM, nadam a...@anyro.se wrote: Samsung decided to make it's mdpi-device Galaxy Tab use hdpi drawables simply because it looks better. Motorola decided to stick to mdpi on the Xoom

[android-developers] Re: NFC send Url p2p

2011-05-25 Thread nadam
You can find most of the details in the talk from Google I/O http://www.youtube.com/watch?v=49L7z3rxz4Q and the accompanying StickyNotes example at http://nfc.android.com. On 25 Maj, 13:47, arik...@hotmail.com arik...@hotmail.com wrote: Thanks Adam, I will prove, I only have to change that in

  1   2   >