[Q] Problem runnin android app on emulator - Android Studio

Hi everyone,
My question is:
What can be the problem if i get an empty app while running it in an emulator.
I coded an app in eclipse,and i am running it on bluestacks.When i enter the app,it gives a blank screen.
My app is a simple login form,which connects to a database for that.
What might be the problem when i receive the blank page?
I don't know if it is necessary to pos my code..
And thank you all.

Are you getting any errors in your ADB log? Not a lot of information to get by though so your probably need to post your code if it is not too much.

Verify XML Layout (Black screen)
damien220 said:
Hi everyone,
My question is:
What can be the problem if i get an empty app while running it in an emulator.
I coded an app in eclipse,and i am running it on bluestacks.When i enter the app,it gives a blank screen.
My app is a simple login form,which connects to a database for that.
What might be the problem when i receive the blank page?
I don't know if it is necessary to pos my code..
And thank you all.
Click to expand...
Click to collapse
Yeah, You will get this when you didn't do proper code for xml layout.
general query
"Fill parent " & "match parent".
So, verify your layout design first by view on graphic mode of android studio or eclipse.
If you still facing issue. share your xml for this.

Related

[KEYBOARD] Tablet keyboard

Grab it before the offer expires. No need to comment.
http://goo.gl/E9U7O
If you downloaded it and it did not work, try again. I had the wrong file uploaded.
how to install?
Just like any other apk. Then enable it in settings.
Great, Thanks. Am I the only one who can't see written text until I highlight it?
Am I the only one that sees nothing but text?
Edit,,,, sorry was at work and it restricted the content
freemsk1 said:
Great, Thanks. Am I the only one who can't see written text until I highlight it?
Click to expand...
Click to collapse
You might not be familiar with the concept of how to use it. There is a tutorial on on that. I have not had any problems.
EDIT: Actually, there is a problem. When I search in the market using this keyboard it occupies the entire screen and I can't see what I'm typing
ihtfp69 said:
Just like any other apk. Then enable it in settings.
Click to expand...
Click to collapse
it's a zip file i'll just change the ext. and give it a shot.
funnycreature said:
occupies the entire screen and I can't see what I'm typing
Click to expand...
Click to collapse
So this might be the issue I was trying to report. It does so in google search, browser, root explorer... Didn't try it in other apps
freemsk1 said:
So this might be the issue I was trying to report. It does so in google search, browser, root explorer... Didn't try it in other apps
Click to expand...
Click to collapse
It seems like it doesn't interpret fields correctly. Typing a document is no problem (QuickOffice HD). Maybe it's best to switch to the android keyboard for that anyway since it will only be a few words to type.
EDIT: After playing with it for a few days I am disappointed. In landscape mode the entire screen is filled with an empty field and I can't see what I'm typing. It's only useful in portrait mode, really Nice concept but definitely needs more work! Maybe even make the entire keyboard smaller in landscape so you don't have to slide so much. Just my 2cents.
I have tried to change the text from white to black so it shows in the field, but i have had no luck. If anyone wants to take a crack at, be my guest. It would be sweet. Right now this keyboard is only useful on the web.
Sent from my Xoom using XDA App
for some reason slide-it keyboard started having a similar problem after the last update. While in landscape the text would be white on a white background and thus for all intents and purposes, invisible.
in slide-it though you can now disable full screen in landscape and enter text directly into your intended field instead of a white window.
Anyway I wonder if this has something to do with honeycomb or why it happened to both these keyboards at the same time? hmm

[Q] Serous Problem in S-MEMO

