android

Amplifying playback volume from a local AMR file

I have an application that plays back AMR audio files that it has downloaded and cached locally. This works fine the basic MediaPlayer does its job. However, the audio volume is generally very low, and manually increasing the volume with the hardware keys still doesn't make the playback quite loud enough. The behaviour seems to vary a...

How to wait periods of 30 second to run a service

I, i have a service and i want that once it started, it performs is work every 30 seconds. How can i do that? Tnk Valerio ...

android:black screen switching between activity

Hi, I am using below code from one of my activity to start another Intent viewIntent = new Intent (getApplicationContext (), landingPage.class); Bundle b = new Bundle (); b.putString ("ApplicationName", a_Bean.getApplicationName ()); if (landingPage.getInstanceCount () < 1) bp.landingPage_ProgressDialog = ProgressDialog.show (ViewA...

what is the prefered way to communicate between applications on android (service vs. intents)

What is the difference between 2 ways of interaction between applications on android: 1. implementing service in app #1 and using it in app #2. 2. handling intentions and posting answer intention. Interactions are supposed to be asynchronous. What are pros and contras for each? ...

how to configure Android 2.2 phone as a Wi-Fi access point

How to configure Android 2.2 phone as a Wi-Fi access point?Any reference code? ...

difference between tabHost setOnTabChangedListener and setOnTabClickListener

friend's I wanna need to know the difference between tabhost setOnTabChangedListener and OnTabClickListener in what cases,these both are fired,is't both are same or different. Thanks in advance. ...

Android : Plugin development

Hi, I want to develop application in which i need to do following things. It is for the Android Mobile only. 1> I should be able to stream media from internet 2> That media i need to convert to DLNA compatible format. 3> The application will be stored on the server, When user download app he/she should be able to share their media ...

Problem in Capturing image in Android?

Hi, I know there is a issue in Android that the camera do not return full sized image. I am able to get the full sized image by saving that image and then deleting it. Now, the issue comes of when we test on various devices. I have tested on Nexus one and app runs perfectly in that, but in HTC EVO the crashes when taking a picture since...

android, moving from icu4j to icu4c

Hello, i have class used with android frameworks, it calls icu4j's Arabicshaping. now i'v merged this class with another android branch that uses icu4c ( c implementation). but build process gives me error saying cannot find Arabicshaping... searching in icu4c files shows me that it has both ArabicShaping.c and ushape.c but i don't kno...

sup textview not displaying properly if i increase font size

Hi I am displaying superscript text view in android private TextView triangle; triangle=((TextView)findViewById(R.id.triangle)); triangle.setText(Html.fromHtml("triAngle<sup>TM</sup>Quarterly Backtest")); triangle.setTextColor(getResources().getColor(R.color.red)); triangle.setTypeface(myTypeface); T is not displayi...

Temp folder in android

Hi, I am porting a c++ library code into android(which was initially written for linux). The library is built and is used by a java application. In the previous linux code, library used to create and update a log file in /tmp folder of the system... But unfortunately, there is no such temp dir in android. Seems I cannot use use ap...

How to load image in textview?

Hi Friends, I want to display image in textview,is it possible?anybody knows,please give sample code for me.. Thanks All ...

Loading animation from xml fails on Android 1.5: "Unknown interpolator name: set". How to fix?

I have an animation specified in xml like this: <?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android"&gt; · <translate android:fromXDelta="0" android:toXDelta="100%p" android:duration="300" android:interpolator="@android:anim/anticipate_overshoot_interpolator" /> · <alpha and...

Encapsulating functions in a second .java file?

Hello! I've been messing with Android for a couple of weeks, i found many tutorials to follow, but i didnt find anywhere some "Style rules" to make the code looks better. I would like to know if its possible (im sure that it is, but dont know how to make it xD) to use more .java files to organize the functions. I mean, right now, i hav...

Set up Android testing in Intellij IDEA

Have someone got any tutorials for how to do testing on Android in Intellij? I am looking for resources similar to what you find for Eclipse with the ability to create a test project for my android project. ...

Android limitation

I have one application in android when i run that application it shows that exception 09-13 16:38:25.049: WARN/dalvikvm(269): VFY: arbitrarily rejecting large method (regs=132 count=21332) 09-13 16:38:25.049: WARN/dalvikvm(269): VFY: rejected Lcom/ExtraCharge/Calc;.onClick (Landroid/view/View;)V 09-13 16:38:25.059: WARN/dalvikvm(269)...

Encrypt outgoing data? (any mobile platform)

Would it be possible for me to build an application that enables people to encrypt call coming to me with my public key and then for me to decrypt the call data at my end using my own private key. This way I basically have a more secure communication channel which I am assuming because RSA is hard to crack would be difficult to monitor. ...

android development on netbeans

I'm trying to develop on android's platform. I'm working with netbeans and using this tutorial: Introducing Android Development with NetBeans. I seem to have everything installed properly, and have no trouble creating android projects, but when I try to debug I get several error messages like, W/ResourceType( 3449): Bad string block: st...

RSA and AES Decrypt and Encrypt problem

I have generated on my android application a pair of RSA Keys. I receive from a web service - an AES Key, encrypted with my RSA public key - a String encoded with the AES key. So I must do the following: - decrypt the AES Key - decrypt the string with the obtained AES Key. To generate the RSA Keys I did: keyGen = KeyPairGenerator.g...

Does Android encourage reusing their Menu-Icons? Where to get them all?

They do not write anything about licenses at http://developer.android.com/guide/practices/ui_guidelines/icon_design.html#menuapx (Menu Icons) I guess they want to have standard icons look the same in all apps, so users dont get confused. Right? Now I would love to use the Menu-Icon "see map" (a folded map) from the Google Places App. W...