hey guys i am on non rooted phone
and there is a serious security issues in s-memo
i have afolder in s-memo which is password protected which contains my imp data
now when in s memo if anyone goes into search and types a file name he can easily see all my imp data without password
guys are you facing the same
plz help
thanks
Can you explain exactly how your searching for the file? Are you just clicking on the smemo app and once opened you type imp or .imp into the search or are you doing something else. If you explain I'll check for you right now, if you're still here.
thanks in advance for your help
i have created a folder names "imp msg" which is locked with password
there are 5 memos in the folder
Now when i search (option available after pressing menu button when in s-memo app) with any word which is in memo in the imp msg folder the memo appears directly which can be seen and on selection we can open that memo without entering password
hey except me no one has tried this out or is it that i am the only one facing this problem??
sitanshu91 said:
hey except me no one has tried this out or is it that i am the only one facing this problem??
Click to expand...
Click to collapse
I have just tried it and can confirm that you are correct in your findings. There is a work around if you want to keep specific notes private, if you password protect individual files/s notes, they do not appear in the search results.
I know that it is not ideal but is a temporary fix.
You have to lock the Notes individually.
Regards,
Dave
Sent from my GT-N7000 using Tapatalk
thanks guys for your response
actually lockin each note is quite cumbersome
hmm ...but seems there is no other way
foxmeister said:
You have to lock the Notes individually.
Regards,
Dave
Sent from my GT-N7000 using Tapatalk
Click to expand...
Click to collapse
I pw locked 3 notes individually and was able to see them all by going to My Files>Application>SMemo>cache...all of them were right there, no pw needed.

[Q][HELP] Bypassing Google authentication

This may sound a little noob-ish but I am new to device and my condition is a bit bad.
My G1 is running Android 2.2 Froyo, it has a keyboard with E,R and 6,7 keys not working. And I cannot get past google verification. I can't run wifi and to write the apn settings, I require the keys.
The ****ty system doesn't even show on-screen keyboard in the auth.
So what can I do apart from dumping the G1? Is there some way to enable on-screen keyboard?
EDIT -> I now know that the device is rooted and has Amon_Ra but I can't seem to do anything. Any help?
Re: [Q] [HELP] Bypassing Google authentication
If you are running 2.2froyo then you must be rooted as the dream can not be updated past 1.6 donut without root.
But if your only issue is those couple keys to bypass why not just make a new gmail that doesn't use those keys, new accounts are free you know, how about [email protected]
Sent from my Nexus 7 using xda premium
demkantor said:
If you are running 2.2froyo then you must be rooted as the dream can not be updated past 1.6 donut without root.
But if your only issue is those couple keys to bypass why not just make a new gmail that doesn't use those keys, new accounts are free you know, how about [email protected]
Sent from my Nexus 7 using xda premium
Click to expand...
Click to collapse
Well, the problem is not with the Gmail account, the problem is setting up the GPRS connection. You know, the APN settings. If only would it let me use WiFi from default.
And I can't even use it on adb I guess (to enable it I need to type in a code).
I did see something like "WiFi patch" on CaNNoN202's ROM thread, but the links were dead.
Still looking for help
Androhacker said:
Well, the problem is not with the Gmail account, the problem is setting up the GPRS connection. You know, the APN settings. If only would it let me use WiFi from default.
And I can't even use it on adb I guess (to enable it I need to type in a code).
I did see something like "WiFi patch" on CaNNoN202's ROM thread, but the links were dead.
Still looking for help
Click to expand...
Click to collapse
Do ya need a keyboard? i have some inbox me.
If it is rooted and has amonra recovery installed then boot to recovery and flash a compatible ROM, nearly all custom ROMs have the ability to let you bypass sign in and go straight to os
If you want help choosing a ROM that is compatible you need to tell me what radio and SPL you have
If you really just want to use adb to bypass I can help with that too but it is unneeded if the phone is rooted
Sent from my Nexus 7 using xda premium
http://forum.xda-developers.com/showthread.php?t=1098899 <-this helped me a lot.
PM me if you cannot understand the process.
demkantor said:
If it is rooted and has amonra recovery installed then boot to recovery and flash a compatible ROM, nearly all custom ROMs have the ability to let you bypass sign in and go straight to os
If you want help choosing a ROM that is compatible you need to tell me what radio and SPL you have
If you really just want to use adb to bypass I can help with that too but it is unneeded if the phone is rooted
Click to expand...
Click to collapse
Well, I do not know the radio and SPL (the person I bought it from had it all done). Would anything happen if I install the latest SPL and Radio? And they already be on the device? (which is rare)
EDIT: I looked another thread and found that pressing Camera + Power should show me a screen which tells me the radio and other things. Tried it and it showed me a RGB-color screen. Radio was 1.22 something and the Hboot was 0.95 something.
And by the way, on the same thread I found that, if we boot into recovery and it shows a triangle and "!", it means the phone is unrooted. Well, unfortunately that is the case with me
jephimax said:
http://forum.xda-developers.com/show....php?t=1098899 <-this helped me a lot.
PM me if you cannot understand the process.
Click to expand...
Click to collapse
Thanks for this. I did get most of my questions about the device solved from this thread. But the By-pass method won't work for me as I can't enable the device in adb. W,E,R keys are not working on my keyboard...
Hi, I had the same problem. Try to go to the 'Welcome to Android' screen with the android guy. Touch the upper left, upper right, down right (above the bar with the Emergency dial button and down left in THAT order. It should work....
Dual screen not active, work around
Hi guys, after reading several threads I was having problems getting any of the method to work for my LG H634. I was able to get as far as opening browser, but as far as installing an app or opening dual windows I was unable to. It seems that the dual screen option is not turned on when the phone is reset and returns default setting. Fortunately while using the phones browser to research the problem I noticed the more browser window and apps I left open the the longer it would take to go to the activation screen when the phone was turned on. After leaving nearly 30 browser windows and several app such as messages note pad and other as that I was able to open using the share option from sites such as YouTube the phone had enough lag when initially booting that I actually had time to open the setting screen by quickly making a downward swipe on the screen during short time it took to go from the the opening screen to the activation screen. Once I was able to do this I had full access to the phone's option menu which allowed me to change account, turn on the dual screen option, allow third party apps to be installed as well as every thing else needed to gain full access to my phone.
Hope this helps some of you. I there are any questions I will be glad to answer them.

[Q] Google Play edition lockscreen

Hello,
I would like to get the Google Play edition lockscreen on my not-gpe HTC One because I think it's looking better than the stock one. Here is a picture of it so you can see what I am talking about: androidtopnews.com/wp-content/uploads/2013/07/e9a1f__htc-one-vs-google-play-edition-aa-gpe-lockscreen.jpg
Do you know how could I get it without switching to the Google Play edition?
Thank you for your help!
ccdstest said:
Hello,
I would like to get the Google Play edition lockscreen on my not-gpe HTC One because I think it's looking better than the stock one. Here is a picture of it so you can see what I am talking about: androidtopnews.com/wp-content/uploads/2013/07/e9a1f__htc-one-vs-google-play-edition-aa-gpe-lockscreen.jpg
Do you know how could I get it without switching to the Google Play edition?
Thank you for your help!
Click to expand...
Click to collapse
Are you on a sense based rom?
If yes, you can remove the HtcLockscreen.apk and see if this work.
On which version of android are you?
It worked!! Thank you very much!
But I still have a problem, since this lock screen is not supposed to be used with sense, I can't configure it trough the settings menu. So I can't enable Widgets and I also do not have the little camera icon wich allows to bypass lock screen to take a picture faster.
Do you know how I can add these things? I am running on ARHD 4.4
ccdstest said:
It worked!! Thank you very much!
But I still have a problem, since this lock screen is not supposed to be used with sense, I can't configure it trough the settings menu. So I can't enable Widgets and I also do not have the little camera icon wich allows to bypass lock screen to take a picture faster.
Do you know how I can add these things? I am running on ARHD 4.4
Click to expand...
Click to collapse
either run the following command from an adb shell or using terminal on the device itself
Code:
am start -n com.google.android.setupwizard/.SetupWizardTestActivity;
follow through the setup wizard and when you're done, you can add widgets to the lockscreen.
I tried what you said (btw thank you for your fast answer) but the Setup Wizard itself does not work. I get an error message "Setup Wizard stopped working". Do you see what is wrong with that?
One more thing, when I receive a call, I have to unlock the google unlocker screen, and then I can acces the stock HTC "call handler" in order to answer the call. How can I fix this? Thanks
ccdstest said:
I tried what you said (btw thank you for your fast answer) but the Setup Wizard itself does not work. I get an error message "Setup Wizard stopped working". Do you see what is wrong with that?
Click to expand...
Click to collapse
When you did the command, were you in adb shell?
ccdstest said:
One more thing, when I receive a call, I have to unlock the google unlocker screen, and then I can acces the stock HTC "call handler" in order to answer the call. How can I fix this? Thanks
Click to expand...
Click to collapse
As i know, atm, there isn't a solution for this.
I tried with a Terminal app on the phone, and then on adb shell, but it's always the same thing "Setup Wizard stopped working". I don't know if it has a link with it, but both shell gave me that error before launching the apk:
WARNING: linker: app_process has text relocations. This is wasting memory and is a security risk. Please fix.
WARNING: linker: app_process has text relocations. This is wasting memory and is a security risk. Please fix.
Starting: Intent { cmp=com.google.android.setupwizard/.SetupWizardTestActivity }
Click to expand...
Click to collapse
I would also be interested in a way to have the kitkat notification menu which also looks better. Am I supposed to delete another htc apk, something like HTCNotificationMenu.apk ?
Does someone know anything about that? I still have that problem. Thanks

[HOW TO] Manually invoke send text template

Hey guys,
I made a little discovery today while attempting to figure out a way to send native SMS messages on the gear.
What I discovered is a way we can manually invoke the text template popup to any specified number, this can be useful if you want to save various text templates in gear manager and would like to actually send them, rather then only just use them to reply with.
At the moment the only way to preform the intent is using tasker or adb shell, this is more a educational post for those of you who would be considered advanced users can possibly make it a little more user friendly !
Perhaps someone can code a simple app with a contact list so that we can send text templates, @st-tps I'm talking about you
SHELL COMMAND:
Code:
am start -a android.intent.action.VIEW -n com.samsung.accessory.texttemplateprovider/com.samsung.accessory.texttemplateprovider.TextTemplateListActivity -e phone_number 0401010101
*NOTE* Replace "0401010101" with the desired destination number.
I will also include a tasker example once I make one.
Happy hacking.
I´m definitely up for the challange.
I´ll try to get something running as soon as I get some time to look at it.
Another interresting thing is the /data/data/com.samsung.accessory.texttemplateprovider/databases/texttemplate.db wich stores the Templates. If we find a way to edit the db we could actually write what message we want to the db, then open the dialog and chose the newly created message and send it to what number we want. I´we got some ideas about this, I´ll try em out as soon as I get your shell commands working.
That is about how close we can get to native SMS right?
st-tps said:
I´m definitely up for the challange.
I´ll try to get something running as soon as I get some time to look at it.
Another interresting thing is the /data/data/com.samsung.accessory.texttemplateprovider/databases/texttemplate.db wich stores the Templates. If we find a way to edit the db we could actually write what message we want to the db, then open the dialog and chose the newly created message and send it to what number we want. I´we got some ideas about this, I´ll try em out as soon as I get your shell commands working.
That is about how close we can get to native SMS right?
Click to expand...
Click to collapse
Oh thats awesome, didn't realize the templates were stored there..
If we can edit the database, We would have a kind of working solution, although I really want to figure out how to send custom text. Rather to relying on the templates.
Also another thing I havnt figured out yet tho is how we can pull the contacts from the phone, it doesn't look like there stored on the gear anywhere that I have found anyway. It seems there pulled from the host phone everytime the contacts app is executed.
fOmey said:
Oh thats awesome, didn't realize the templates were stored there..
If we can edit the database, We would have a kind of working solution, although I really want to figure out how to send custom text. Rather to relying on the templates.
Also another thing I havnt figured out yet tho is how we can pull the contacts from the phone, it doesn't look like there stored on the gear anywhere that I have found anyway. It seems there pulled from the host phone everytime the contacts app is executed.
Click to expand...
Click to collapse
My plan is to make it something like this:
Start app, choose recipient and write the message. The message is added to an local texttemplate.db file with only that row. When you press Send, the original texttemplate.db file is renamed, the local one is pushed to the directory, the Reply Dialog opens with only one option (The message you recently created) select the message and it gets send away, the "one row" .db is then deleted and the original one got it´s real name back...
If this works, nothing gets f**ked up by changing in the real .db file. This only my thoughts so we will see if I manage to achieve it...
The contact name and phone number for recieved messages and missed calls are stored in NotificationSync.db in the table SyncNotiInfo and in fields mMainText and mPhoneNumber. I assume that info is used when replying to messages.
fOmey said:
Also another thing I havnt figured out yet tho is how we can pull the contacts from the phone, it doesn't look like there stored on the gear anywhere that I have found anyway. It seems there pulled from the host phone everytime the contacts app is executed.
Click to expand...
Click to collapse
i get my contacts through google contacts after tethering with my phone.
the problem with 'stock' contacts was that it took ages to load (i guess it's synchronized everytime you open the app) and most contacts are missing on my list due to custom label (instead of just 'mobile' i use labels like AT&T).
Here comes a real early beta (More like an alpha) of NativeSMS, the most fancy about it may be the progress bar at launch
What it does: list all your contacts (If you´we sometimes synced with Google Contacts that is) that´s got a phone number attached to it, tap a contact and wait until the template box appears, select template and click send.
What it doesn´t do: Sort the contacts alphabetically. Save the list until next appstart. Create own messages.No fancy icon yet.
Download HERE!
st-tps said:
Here comes a real early beta (More like an alpha) of NativeSMS, the most fancy about it may be the progress bar at launch
What it does: list all your contacts (If you´we sometimes synced with Google Contacts that is) that´s got a phone number attached to it, tap a contact and wait until the template box appears, select template and click send.
What it doesn´t do: Sort the contacts alphabetically. Save the list until next appstart. Create own messages.No fancy icon yet.
Download HERE!
Click to expand...
Click to collapse
it does work! waiting for further development to ease the whole process, like direct message shortcut
hurdlejade said:
it does work! waiting for further development to ease the whole process, like direct message shortcut
Click to expand...
Click to collapse
Ofcoure it does
We´ll see how far we can go on this. Interresting anyways.
st-tps said:
Here comes a real early beta (More like an alpha) of NativeSMS, the most fancy about it may be the progress bar at launch
What it does: list all your contacts (If you´we sometimes synced with Google Contacts that is) that´s got a phone number attached to it, tap a contact and wait until the template box appears, select template and click send.
What it doesn´t do: Sort the contacts alphabetically. Save the list until next appstart. Create own messages.No fancy icon yet.
Download HERE!
Click to expand...
Click to collapse
A excellent start ! Works perfectly fine.. for a first release doesn't look bad cosmetically either !
Bravo.
st-tps, i installed nativesms, it gave me an error sub:main_activity_resume (java line: 318) java.lang.nullpointerexeption, because i didnt have the people app installed.
Might want to put some kind of check to see if the app is installed.
Btw im SemRumo in f0mey null chat
maelstorm said:
st-tps, i installed nativesms, it gave me an error sub:main_activity_resume (java line: 318) java.lang.nullpointerexeption, because i didnt have the people app installed.
Might want to put some kind of check to see if the app is installed.
Btw im SemRumo in f0mey null chat
Click to expand...
Click to collapse
Great idea, perhaps just throw out a relevant error
"People app was not found, please reinstall rom", also I found you can share contacts via bluetooth which is great... I dont use GAPPS so I've transferred over my "favourites" ! Nice and easy.
st-tps said:
Here comes a real early beta (More like an alpha) of NativeSMS, the most fancy about it may be the progress bar at launch
What it does: list all your contacts (If you´we sometimes synced with Google Contacts that is) that´s got a phone number attached to it, tap a contact and wait until the template box appears, select template and click send.
What it doesn´t do: Sort the contacts alphabetically. Save the list until next appstart. Create own messages.No fancy icon yet.
Download HERE!
Click to expand...
Click to collapse
does this work withl 100% STOCK rom?
does this work with stock contacts?
DomZH said:
does this work withl 100% STOCK rom?
does this work with stock contacts?
Click to expand...
Click to collapse
No it does not. You must have a contacts database & contacts application in order to use this.
maelstorm said:
st-tps, i installed nativesms, it gave me an error sub:main_activity_resume (java line: 318) java.lang.nullpointerexeption, because i didnt have the people app installed.
Might want to put some kind of check to see if the app is installed.
Btw im SemRumo in f0mey null chat
Click to expand...
Click to collapse
I´ll certainly do, good point.
I´ll put in a check for com.android.provider.contatcs in the create part of the Activity, if OK - Load contacts, if NOK - Message box about missing app and then exit.
---------- Post added at 11:53 AM ---------- Previous post was at 10:57 AM ----------
Small update, I´we done some tests regarding editing the db file, very unsuccessfull..
Pulled the original db to computer and did the edit.
Try 1: Delete all rows but one and sent back to Gear - App FC when the Dialog would show
Try 2: Only did minimal changes, editet first row only - App FC when the dialog would show
Try 3: Edit one row only, and renamed the journal file aswell, the only valid file in directory is the edited db wich opens fine in Root Browser - App FC when the Dial would show.
Anyone got ideas what´s causing the Template send FC?
st-tps said:
I´ll certainly do, good point.
I´ll put in a check for com.android.provider.contatcs in the create part of the Activity, if OK - Load contacts, if NOK - Message box about missing app and then exit.
---------- Post added at 11:53 AM ---------- Previous post was at 10:57 AM ----------
Small update, I´we done some tests regarding editing the db file, very unsuccessfull..
Pulled the original db to computer and did the edit.
Try 1: Delete all rows but one and sent back to Gear - App FC when the Dialog would show
Try 2: Only did minimal changes, editet first row only - App FC when the dialog would show
Try 3: Edit one row only, and renamed the journal file aswell, the only valid file in directory is the edited db wich opens fine in Root Browser - App FC when the Dial would show.
Anyone got ideas what´s causing the Template send FC?
Click to expand...
Click to collapse
Permissions & owner ?
fOmey said:
Permissions & owner ?
Click to expand...
Click to collapse
Nope, permissions and owner is the same..
The only difference is that the original db file got a journal file attached to it.
Will try to copy both the db and the journal to computer, edit and then push them both back.
Edit: Fail aswell...
st-tps said:
Nope, permissions and owner is the same..
The only difference is that the original db file got a journal file attached to it.
Will try to copy both the db and the journal to computer, edit and then push them both back.
Edit: Fail aswell...
Click to expand...
Click to collapse
Hmm, I think we need to dig a little deeper.. perhaps figure out how the JSON requests are being sent to phone and generate our own.
Try to unravel the SDK one line of code at the time.
fOmey said:
Hmm, I think we need to dig a little deeper.. perhaps figure out how the JSON requests are being sent to phone and generate our own.
Try to unravel the SDK one line of code at the time.
Click to expand...
Click to collapse
Yeah, I´ll pull the APK and decode it, then I start the search for something usefull.
I would be awesome if we could put the Message as extra content to the intent, just like the phone_number
st-tps said:
Yeah, I´ll pull the APK and decode it, then I start the search for something usefull.
I would be awesome if we could put the Message as extra content to the intent, just like the phone_number
Click to expand...
Click to collapse
I know right, would be so easy !
Sadly the phone_number is the only extra which exists
fOmey said:
I know right, would be so easy !
Sadly the phone_number is the only extra which exists
Click to expand...
Click to collapse
Too bad,
How did you find the intent content?

Categories

Resources